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 6dccce26
authored
May 23, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 修复
1 parent
96a6ab4d
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
69 additions
and
46 deletions
api/module/systemApi.js
components/CarBrands.vue
mixin/receptionTrackMixin.js
pages/equity/detail/components/History.vue
pages/equity/detail/components/PageTitle.vue
pages/equity/detail/components/Reception.vue
pages/equity/detail/detail.vue
pages/equity/index.vue
api/module/systemApi.js
View file @
6dccce2
...
@@ -173,11 +173,12 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => {
...
@@ -173,11 +173,12 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => {
data
.
moduleList
=
await
imgTransformBase64
(
materialInfoList
,
[
'thumbnail'
,
'receptionSourceDetailList'
,
'screenList'
])
data
.
moduleList
=
await
imgTransformBase64
(
materialInfoList
,
[
'thumbnail'
,
'receptionSourceDetailList'
,
'screenList'
])
uni
.
setStorageSync
(
storageName
,
{
uni
.
setStorageSync
(
storageName
,
{
moduleList
:
data
.
moduleList
,
moduleList
:
data
.
moduleList
,
toolList
:
data
.
toolList
toolList
:
data
.
toolList
,
id
:
res
.
id
})
})
return
Promise
.
resolve
(
data
)
return
Promise
.
resolve
(
data
)
}
}
}
else
throw
'该场景尚未配置素材,请联系总部人员'
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
uni
.
showToast
({
uni
.
showToast
({
...
...
components/CarBrands.vue
View file @
6dccce2
...
@@ -60,7 +60,11 @@ export default {
...
@@ -60,7 +60,11 @@ export default {
type
:
Object
,
type
:
Object
,
default
:
()
=>
({})
default
:
()
=>
({})
},
},
customBoolean
:
Boolean
customBoolean
:
Boolean
,
linkage
:
{
type
:
Boolean
,
default
:
true
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -194,12 +198,14 @@ export default {
...
@@ -194,12 +198,14 @@ export default {
},
},
handleSelect
(
item
)
{
handleSelect
(
item
)
{
const
customerInfo
=
this
.
$store
.
state
.
user
.
customerInfo
,
const
customerInfo
=
this
.
$store
.
state
.
user
.
customerInfo
,
{
selectItem
}
=
this
{
selectItem
,
linkage
}
=
this
customerInfo
.
carBrand
=
selectItem
.
carChildsBrandName
customerInfo
.
carBrand
=
selectItem
.
carChildsBrandName
if
(
linkage
)
{
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
customerInfo
)
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
customerInfo
)
this
.
$refs
.
carBoxVisible
?.
close
();
this
.
$store
.
dispatch
(
'updateViewKey'
)
this
.
$store
.
dispatch
(
'updateViewKey'
)
this
.
$store
.
dispatch
(
'setCurrentCarInfo'
,
selectItem
)
this
.
$store
.
dispatch
(
'setCurrentCarInfo'
,
selectItem
)
}
this
.
$refs
.
carBoxVisible
?.
close
();
this
.
$emit
(
'select'
,
{
this
.
$emit
(
'select'
,
{
...
item
,
...
item
,
...
selectItem
...
selectItem
...
...
mixin/receptionTrackMixin.js
View file @
6dccce2
...
@@ -3,8 +3,11 @@ export default {
...
@@ -3,8 +3,11 @@ export default {
id
:
{
id
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
key
)
{
handler
(
key
)
{
try
{
if
(
!
key
||
this
.
type
==
'preview'
)
return
if
(
!
key
||
this
.
type
==
'preview'
)
return
let
item
=
this
.
media
.
find
(
e
=>
e
.
id
==
key
),
let
{
useCarConfig
,
moduleList
,
media
}
=
this
,
array
=
useCarConfig
?
moduleList
:
media
let
item
=
array
.
find
(
e
=>
e
.
id
==
key
),
value
=
this
.
receptionTrack
[
key
]
value
=
this
.
receptionTrack
[
key
]
if
(
value
)
{
if
(
value
)
{
value
.
openCount
+=
1
value
.
openCount
+=
1
...
@@ -12,13 +15,16 @@ export default {
...
@@ -12,13 +15,16 @@ export default {
}
else
{
}
else
{
value
=
{
value
=
{
openCount
:
1
,
openCount
:
1
,
materialName
:
item
.
detailTitle
,
materialName
:
item
.
detailTitle
||
''
,
materialId
:
item
.
id
,
materialId
:
item
.
id
,
stayDuration
:
0
,
stayDuration
:
0
,
entryTime
:
Date
.
now
()
entryTime
:
Date
.
now
()
}
}
}
}
this
.
$store
.
dispatch
(
"setReceptionTrack"
,
{
key
,
value
})
this
.
$store
.
dispatch
(
"setReceptionTrack"
,
{
key
,
value
})
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
}
}
}
},
},
...
@@ -34,11 +40,10 @@ export default {
...
@@ -34,11 +40,10 @@ export default {
value
=
this
.
receptionTrack
[
key
]
value
=
this
.
receptionTrack
[
key
]
value
.
stayDuration
+=
Number
(
Date
.
now
()
-
value
.
entryTime
)
value
.
stayDuration
+=
Number
(
Date
.
now
()
-
value
.
entryTime
)
this
.
$store
.
dispatch
(
"setReceptionTrack"
,
{
key
,
value
})
this
.
$store
.
dispatch
(
"setReceptionTrack"
,
{
key
,
value
})
if
(
keyName
==
'id'
&&
key
==
1
)
{
if
(
keyName
==
'id'
&&
key
==
1
)
{
//轻改才会触发
let
[
receptionRef
]
=
this
.
$refs
.
media1
let
[
receptionRef
]
=
this
.
$refs
.
media1
receptionRef
.
previewLeave
&&
receptionRef
.
previewLeave
(
receptionRef
.
currentItem
)
receptionRef
.
previewLeave
&&
receptionRef
.
previewLeave
(
receptionRef
.
currentItem
)
}
}
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/equity/detail/components/History.vue
View file @
6dccce2
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
<car-brands
ref=
"carBrandListVisible"
@
select=
"handleSelect($event, 'carBrandListVisible')"
@
close=
"resetFocusIndex"
/>
<car-brands
ref=
"carBrandListVisible"
@
select=
"handleSelect($event, 'carBrandListVisible')"
@
close=
"resetFocusIndex"
:linkage=
"false"
/>
</view>
</view>
</template>
</template>
...
@@ -276,7 +276,7 @@ export default {
...
@@ -276,7 +276,7 @@ export default {
this
.
customerInfo
.
carModel
=
item
.
name
this
.
customerInfo
.
carModel
=
item
.
name
this
.
customerInfo
.
carModelId
=
item
.
id
this
.
customerInfo
.
carModelId
=
item
.
id
this
.
resetFocusIndex
()
this
.
resetFocusIndex
()
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
customerInfo
)
//
this.$store.dispatch('setCustomerInfo', this.customerInfo)
this
.
list
=
[]
this
.
list
=
[]
this
.
pageNum
=
1
this
.
pageNum
=
1
this
.
getQuotationList
()
this
.
getQuotationList
()
...
...
pages/equity/detail/components/PageTitle.vue
View file @
6dccce2
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
v-if=
"hasCarBrand"
v-if=
"hasCarBrand"
@
click=
"$refs.carBrandListVisible.open()"
@
click=
"$refs.carBrandListVisible.open()"
>
>
{{
customerInfo
.
carModel
}}
{{
customerInfo
.
carModel
||
'请选择'
}}
<view
class=
"sprite-icon icon-arrow-bottom"
></view>
<view
class=
"sprite-icon icon-arrow-bottom"
></view>
</view>
</view>
<car-brands
<car-brands
...
@@ -36,9 +36,9 @@ export default {
...
@@ -36,9 +36,9 @@ export default {
show
:
{
show
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
newval
)
{
handler
(
newval
)
{
setTimeout
(()
=>
{
//
setTimeout(() => {
if
(
newval
&&
this
.
hasCarBrand
&&
!
this
.
customerInfo
.
carModel
&&
this
.
watchChannelType
!=
2
)
this
.
$refs
.
carBrandListVisible
.
autoSelect
()
//
if (newval && this.hasCarBrand && !this.customerInfo.carModel && this.watchChannelType != 2) this.$refs.carBrandListVisible.autoSelect()
},
1
e3
)
//
}, 1e3)
}
}
},
},
watchCustomerInfo
:
{
watchCustomerInfo
:
{
...
...
pages/equity/detail/components/Reception.vue
View file @
6dccce2
...
@@ -138,9 +138,9 @@ export default {
...
@@ -138,9 +138,9 @@ export default {
}
}
},
},
show
(
n
)
{
show
(
n
)
{
setTimeout
(()
=>
{
//
setTimeout(()=>{
if
(
n
&&
!
this
.
customerInfo
.
carModel
&&
!
this
.
isByd
)
this
.
$refs
.
carBrandListVisible
.
autoSelect
()
//
if (n && !this.customerInfo.carModel && !this.isByd) this.$refs.carBrandListVisible.autoSelect()
},
1
e3
)
//
},1e3)
}
}
},
},
computed
:
{
computed
:
{
...
...
pages/equity/detail/detail.vue
View file @
6dccce2
...
@@ -124,7 +124,8 @@ export default {
...
@@ -124,7 +124,8 @@ export default {
default
:
'preview'
default
:
'preview'
},
},
toolList
:
Array
,
toolList
:
Array
,
aitoCarModelIds
:
Array
aitoCarModelIds
:
Array
,
mediaId
:
[
String
,
Number
]
},
},
mixins
:
[
receptionTrackMixin
],
mixins
:
[
receptionTrackMixin
],
data
()
{
data
()
{
...
@@ -198,6 +199,7 @@ export default {
...
@@ -198,6 +199,7 @@ export default {
handler
(
newval
)
{
handler
(
newval
)
{
this
.
useCarConfig
=
false
this
.
useCarConfig
=
false
this
.
dateilKey
=
Date
.
now
()
this
.
dateilKey
=
Date
.
now
()
this
.
pageToolList
=
this
.
toolList
if
(
newval
)
this
.
drawStatus
=
false
if
(
newval
)
this
.
drawStatus
=
false
}
}
},
},
...
@@ -207,13 +209,12 @@ export default {
...
@@ -207,13 +209,12 @@ export default {
if
(
this
.
id
)
this
.
setPageData
()
if
(
this
.
id
)
this
.
setPageData
()
}
}
},
},
toolList
:
{
// toolList: {
immediate
:
true
,
// immediate: true,
handler
(
newval
)
{
// handler (newval) {
this
.
pageToolList
=
this
.
toolList
// this.setPageToolList()
// this.setPageToolList()
}
//
}
},
//
},
},
},
mounted
()
{
mounted
()
{
const
systemInfo
=
uni
.
getSystemInfoSync
()
const
systemInfo
=
uni
.
getSystemInfoSync
()
...
@@ -327,14 +328,27 @@ export default {
...
@@ -327,14 +328,27 @@ export default {
}
}
let
storageName
=
`source_
${
sceneType
}
_
${
shopMerchantId
}
_
${
carBrandId
}
_
${
carChildsBrandId
}
`
let
storageName
=
`source_
${
sceneType
}
_
${
shopMerchantId
}
_
${
carBrandId
}
_
${
carChildsBrandId
}
`
let
data
=
uni
.
getStorageSync
(
storageName
)
let
data
=
uni
.
getStorageSync
(
storageName
)
if
(
data
)
this
.
setViewInfo
(
data
)
try
{
let
requestData
=
await
uni
.
$api
.
systemApi
.
getSoureData
(
shopMerchantId
,
sceneType
,
params
)
let
requestData
=
await
uni
.
$api
.
systemApi
.
getSoureData
(
shopMerchantId
,
sceneType
,
params
)
if
(
requestData
)
this
.
setViewInfo
(
requestData
)
if
(
requestData
)
this
.
setViewInfo
(
requestData
)
}
catch
(
error
)
{
if
(
data
)
this
.
setViewInfo
(
data
)
}
},
},
setViewInfo
(
data
)
{
setViewInfo
(
data
)
{
this
.
moduleList
=
data
.
moduleList
let
{
mediaId
,
id
:
pageId
}
=
this
,
this
.
pageToolList
=
data
.
toolList
{
id
,
moduleList
,
toolList
}
=
data
if
(
id
!=
mediaId
)
{
let
{
useCarConfig
,
moduleList
:
pageModuleList
,
media
:
pageMedia
}
=
this
,
array
=
useCarConfig
?
pageModuleList
:
pageMedia
,
{
detailTitle
}
=
array
.
find
(
item
=>
item
.
id
==
pageId
)
this
.
receptionTrackLeave
()
this
.
moduleList
=
moduleList
this
.
pageToolList
=
toolList
this
.
useCarConfig
=
true
this
.
useCarConfig
=
true
let
jumpItem
=
moduleList
.
find
(
e
=>
e
.
detailTitle
==
detailTitle
)
this
.
$emit
(
'update:id'
,
jumpItem
?
jumpItem
.
id
:
moduleList
[
0
].
id
)
}
}
}
}
}
}
}
...
...
pages/equity/index.vue
View file @
6dccce2
...
@@ -17,9 +17,8 @@
...
@@ -17,9 +17,8 @@
<view
<view
:key=
"index"
:key=
"index"
:class=
"['item landscape', i.class]"
:class=
"['item landscape', i.class]"
:style=
"i.style"
@
click=
"toDetail(i)"
@
click=
"toDetail(i)"
v-if=
"
i.thumbnail
"
v-if=
"
!i.hide
"
>
>
<template
v-if=
"i.showAlt"
>
<template
v-if=
"i.showAlt"
>
<view
class=
"item-text flex"
>
{{
i
.
title
}}
</view>
<view
class=
"item-text flex"
>
{{
i
.
title
}}
</view>
...
@@ -45,6 +44,7 @@
...
@@ -45,6 +44,7 @@
@
back=
"back"
@
back=
"back"
@
done=
"done"
@
done=
"done"
ref=
"detail"
ref=
"detail"
:mediaId=
"mediaId"
/>
/>
</
template
>
</
template
>
<
template
slot=
"content"
>
<
template
slot=
"content"
>
...
@@ -82,7 +82,8 @@ export default {
...
@@ -82,7 +82,8 @@ export default {
chooseItem
:
{},
chooseItem
:
{},
tabIndex
:
0
,
tabIndex
:
0
,
recording
:
false
,
recording
:
false
,
aitoCarModelIds
:
[]
aitoCarModelIds
:
[],
mediaId
:
''
}
}
},
},
computed
:
{
computed
:
{
...
@@ -307,10 +308,11 @@ export default {
...
@@ -307,10 +308,11 @@ export default {
},
},
/**素材内容 */
/**素材内容 */
setViewInfo
(
data
)
{
setViewInfo
(
data
)
{
let
{
moduleList
,
toolList
,
aitoCarModelIds
}
=
data
let
{
moduleList
,
toolList
,
id
}
=
data
if
(
this
.
channelType
==
1
)
this
.
aitoCarModelIds
=
aitoCarModelIds
||
[]
//
if (this.channelType == 1) this.aitoCarModelIds = aitoCarModelIds || []
this
.
moduleList
=
moduleList
this
.
moduleList
=
moduleList
this
.
toolList
=
toolList
this
.
toolList
=
toolList
this
.
mediaId
=
id
this
.
$store
.
state
.
user
=
{
this
.
$store
.
state
.
user
=
{
...
this
.
$store
.
state
.
user
,
...
this
.
$store
.
state
.
user
,
...
data
...
data
...
@@ -322,16 +324,22 @@ export default {
...
@@ -322,16 +324,22 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.module-box
{
.module-box
{
padding-top
:
toRpx
(
44
);
padding-top
:
toRpx
(
44
);
height
:
calc
(
100%
-
#{
toRpx
(
94
)}
);
box-sizing
:
border-box
;
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
toRpx
(
48
);
&
::after
{
&
::after
{
content
:
''
;
content
:
''
;
display
:
block
;
display
:
block
;
clear
:
both
;
clear
:
both
;
}
}
.item
{
.item
{
float
:
left
;
//
float
:
left
;
width
:
calc
(
50%
-
#{
toRpx
(
48
)}
);
height
:
calc
(
50
%
-
#
{
toRpx(48)
}
);
border-radius
:
toRpx
(
48
);
border-radius
:
toRpx
(
48
);
overflow
:
hidden
;
overflow
:
hidden
;
margin
:
0
toRpx
(
48
)
toRpx
(
48
)
0
;
&
-img
{
&
-img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
@@ -345,17 +353,6 @@ export default {
...
@@ -345,17 +353,6 @@ export default {
color
:
#3773f8
;
color
:
#3773f8
;
}
}
}
}
.landscape
{
height
:
toRpx
(
312
);
}
.square
{
width
:
toRpx
(
318
);
height
:
toRpx
(
312
);
}
.vertical
{
width
:
toRpx
(
712
);
height
:
toRpx
(
624
);
}
}
}
.webview-container
{
.webview-container
{
width
:
toRpx
(
100
);
width
:
toRpx
(
100
);
...
...
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