Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d15de879
authored
Jun 18, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 增加mask
1 parent
742df99b
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
105 additions
and
66 deletions
api/module/systemApi.js
components/CarBrands.vue
components/HomeFrame/components/RecordList.vue
components/HomeFrame/components/SettingBox.vue
mixin/record.js
pages/boutique/components/Reception.vue
pages/common/components/AccountList.vue
pages/common/components/MerchantList.vue
pages/common/components/Scene.vue
pages/common/loading.vue
pages/common/login.vue
pages/equity/detail/components/Media_1.vue → pages/equity/detail/components/Reception.vue
pages/equity/detail/detail.vue
api/module/systemApi.js
View file @
d15de87
...
@@ -20,7 +20,6 @@ const getMockData = async (immediate = false) => {
...
@@ -20,7 +20,6 @@ const getMockData = async (immediate = false) => {
serverConfig
.
mockCache
=
null
;
serverConfig
.
mockCache
=
null
;
serverConfig
.
mockRequestCount
=
Date
.
now
();
serverConfig
.
mockRequestCount
=
Date
.
now
();
const
data
=
await
http
.
uni_request
({
url
:
configUrl
});
const
data
=
await
http
.
uni_request
({
url
:
configUrl
});
console
.
log
(
data
,
'==='
)
data
.
createTime
=
Date
.
now
();
data
.
createTime
=
Date
.
now
();
serverConfig
.
mockCache
=
data
;
serverConfig
.
mockCache
=
data
;
uni
.
$storage
.
set
(
"mock_data"
,
data
);
uni
.
$storage
.
set
(
"mock_data"
,
data
);
...
...
components/CarBrands.vue
View file @
d15de87
...
@@ -46,9 +46,6 @@
...
@@ -46,9 +46,6 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
name
:
'CarBrands'
,
name
:
'CarBrands'
,
props
:
{
autoSelect
:
Boolean
},
data
()
{
data
()
{
return
{
return
{
carlist
:
[],
carlist
:
[],
...
@@ -63,13 +60,6 @@ export default {
...
@@ -63,13 +60,6 @@ export default {
this
.
close
()
this
.
close
()
}
}
},
},
carBrandList
:
{
immediate
:
true
,
handler
(
newval
)
{
const
{
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
)
if
(
newval
.
length
&&
sceneType
==
0
&&
this
.
autoSelect
)
this
.
selectCar
(
newval
[
0
],
true
)
}
},
},
},
computed
:
{
computed
:
{
watchStatus
()
{
watchStatus
()
{
...
@@ -88,6 +78,10 @@ export default {
...
@@ -88,6 +78,10 @@ export default {
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
autoSelect
()
{
const
{
carBrandList
}
=
this
if
(
carBrandList
.
length
)
this
.
selectCar
(
carBrandList
[
0
],
true
)
},
open
()
{
open
()
{
this
.
$refs
.
carBrandListVisible
.
open
()
this
.
$refs
.
carBrandListVisible
.
open
()
},
},
...
@@ -95,7 +89,9 @@ export default {
...
@@ -95,7 +89,9 @@ export default {
let
{
clickFlga
}
=
this
let
{
clickFlga
}
=
this
if
(
clickFlga
)
return
if
(
clickFlga
)
return
this
.
clickFlga
=
true
this
.
clickFlga
=
true
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
})
const
customerInfo
=
this
.
$store
.
state
.
user
.
customerInfo
const
customerInfo
=
this
.
$store
.
state
.
user
.
customerInfo
customerInfo
.
carBrand
=
e
.
name
customerInfo
.
carBrand
=
e
.
name
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
customerInfo
)
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
customerInfo
)
...
...
components/HomeFrame/components/RecordList.vue
View file @
d15de87
...
@@ -8,8 +8,14 @@
...
@@ -8,8 +8,14 @@
<view
class=
"record-content"
>
<view
class=
"record-content"
>
<view
class=
"data-box"
>
<view
class=
"data-box"
>
<template
v-for=
"(i, index) in dataList"
>
<template
v-for=
"(i, index) in dataList"
>
<view
:class=
"['data-item', i.type]"
:key=
"index"
>
<view
<image
:src=
"i.icon"
class=
"data-item-bg"
/>
:class=
"['data-item', i.type]"
:key=
"index"
>
<image
:src=
"i.icon"
class=
"data-item-bg"
/>
<view
class=
"title"
>
{{
dateList
[
index
].
text
}}
</view>
<view
class=
"title"
>
{{
dateList
[
index
].
text
}}
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"total"
>
<view
class=
"total"
>
...
@@ -38,8 +44,7 @@
...
@@ -38,8 +44,7 @@
:class=
"['tab flex',
{ active: dateIndex == index }]"
:class=
"['tab flex',
{ active: dateIndex == index }]"
:key="index"
:key="index"
@click="changeIndex(index)"
@click="changeIndex(index)"
>
{{
i
.
text
}}
</view
>
{{
i
.
text
}}
</view>
>
</
template
>
</
template
>
<view
:class=
"['active-btn', `active-btn-${dateIndex}`]"
></view>
<view
:class=
"['active-btn', `active-btn-${dateIndex}`]"
></view>
</view>
</view>
...
@@ -49,25 +54,28 @@
...
@@ -49,25 +54,28 @@
<template
v-if=
"list.length && list[0] && list[0].length"
>
<template
v-if=
"list.length && list[0] && list[0].length"
>
<template
v-for=
"i in list"
>
<template
v-for=
"i in list"
>
<template
v-for=
"item in i"
>
<template
v-for=
"item in i"
>
<view
class=
"item"
:key=
"item.id"
>
<view
<view
class=
"item"
:class=
"[
:key=
"item.id"
>
<view
:class=
"[
'status flex',
'status flex',
{ deal: item.receptionStatus == 1 },
{ deal: item.receptionStatus == 1 },
]"
]">
{{
>
{{
{
{
1
:
"成交"
,
1
:
"成交"
,
0
:
"战败"
,
0
:
"战败"
,
}
[
item
.
receptionStatus
]
}
[
item
.
receptionStatus
]
}}
<
/vie
w
}}
<
/view
>
>
<
view
class
=
"name"
>
<
view
class
=
"name"
>
{{
item
.
customerName
}}
{{
item
.
customerName
}}
<
/view
>
<
/view
>
<
view
class
=
"goods-name"
>
{{
item
.
carModel
}}
<
/view
>
<
view
class
=
"goods-name"
>
{{
item
.
carModel
}}
<
/view
>
<
template
v
-
for
=
"(k, ind) in itemObject"
>
<
template
v
-
for
=
"(k, ind) in itemObject"
>
<
view
class
=
"info flex"
:
key
=
"ind"
>
<
view
class
=
"info flex"
:
key
=
"ind"
>
<
view
class
=
"label"
>
{{
k
.
label
}}
<
/view
>
<
view
class
=
"label"
>
{{
k
.
label
}}
<
/view
>
<
view
class
=
"value"
>
{{
item
[
k
.
key
]
||
"-"
}}
<
/view
>
<
view
class
=
"value"
>
{{
item
[
k
.
key
]
||
"-"
}}
<
/view
>
<
/view
>
<
/view
>
...
@@ -190,7 +198,9 @@ export default {
...
@@ -190,7 +198,9 @@ export default {
}
,
}
,
async
getReceptionList
()
{
async
getReceptionList
()
{
try
{
try
{
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
}
)
const
{
dateList
,
dateIndex
,
pageNum
,
pageSize
}
=
this
,
const
{
dateList
,
dateIndex
,
pageNum
,
pageSize
}
=
this
,
{
startTime
,
endTime
}
=
dateList
[
dateIndex
],
{
startTime
,
endTime
}
=
dateList
[
dateIndex
],
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
...
@@ -215,6 +225,7 @@ export default {
...
@@ -215,6 +225,7 @@ export default {
this
.
flag
=
true
this
.
flag
=
true
this
.
total
=
total
this
.
total
=
total
}
catch
(
error
)
{
}
catch
(
error
)
{
uni
.
hideLoading
()
this
.
flag
=
true
this
.
flag
=
true
}
}
}
,
}
,
...
...
components/HomeFrame/components/SettingBox.vue
View file @
d15de87
...
@@ -85,7 +85,9 @@ export default {
...
@@ -85,7 +85,9 @@ export default {
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
_this
.
$emit
(
'stopAudio'
)
_this
.
$emit
(
'stopAudio'
)
try
{
try
{
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
})
const
{
code
,
message
}
=
await
uni
.
$api
.
userApi
.
logout
(),
const
{
code
,
message
}
=
await
uni
.
$api
.
userApi
.
logout
(),
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
console
.
log
(
code
)
console
.
log
(
code
)
...
...
mixin/record.js
View file @
d15de87
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
list
:
[],
list
:
[],
dateIndex
:
0
,
dateIndex
:
0
,
...
@@ -11,17 +11,20 @@ export default {
...
@@ -11,17 +11,20 @@ export default {
total
:
0
,
total
:
0
,
};
};
},
},
mounted
()
{
},
mounted
()
{
},
methods
:
{
methods
:
{
async
getList
(
api
,
params
)
{
async
getList
(
api
,
params
)
{
try
{
try
{
uni
.
showLoading
();
uni
.
showLoading
({
mask
:
true
});
const
{
list
,
total
}
=
await
uni
.
$api
.
boutiqueApi
[
api
](
params
);
const
{
list
,
total
}
=
await
uni
.
$api
.
boutiqueApi
[
api
](
params
);
uni
.
hideLoading
();
uni
.
hideLoading
();
this
.
list
=
[...(
params
.
pageNum
==
1
?
[]
:
this
.
list
),
...
list
];
this
.
list
=
[...(
params
.
pageNum
==
1
?
[]
:
this
.
list
),
...
list
];
this
.
flag
=
true
;
this
.
flag
=
true
;
this
.
total
=
total
;
this
.
total
=
total
;
}
catch
(
error
)
{
}
catch
(
error
)
{
uni
.
hideLoading
()
this
.
flag
=
true
;
this
.
flag
=
true
;
}
}
},
},
...
...
pages/boutique/components/Reception.vue
View file @
d15de87
...
@@ -364,7 +364,9 @@ export default {
...
@@ -364,7 +364,9 @@ export default {
if
(
clickFlag
)
return
if
(
clickFlag
)
return
if
(
!
checkCouponAmount
.
length
)
throw
'该门店礼券已使用完,请联系管理员配置。'
if
(
!
checkCouponAmount
.
length
)
throw
'该门店礼券已使用完,请联系管理员配置。'
this
.
pageParams
.
clickFlag
=
true
this
.
pageParams
.
clickFlag
=
true
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
})
let
{
staffName
,
salesUuid
}
=
customerInfo
,
let
{
staffName
,
salesUuid
}
=
customerInfo
,
scene
=
`id=
${
couponId
}
&userId=
${
salesUuid
}
&employName=
${
staffName
}
&merchantId=
${
shopMerchantId
}
&customerName=
${
customerInfo
.
customerName
}
&customerPhone=
${
customerInfo
.
phoneNumber
}
`
,
scene
=
`id=
${
couponId
}
&userId=
${
salesUuid
}
&employName=
${
staffName
}
&merchantId=
${
shopMerchantId
}
&customerName=
${
customerInfo
.
customerName
}
&customerPhone=
${
customerInfo
.
phoneNumber
}
`
,
params
=
{
params
=
{
...
...
pages/common/components/AccountList.vue
View file @
d15de87
...
@@ -61,7 +61,9 @@ export default {
...
@@ -61,7 +61,9 @@ export default {
},
},
methods
:
{
methods
:
{
getListSelectAccount
(
autoLogin
=
false
)
{
getListSelectAccount
(
autoLogin
=
false
)
{
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
})
uni
.
$api
.
userApi
.
getListSelectAccount
().
then
(
res
=>
{
uni
.
$api
.
userApi
.
getListSelectAccount
().
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
...
@@ -81,6 +83,8 @@ export default {
...
@@ -81,6 +83,8 @@ export default {
});
});
this
.
flag
=
true
this
.
flag
=
true
}
}
}).
catch
(()
=>
{
uni
.
hideLoading
()
})
})
},
},
chooseAccount
(
item
)
{
chooseAccount
(
item
)
{
...
@@ -116,7 +120,9 @@ export default {
...
@@ -116,7 +120,9 @@ export default {
selectAccountLogin
(
id
)
{
selectAccountLogin
(
id
)
{
if
(
this
.
requestFlag
)
return
if
(
this
.
requestFlag
)
return
this
.
requestFlag
=
true
this
.
requestFlag
=
true
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
})
uni
.
$api
.
userApi
.
selectAccountLogin
({
id
}).
then
(
data
=>
{
uni
.
$api
.
userApi
.
selectAccountLogin
({
id
}).
then
(
data
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
requestFlag
=
false
this
.
requestFlag
=
false
...
@@ -126,6 +132,8 @@ export default {
...
@@ -126,6 +132,8 @@ export default {
title
:
'获取4S店列表失败'
,
title
:
'获取4S店列表失败'
,
icon
:
'none'
,
icon
:
'none'
,
})
})
}).
catch
(()
=>
{
uni
.
hideLoading
()
})
})
},
},
// 搜索过滤
// 搜索过滤
...
...
pages/common/components/MerchantList.vue
View file @
d15de87
...
@@ -75,7 +75,9 @@ export default {
...
@@ -75,7 +75,9 @@ export default {
this
.
loginUserInfoList
=
[]
this
.
loginUserInfoList
=
[]
this
.
copyLoginUserInfoList
=
[]
this
.
copyLoginUserInfoList
=
[]
this
.
flag
=
false
this
.
flag
=
false
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
})
let
{
userInfo
}
=
this
let
{
userInfo
}
=
this
let
params
=
{
let
params
=
{
merchantId
:
userInfo
?.
isSuper
?
''
:
userInfo
?.
merchantId
,
merchantId
:
userInfo
?.
isSuper
?
''
:
userInfo
?.
merchantId
,
...
@@ -93,7 +95,9 @@ export default {
...
@@ -93,7 +95,9 @@ export default {
})
})
},
},
chooseAccount
(
item
)
{
chooseAccount
(
item
)
{
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
})
let
{
loginUserInfoList
}
=
this
let
{
loginUserInfoList
}
=
this
let
listArr
=
loginUserInfoList
let
listArr
=
loginUserInfoList
listArr
.
map
(
i
=>
{
listArr
.
map
(
i
=>
{
...
@@ -111,10 +115,14 @@ export default {
...
@@ -111,10 +115,14 @@ export default {
let
{
openSceneArr
}
=
this
,
let
{
openSceneArr
}
=
this
,
{
merchantName
:
shopMerchantName
,
merchantId
:
shopMerchantId
}
=
item
,
{
merchantName
:
shopMerchantName
,
merchantId
:
shopMerchantId
}
=
item
,
{
userInfo
}
=
this
{
userInfo
}
=
this
if
(
!
openSceneArr
?.
length
&&
!
userInfo
?.
isSuper
)
return
uni
.
showToast
({
if
(
!
openSceneArr
?.
length
&&
!
userInfo
?.
isSuper
)
{
title
:
'暂无开通业务,请联系总部管理员'
,
uni
.
hideLoading
()
icon
:
'none'
uni
.
showToast
({
})
title
:
'暂无开通业务,请联系总部管理员'
,
icon
:
'none'
})
return
}
this
.
$emit
(
'chooseMerchant'
,
{
this
.
$emit
(
'chooseMerchant'
,
{
...
userInfo
,
...
userInfo
,
shopMerchantName
,
shopMerchantName
,
...
...
pages/common/components/Scene.vue
View file @
d15de87
...
@@ -53,7 +53,9 @@ export default {
...
@@ -53,7 +53,9 @@ export default {
this
.
getSceneArr
()
this
.
getSceneArr
()
},
},
getSceneArr
()
{
getSceneArr
()
{
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
})
// 超管默认开通全部场景
// 超管默认开通全部场景
let
{
userInfo
}
=
this
let
{
userInfo
}
=
this
if
(
userInfo
?.
isSuper
)
return
if
(
userInfo
?.
isSuper
)
return
...
@@ -64,6 +66,8 @@ export default {
...
@@ -64,6 +66,8 @@ export default {
}).
then
(
result
=>
{
}).
then
(
result
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
openSceneArr
=
result
.
map
(
val
=>
{
if
(
val
.
sceneOpenFlag
==
0
)
return
val
.
scene
})
||
[]
this
.
openSceneArr
=
result
.
map
(
val
=>
{
if
(
val
.
sceneOpenFlag
==
0
)
return
val
.
scene
})
||
[]
}).
catch
(()
=>
{
uni
.
hideLoading
()
})
})
},
},
// 选择场景
// 选择场景
...
...
pages/common/loading.vue
View file @
d15de87
...
@@ -9,7 +9,9 @@ export default {
...
@@ -9,7 +9,9 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
uni
.
showLoading
()
uni
.
showLoading
({
mask
:
true
})
let
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
let
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
if
(
userInfo
&&
userInfo
.
sceneType
!=
undefined
&&
userInfo
.
sceneType
!=
null
)
{
if
(
userInfo
&&
userInfo
.
sceneType
!=
undefined
&&
userInfo
.
sceneType
!=
null
)
{
uni
.
$api
.
userApi
.
getListSelectAccount
().
then
(
res
=>
{
uni
.
$api
.
userApi
.
getListSelectAccount
().
then
(
res
=>
{
...
...
pages/common/login.vue
View file @
d15de87
...
@@ -107,7 +107,9 @@ export default {
...
@@ -107,7 +107,9 @@ export default {
},
},
methods
:
{
methods
:
{
async
autoLogin
(
noSignInUuid
)
{
async
autoLogin
(
noSignInUuid
)
{
uni
.
showLoading
();
uni
.
showLoading
({
mask
:
true
});
const
{
data
}
=
await
uni
.
$api
.
userApi
.
autoLogin
({
noSignInUuid
})
const
{
data
}
=
await
uni
.
$api
.
userApi
.
autoLogin
({
noSignInUuid
})
uni
.
hideLoading
();
uni
.
hideLoading
();
if
(
data
)
this
.
jump
(
data
,
true
)
if
(
data
)
this
.
jump
(
data
,
true
)
...
@@ -119,7 +121,9 @@ export default {
...
@@ -119,7 +121,9 @@ export default {
if
(
!
mobile
)
throw
'请输入手机号'
;
if
(
!
mobile
)
throw
'请输入手机号'
;
if
(
!
phoneRex
.
test
(
mobile
))
throw
'请输入正确的手机号'
;
if
(
!
phoneRex
.
test
(
mobile
))
throw
'请输入正确的手机号'
;
if
(
count
)
throw
'验证码发送过于频繁,请稍后再试'
;
if
(
count
)
throw
'验证码发送过于频繁,请稍后再试'
;
uni
.
showLoading
();
uni
.
showLoading
({
mask
:
true
});
const
{
code
,
message
}
=
await
uni
.
$api
.
userApi
.
getSmsCode
({
mobile
});
const
{
code
,
message
}
=
await
uni
.
$api
.
userApi
.
getSmsCode
({
mobile
});
uni
.
hideLoading
();
uni
.
hideLoading
();
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
...
@@ -159,7 +163,9 @@ export default {
...
@@ -159,7 +163,9 @@ export default {
code
:
smsCode
code
:
smsCode
}
}
if
(
noSignIn
)
params
.
noSignIn
=
noSignIn
if
(
noSignIn
)
params
.
noSignIn
=
noSignIn
uni
.
showLoading
();
uni
.
showLoading
({
mask
:
true
});
const
{
code
,
data
,
message
}
=
await
uni
.
$api
.
userApi
.
smsLogin
(
params
);
const
{
code
,
data
,
message
}
=
await
uni
.
$api
.
userApi
.
smsLogin
(
params
);
console
.
log
(
code
,
data
,
message
);
console
.
log
(
code
,
data
,
message
);
uni
.
hideLoading
();
uni
.
hideLoading
();
...
...
pages/equity/detail/components/
Media_1
.vue
→
pages/equity/detail/components/
Reception
.vue
View file @
d15de87
...
@@ -7,9 +7,6 @@
...
@@ -7,9 +7,6 @@
custom
custom
>
>
<template
slot=
"customContent"
>
<template
slot=
"customContent"
>
<view
class=
"bg"
>
<!--
<image
src=
"../../../assets/images/media/bg-1.webp"
/>
-->
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
<view
class=
"form-box"
class=
"form-box"
...
@@ -59,22 +56,19 @@
...
@@ -59,22 +56,19 @@
ref=
"carBrandListVisible"
ref=
"carBrandListVisible"
@
select=
"handleSelect($event,'carBrandListVisible')"
@
select=
"handleSelect($event,'carBrandListVisible')"
@
close=
"resetFocusIndex"
@
close=
"resetFocusIndex"
autoSelect
/>
/>
</view>
</view>
</template>
</template>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
Employee
from
'@/components/Employee.vue'
import
CarBrands
from
'@/components/CarBrands.vue'
import
CarBrands
from
'@/components/CarBrands.vue'
export
default
{
export
default
{
components
:
{
Employee
,
CarBrands
},
components
:
{
CarBrands
},
props
:
{
props
:
{
views
:
Array
,
penSwitch
:
Boolean
,
penSwitch
:
Boolean
,
title
:
String
,
show
:
Boolean
},
},
name
:
'
Media_1
'
,
name
:
'
Reception
'
,
data
()
{
data
()
{
return
{
return
{
formObject
:
[
formObject
:
[
...
@@ -110,6 +104,9 @@ export default {
...
@@ -110,6 +104,9 @@ export default {
if
(
newval
)
this
.
customerInfo
=
newval
if
(
newval
)
this
.
customerInfo
=
newval
}
}
},
},
show
(
n
){
if
(
n
&&
!
this
.
customerInfo
.
carModel
)
this
.
$refs
.
carBrandListVisible
.
autoSelect
()
}
},
},
computed
:
{
computed
:
{
watchCustomerInfo
()
{
watchCustomerInfo
()
{
...
@@ -156,13 +153,7 @@ export default {
...
@@ -156,13 +153,7 @@ export default {
width
:
100vw
;
width
:
100vw
;
height
:
100vh
;
height
:
100vh
;
.content
{
.content
{
border-radius
:
40
rpx
40
rpx
0
0
;
background
:
linear-gradient
(
180deg
,
#f7f9fc
0%
,
#f7f9fc
100%
);
background
:
linear-gradient
(
180deg
,
#f7f9fc
0%
,
#f7f9fc
100%
);
overflow
:
hidden
;
position
:
relative
;
z-index
:
1
;
min-height
:
calc
(
100vh
-
200
rpx
);
box-sizing
:
border-box
;
padding-top
:
196
rpx
;
padding-top
:
196
rpx
;
.form-box
{
.form-box
{
height
:
80
rpx
;
height
:
80
rpx
;
...
...
pages/equity/detail/detail.vue
View file @
d15de87
...
@@ -28,17 +28,14 @@
...
@@ -28,17 +28,14 @@
:key="index"
:key="index"
>
>
<component
<component
:is=
"
item.id == 1 || item.id == 6 ? 'media_' + item.id : 'media-component'
"
:is=
"
componentName(item.id)
"
:views=
"item.receptionSourceDetailList || []"
:views=
"item.receptionSourceDetailList || []"
:penSwitch=
"penSwitch"
:penSwitch=
"penSwitch"
:show=
"id ==
6
"
:show=
"id ==
item.id
"
:ref=
"'media'+item.id"
:ref=
"'media'+item.id"
:title=
"item.detailTitle || ''"
:title=
"item.detailTitle || ''"
:mediaBg=
"item.top_bg"
:madiaId=
"item.id"
:madiaId=
"item.id"
:background=
"item.background"
:defaultIndex=
"item.id == 4 ? 1 : 0"
:defaultIndex=
"item.id == 4 ? 1 : 0"
:canvasStyle=
"item.id == 2 ? 'padding-top:12rpx' : ''"
/>
/>
</view>
</view>
</
template
>
</
template
>
...
@@ -69,7 +66,7 @@
...
@@ -69,7 +66,7 @@
</template>
</template>
<
script
>
<
script
>
import
ToolBox
from
"@/components/ToolBox.vue"
;
import
ToolBox
from
"@/components/ToolBox.vue"
;
import
Media_1
from
"./components/Media_1
.vue"
;
import
Reception
from
"./components/Reception
.vue"
;
import
MediaComponent
from
"./components/MediaComponent.vue"
;
import
MediaComponent
from
"./components/MediaComponent.vue"
;
import
Media_6
from
"./components/Media_6.vue"
;
import
Media_6
from
"./components/Media_6.vue"
;
import
payPop
from
"./components/payPop.vue"
;
import
payPop
from
"./components/payPop.vue"
;
...
@@ -78,7 +75,7 @@ import { mapMutations } from "vuex";
...
@@ -78,7 +75,7 @@ import { mapMutations } from "vuex";
export
default
{
export
default
{
components
:
{
components
:
{
ToolBox
,
ToolBox
,
Media_1
,
Reception
,
MediaComponent
,
MediaComponent
,
Media_6
,
Media_6
,
payPop
,
payPop
,
...
@@ -129,6 +126,16 @@ export default {
...
@@ -129,6 +126,16 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapMutations
(
"audio"
,
[
"setReceptionStatus"
]),
...
mapMutations
(
"audio"
,
[
"setReceptionStatus"
]),
componentName
(
id
)
{
let
name
=
""
;
if
(
id
!=
1
&&
id
!=
6
)
name
=
"media-component"
;
else
name
=
{
1
:
"reception"
,
6
:
"media_6"
,
}[
id
]
return
name
;
},
open
()
{
open
()
{
this
.
$refs
.
stepRef
.
open
()
this
.
$refs
.
stepRef
.
open
()
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment