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 d62d440d
authored
Mar 25, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature_v2.1' into SAAS+V4.51
2 parents
a26ee386
757fbed4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
155 additions
and
131 deletions
api/module/systemApi.js
components/CarBrands.vue
components/HomeFrame/components/Income/History.vue
components/HomeFrame/components/Income/MyStore.vue
components/HomeFrame/components/Income/index.vue
components/HomeFrame/components/Point/LevelMedal.vue
manifest.json
mixin/record/recorder.js
pages/equity/detail/components/PageTitle.vue
pages/equity/detail/components/Reception.vue
pages/equity/detail/detail.vue
pages/equity/index.vue
store/modules/user.js
utils/cache/constantData.js
api/module/systemApi.js
View file @
d62d440
...
@@ -6,24 +6,18 @@ const serverConfig = {
...
@@ -6,24 +6,18 @@ const serverConfig = {
mockTimer
:
{},
mockTimer
:
{},
mockCache
:
null
mockCache
:
null
},
},
bydServerConfig
=
{
mockRequestCount
:
null
,
mockTimer
:
{},
mockCache
:
null
},
boutiqueServerConfig
=
{
boutiqueServerConfig
=
{
mockRequestCount
:
null
,
mockRequestCount
:
null
,
mockTimer
:
{},
mockTimer
:
{},
mockCache
:
null
mockCache
:
null
},
},
configModule
=
'app-tape'
,
configModule
=
'app-tape'
,
bydConfigModule
=
'byd-pad-config
'
,
appConfigModule
=
'app-config-url
'
,
boutiqueConfigModule
=
'boutique-pad-config'
,
boutiqueConfigModule
=
'boutique-pad-config'
,
appConfigUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
appConfigModule
}
&env=
${
env
}
`
,
configUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
configModule
}
&env=
${
env
}
`
,
configUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
configModule
}
&env=
${
env
}
`
,
bydConfigUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
bydConfigModule
}
&env=
${
env
}
`
,
boutiqueConfigUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
boutiqueConfigModule
}
&env=
${
env
}
`
boutiqueConfigUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
boutiqueConfigModule
}
&env=
${
env
}
`
/**获取APP配置 */
/**获取mock数据 */
const
getMockData
=
async
(
immediate
=
false
)
=>
{
const
getMockData
=
async
(
immediate
=
false
)
=>
{
const
MOCKDATA
=
uni
.
$storage
.
get
(
'mock_data'
)
const
MOCKDATA
=
uni
.
$storage
.
get
(
'mock_data'
)
try
{
try
{
...
@@ -35,8 +29,6 @@ const getMockData = async (immediate = false) => {
...
@@ -35,8 +29,6 @@ const getMockData = async (immediate = false) => {
serverConfig
.
mockRequestCount
=
Date
.
now
()
serverConfig
.
mockRequestCount
=
Date
.
now
()
const
data
=
await
http
.
uni_request
({
url
:
configUrl
})
const
data
=
await
http
.
uni_request
({
url
:
configUrl
})
data
.
createTime
=
Date
.
now
()
data
.
createTime
=
Date
.
now
()
data
.
moduleList
=
await
imgToBase64
(
data
.
moduleList
,
'thumbnail'
)
data
.
default_moduleList
=
await
imgToBase64
(
data
.
default_moduleList
,
'thumbnail'
)
serverConfig
.
mockCache
=
data
serverConfig
.
mockCache
=
data
uni
.
$storage
.
set
(
'mock_data'
,
data
)
uni
.
$storage
.
set
(
'mock_data'
,
data
)
return
Promise
.
resolve
(
data
)
return
Promise
.
resolve
(
data
)
...
@@ -60,98 +52,6 @@ const getMockData = async (immediate = false) => {
...
@@ -60,98 +52,6 @@ const getMockData = async (immediate = false) => {
return
Promise
.
reject
(
error
)
return
Promise
.
reject
(
error
)
}
}
}
}
const
imgToBase64
=
(
list
,
urlKey
,
isArray
=
true
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
arr
=
[],
newList
=
JSON
.
parse
(
JSON
.
stringify
(
list
))
if
(
isArray
)
{
list
.
map
((
e
,
index
)
=>
{
if
(
!
e
[
urlKey
])
return
resolve
(
list
)
if
(
!
e
[
urlKey
].
startsWith
(
'https'
))
return
resolve
(
list
)
uni
.
request
({
url
:
urlKey
?
e
[
urlKey
]
:
e
,
method
:
'GET'
,
responseType
:
'arraybuffer'
,
success
:
res
=>
{
const
base64
=
`data:image/png;base64,
${
uni
.
arrayBufferToBase64
(
res
.
data
)}
`
newList
[
index
][
urlKey
]
=
base64
newList
[
index
][
`original_
${
urlKey
}
`
]
=
e
[
urlKey
]
arr
.
push
(
e
)
if
(
arr
.
length
===
list
.
length
)
resolve
(
newList
)
},
fail
:
err
=>
{
reject
(
err
)
}
})
})
}
else
{
Object
.
keys
(
list
).
map
(
key
=>
{
if
(
!
list
[
key
].
startsWith
(
'https'
))
return
resolve
(
list
)
uni
.
request
({
url
:
list
[
key
],
method
:
'GET'
,
responseType
:
'arraybuffer'
,
success
:
res
=>
{
const
base64
=
`data:image/png;base64,
${
uni
.
arrayBufferToBase64
(
res
.
data
)}
`
newList
[
key
]
=
base64
arr
.
push
(
key
)
if
(
arr
.
length
===
Object
.
keys
(
list
).
length
)
resolve
(
newList
)
},
fail
:
err
=>
{
reject
(
err
)
}
})
})
}
})
}
const
updateMockData
=
(
dataList
,
keyList
,
storageName
=
'mock_data'
)
=>
{
const
mockData
=
uni
.
$storage
.
get
(
storageName
)
keyList
.
map
(
key
=>
{
mockData
[
key
]
=
dataList
[
key
]
})
setTimeout
(()
=>
{
uni
.
$storage
.
set
(
storageName
,
mockData
)
},
1
e3
)
}
/**
*获取比亚迪配置
*/
const
getBydMockData
=
async
(
immediate
=
false
)
=>
{
const
MOCKDATA
=
uni
.
$storage
.
get
(
'byd_mock_data'
)
try
{
if
(
!
immediate
&&
MOCKDATA
&&
Date
.
now
()
-
MOCKDATA
.
createTime
<
5
*
60
e3
)
{
return
Promise
.
resolve
(
MOCKDATA
)
}
else
{
if
(
!
bydServerConfig
.
mockRequestCount
||
immediate
)
{
bydServerConfig
.
mockCache
=
null
bydServerConfig
.
mockRequestCount
=
Date
.
now
()
const
data
=
await
http
.
uni_request
({
url
:
bydConfigUrl
})
data
.
createTime
=
Date
.
now
()
data
.
moduleList
=
await
imgToBase64
(
data
.
moduleList
,
'thumbnail'
)
bydServerConfig
.
mockCache
=
data
uni
.
$storage
.
set
(
'byd_mock_data'
,
data
)
return
Promise
.
resolve
(
data
)
}
else
{
const
key
=
Date
.
now
()
return
new
Promise
(
resolve
=>
{
bydServerConfig
.
mockTimer
[
key
]
=
setInterval
(()
=>
{
if
(
bydServerConfig
.
mockCache
)
{
clearInterval
(
bydServerConfig
.
mockTimer
[
key
])
bydServerConfig
.
mockRequestCount
=
null
resolve
(
bydServerConfig
.
mockCache
)
}
},
1
e3
)
})
}
}
}
catch
(
error
)
{
console
.
log
(
error
)
if
(
bydServerConfig
.
mockTimer
[
key
])
clearInterval
(
bydServerConfig
.
mockTimer
[
key
])
bydServerConfig
.
mockRequestCount
=
null
return
Promise
.
reject
(
error
)
}
}
/**
/**
*获取后台素材配置
*获取后台素材配置
*/
*/
...
@@ -204,13 +104,120 @@ const getImageVersion = async () => {
...
@@ -204,13 +104,120 @@ const getImageVersion = async () => {
const
accountInfo
=
await
getMockData
()
const
accountInfo
=
await
getMockData
()
return
accountInfo
?.
version
||
Date
.
now
()
return
accountInfo
?.
version
||
Date
.
now
()
}
}
/**获取素材配置 */
const
getSoureData
=
async
(
channelType
=
1
,
shopMerchantId
,
sceneType
=
0
)
=>
{
const
sceneData
=
await
http
.
uni_request
({
url
:
appConfigUrl
}),
{
brandIds
,
merchantIds
,
caseCenterIds
}
=
sceneData
[
sceneType
]
let
targetUrl
,
storageName
=
`source_
${
sceneType
}
_data_`
if
(
merchantIds
.
hasOwnProperty
(
shopMerchantId
))
{
targetUrl
=
merchantIds
[
shopMerchantId
]
storageName
+=
`merchantId_
${
shopMerchantId
}
`
}
else
{
targetUrl
=
brandIds
[
channelType
]
storageName
+=
`channelType_
${
channelType
}
`
}
let
data
=
await
http
.
uni_request
({
url
:
`
${
targetUrl
}
&env=
${
env
}
`
}),
{
moduleList
,
toolList
}
=
data
/**全损无忧 */
if
(
caseCenterIds
.
includes
(
channelType
))
{
let
configList
try
{
configList
=
await
findReceptionpriproConfigList
({})
uni
.
$storage
.
set
(
'findReceptionpriproConfigList'
,
configList
)
}
catch
(
error
)
{
configList
=
uni
.
$storage
.
get
(
'findReceptionpriproConfigList'
)
}
const
toolOtherList
=
configList
.
map
(
i
=>
{
return
{
id
:
10
+
i
.
id
,
shortTitle
:
i
.
productName
,
shortTitleUrl
:
i
.
procuctLog
}
})
toolList
=
toolList
.
concat
(
toolOtherList
)
const
moduleOtherList
=
configList
.
map
(
i
=>
{
return
{
id
:
10
+
i
.
id
,
title
:
i
.
productName
,
shortTitleUrl
:
i
.
procuctLog
,
productPoster
:
i
.
productPoster
,
showAlt
:
false
,
componentName
:
'CaseCenter'
,
receptionpriproCusCaseList
:
i
.
receptionpriproCusCaseList
}
})
moduleList
=
moduleList
.
concat
(
moduleOtherList
)
}
data
.
moduleList
=
await
imgTransformBase64
(
moduleList
,
[
'thumbnail'
,
'receptionSourceDetailList'
,
'screenList'
])
data
.
toolList
=
await
imgTransformBase64
(
toolList
,
[
'shortTitleUrl'
])
uni
.
setStorageSync
(
storageName
,
{
moduleList
,
toolList
})
return
Promise
.
resolve
(
data
)
}
/**批量图片转base64 */
const
imgTransformBase64
=
async
(
imgList
=
[],
keyList
=
[])
=>
{
return
await
Promise
.
all
(
imgList
.
map
(
async
e
=>
{
await
Promise
.
all
(
Object
.
keys
(
e
).
map
(
async
key
=>
{
if
(
keyList
.
includes
(
key
))
{
let
isArray
=
Array
.
isArray
(
e
[
key
])
if
(
isArray
)
{
await
Promise
.
all
(
e
[
key
].
map
(
async
i
=>
{
await
Promise
.
all
(
Object
.
keys
(
i
).
map
(
async
k
=>
{
// i[`original_${k}`] = JSON.parse(JSON.stringify(i[k]))
i
[
k
]
=
await
getBase64
(
i
[
k
])
})
)
})
)
}
else
{
if
(
typeof
e
[
key
]
===
'string'
)
{
// e[`original_${key}`] = JSON.parse(JSON.stringify(e[key]))
e
[
key
]
=
await
getBase64
(
e
[
key
])
}
if
(
typeof
e
[
key
]
===
'object'
)
{
await
Promise
.
all
(
Object
.
keys
(
e
[
key
]).
map
(
async
k
=>
{
// e[key][`original_${k}`] = JSON.parse(JSON.stringify(e[key][k]))
e
[
key
][
k
]
=
await
getBase64
(
e
[
key
][
k
])
})
)
}
}
}
})
)
return
e
})
)
}
/**转base64 */
const
getBase64
=
async
(
url
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
request
({
url
,
method
:
'GET'
,
responseType
:
'arraybuffer'
,
success
:
res
=>
{
const
base64
=
`data:image/png;base64,
${
uni
.
arrayBufferToBase64
(
res
.
data
)}
`
resolve
(
base64
)
},
fail
:
err
=>
{
reject
(
err
)
}
})
})
}
module
.
exports
=
{
module
.
exports
=
{
getImageVersion
,
getImageVersion
,
getMockData
,
getMockData
,
imgToBase64
,
updateMockData
,
getBydMockData
,
getBoutiqueMockData
,
getBoutiqueMockData
,
findReceptionpriproConfigList
findReceptionpriproConfigList
,
getSoureData
}
}
components/CarBrands.vue
View file @
d62d440
...
@@ -93,17 +93,20 @@ export default {
...
@@ -93,17 +93,20 @@ export default {
},
},
boutiqueDefaultCarBrandId
()
{
boutiqueDefaultCarBrandId
()
{
return
this
.
$store
.
state
.
user
.
boutiqueDefaultCarBrandId
return
this
.
$store
.
state
.
user
.
boutiqueDefaultCarBrandId
},
defaultCarId
()
{
return
this
.
$store
.
state
.
user
.
defaultCarId
||
''
}
}
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
autoSelect
()
{
autoSelect
()
{
const
{
carBrandList
,
boutiqueDefaultCarBrandId
}
=
this
const
{
carBrandList
,
boutiqueDefaultCarBrandId
,
defaultCarId
}
=
this
let
carIndex
=
0
let
carIndex
=
0
if
(
boutiqueDefaultCarBrandId
)
carIndex
=
carBrandList
.
findIndex
(
e
=>
e
.
id
==
boutiqueDefaultCarBrandId
)
if
(
boutiqueDefaultCarBrandId
)
carIndex
=
carBrandList
.
findIndex
(
e
=>
e
.
id
==
boutiqueDefaultCarBrandId
)
if
(
carIndex
<
0
)
carIndex
=
0
if
(
carIndex
<
0
)
carIndex
=
0
if
(
carBrandList
.
length
)
this
.
selectCar
(
carBrandList
[
carIndex
],
true
)
if
(
carBrandList
.
length
)
this
.
selectCar
(
carBrandList
[
carIndex
],
true
,
defaultCarId
)
},
},
open
()
{
open
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
...
...
components/HomeFrame/components/Income/History.vue
View file @
d62d440
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15
* @Date: 2025-01-07 13:49:15
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-0
1-22 00:25:25
* @LastEditTime: 2025-0
3-14 14:54:11
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<view
class=
"income-box"
>
<view
class=
"income-box"
>
<view
class=
"income-header"
>
<view
class=
"income-header"
>
<view
class=
"sprite-icon icon-income-icon"
></view>
<view
class=
"sprite-icon icon-income-icon"
></view>
<text>
{{
year
}}
年
{{
monthStr
||
month
}}
月收入
</text>
<text>
{{
year
}}
年
{{
monthStr
||
month
-
1
}}
月收入
</text>
</view>
</view>
<template
v-if=
"salaryDetail"
>
<template
v-if=
"salaryDetail"
>
<view
class=
"income-footer"
>
<view
class=
"income-footer"
>
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
return
true
return
true
},
},
getDetail
(
date
)
{
getDetail
(
date
)
{
uni
.
$api
.
pointApi
.
pageStat
({
salaryMonthBegin
:
`
${
this
.
year
}
-1`
,
salaryMonthEnd
:
`
${
this
.
year
}
-12`
}).
then
(
res
=>
{
uni
.
$api
.
pointApi
.
pageStat
({
salaryMonthBegin
:
`
${
this
.
year
}
-
0
1`
,
salaryMonthEnd
:
`
${
this
.
year
}
-12`
}).
then
(
res
=>
{
const
list
=
res
.
list
||
[]
const
list
=
res
.
list
||
[]
const
canvasList
=
[]
const
canvasList
=
[]
for
(
let
i
=
0
;
i
<
12
;
i
++
)
{
for
(
let
i
=
0
;
i
<
12
;
i
++
)
{
...
@@ -153,9 +153,9 @@ export default {
...
@@ -153,9 +153,9 @@ export default {
}
}
}
}
this
.
canvasList
=
canvasList
this
.
canvasList
=
canvasList
this
.
showChart
(
this
.
month
-
1
)
this
.
showChart
(
this
.
month
-
2
)
})
})
this
.
monthSalaryDetail
(
this
.
year
+
'-'
+
this
.
month
)
this
.
monthSalaryDetail
(
this
.
year
+
'-'
+
String
(
this
.
month
-
1
).
padStart
(
2
,
0
)
)
},
},
/**
/**
...
@@ -218,7 +218,7 @@ export default {
...
@@ -218,7 +218,7 @@ export default {
this
.
showChart
(
i
)
// 重新绘制图表,如果需要更新显示
this
.
showChart
(
i
)
// 重新绘制图表,如果需要更新显示
const
month
=
this
.
canvasList
[
i
].
date
.
replace
(
/
\D
+/
,
''
)
const
month
=
this
.
canvasList
[
i
].
date
.
replace
(
/
\D
+/
,
''
)
this
.
monthStr
=
month
this
.
monthStr
=
month
this
.
monthSalaryDetail
(
this
.
year
+
'-'
+
month
)
this
.
monthSalaryDetail
(
this
.
year
+
'-'
+
month
.
padStart
(
2
,
0
)
)
}
}
break
break
...
...
components/HomeFrame/components/Income/MyStore.vue
View file @
d62d440
...
@@ -252,6 +252,8 @@ export default {
...
@@ -252,6 +252,8 @@ export default {
this
.
getCommissionsInfo
()
this
.
getCommissionsInfo
()
}
else
{
}
else
{
this
.
commissionsInfo
=
[{}]
this
.
commissionsInfo
=
[{}]
this
.
commissionsInfoQG
=
[]
this
.
scene0PenetrationRateCommissions
=
[]
}
}
})
})
},
},
...
...
components/HomeFrame/components/Income/index.vue
View file @
d62d440
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
<view
class=
"income-container"
@
click=
"handleTouch"
>
<view
class=
"income-container"
@
click=
"handleTouch"
>
<template
v-if=
"isShow"
>
<template
v-if=
"isShow"
>
<view
class=
"income-header"
>
<view
class=
"income-header"
>
<view
class=
"level-box"
@
click=
"jump('Promotion')"
>
<
!--
<
view
class=
"level-box"
@
click=
"jump('Promotion')"
>
<view
class=
"sprite-icon icon-zj-icon"
></view>
<view
class=
"sprite-icon icon-zj-icon"
></view>
<view
class=
"level-label"
>
职级
</view>
<view
class=
"level-label"
>
职级
</view>
<view
class=
"level-desc"
>
{{
jobTypeList
[
incomeDetail
.
jobType
]
}}
</view>
<view
class=
"level-desc"
>
{{
jobTypeList
[
incomeDetail
.
jobType
]
}}
</view>
<view
class=
"sprite-icon icon-js-icon"
></view>
<view
class=
"sprite-icon icon-js-icon"
></view>
</view>
</view>
-->
<view
class=
"time-box"
@
click=
"jump('Calendar')"
>
<view
class=
"time-box"
@
click=
"jump('Calendar')"
>
<view
class=
"sprite-icon icon-work-icon"
></view>
<view
class=
"sprite-icon icon-work-icon"
></view>
<view
class=
"level-label"
>
本月出勤
</view>
<view
class=
"level-label"
>
本月出勤
</view>
...
...
components/HomeFrame/components/Point/LevelMedal.vue
View file @
d62d440
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-03-1
0 15:56:08
* @LastEditTime: 2025-03-1
2 10:40:21
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<view
class=
"star-logo"
><image
:src=
"badgeList.includes(item.medalType) || isHigh ? item.logo : item.logo_grey"
></image></view>
<view
class=
"star-logo"
><image
:src=
"badgeList.includes(item.medalType) || isHigh ? item.logo : item.logo_grey"
></image></view>
<view
:class=
"
{ 'star-name': true, grey: !badgeList.includes(item.medalType)
&&
!isHigh }">
{{
item
.
levelName
}}
</view>
<view
:class=
"
{ 'star-name': true, grey: !badgeList.includes(item.medalType)
&&
!isHigh }">
{{
item
.
levelName
}}
</view>
<view
:class=
"
{ 'star-desc': true, grey: !badgeList.includes(item.medalType)
&&
!isHigh }">
{{
item
.
levelDesc
}}
</view>
<view
:class=
"
{ 'star-desc': true, grey: !badgeList.includes(item.medalType)
&&
!isHigh }">
{{
item
.
levelDesc
}}
</view>
<view
class=
"star-coupon"
>
<view
class=
"star-coupon"
v-if=
"item.couponName"
>
<view
class=
"coupon-box"
>
<view
class=
"coupon-box"
>
<image
:src=
"require('@/assets/images/point/coupon_bg.png')"
v-if=
"badgeList.includes(item.medalType) || isHigh"
></image>
<image
:src=
"require('@/assets/images/point/coupon_bg.png')"
v-if=
"badgeList.includes(item.medalType) || isHigh"
></image>
<image
:src=
"require('@/assets/images/point/coupon_grey.png')"
v-else
></image>
<image
:src=
"require('@/assets/images/point/coupon_grey.png')"
v-else
></image>
...
@@ -424,7 +424,8 @@ export default {
...
@@ -424,7 +424,8 @@ export default {
font-size
:
toRpx
(
24
);
font-size
:
toRpx
(
24
);
color
:
#181a1f
;
color
:
#181a1f
;
text-align
:
center
;
text-align
:
center
;
line-height
:
toRpx
(
60
);
height
:
toRpx
(
60
);
margin-top
:
toRpx
(
12
);
&.grey
{
&.grey
{
color
:
#a2a2a8
;
color
:
#a2a2a8
;
}
}
...
...
manifest.json
View file @
d62d440
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
"versionName"
:
"2.6.0"
,
"versionName"
:
"2.6.0"
,
"versionCode"
:
"260"
,
"versionCode"
:
"260"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
"sassImplementationName"
:
"node-sass"
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
"app-plus"
:
{
"app-plus"
:
{
"cache"
:
false
,
"cache"
:
false
,
...
@@ -16,6 +17,7 @@
...
@@ -16,6 +17,7 @@
"ignoreVersion"
:
true
"ignoreVersion"
:
true
},
},
"screenOrientation"
:
"landscape"
,
"screenOrientation"
:
"landscape"
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
...
...
mixin/record/recorder.js
View file @
d62d440
...
@@ -44,15 +44,15 @@ export default {
...
@@ -44,15 +44,15 @@ export default {
this
.
handler
(
val
,
this
.
updateReceptionStatus
)
this
.
handler
(
val
,
this
.
updateReceptionStatus
)
}
}
},
},
reception
Track
:
{
reception
Key
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
handler
(
val
,
this
.
updateMaterialPointList
)
this
.
handler
(
this
.
receptionTrack
,
this
.
updateMaterialPointList
)
}
}
}
}
},
},
computed
:
{
computed
:
{
...
mapState
([
'user.customerInfo'
]),
...
mapState
([
'user.customerInfo'
]),
...
mapGetters
([
'customerInfo'
,
'receptionStatus'
,
'booksList'
,
'receptionTrack'
])
...
mapGetters
([
'customerInfo'
,
'receptionStatus'
,
'booksList'
,
'receptionTrack'
,
'receptionKey'
])
},
},
methods
:
{
methods
:
{
...
mapMutations
(
'audio'
,
[
'setReceptionStatus'
,
'setBooks'
,
'setPerRecordNumber'
]),
...
mapMutations
(
'audio'
,
[
'setReceptionStatus'
,
'setBooks'
,
'setPerRecordNumber'
]),
...
...
pages/equity/detail/components/PageTitle.vue
View file @
d62d440
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
show
:
{
show
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
newval
)
{
handler
(
newval
)
{
if
(
newval
&&
this
.
hasCarBrand
&&
!
this
.
customerInfo
.
carModel
&&
this
.
watchChannelType
==
1
)
this
.
$refs
.
carBrandListVisible
.
autoSelect
()
if
(
newval
&&
this
.
hasCarBrand
&&
!
this
.
customerInfo
.
carModel
&&
this
.
watchChannelType
!=
2
)
this
.
$refs
.
carBrandListVisible
.
autoSelect
()
}
}
},
},
watchCustomerInfo
:
{
watchCustomerInfo
:
{
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
return
this
.
$store
.
state
.
user
.
historyStatus
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
watchChannelType
()
{
watchChannelType
()
{
// 默认1 1问界 2 比亚迪 3 其他
// 默认1 1问界 2 比亚迪 3 其他
4极狐
return
uni
.
$storage
.
get
(
'userInfo'
).
channelType
return
uni
.
$storage
.
get
(
'userInfo'
).
channelType
}
}
},
},
...
...
pages/equity/detail/components/Reception.vue
View file @
d62d440
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<
template
v-else
>
<
template
v-else
>
<image
<image
class=
"content-image"
class=
"content-image"
:src=
"
views[customerInfo.carModelId] || require('@/assets/images/media/nothing.webp'
)"
:src=
"
contentUrl(
)"
/>
/>
<image
<image
class=
"content-bg"
class=
"content-bg"
...
@@ -138,7 +138,9 @@ export default {
...
@@ -138,7 +138,9 @@ export default {
}
}
},
},
show
(
n
)
{
show
(
n
)
{
if
(
n
&&
!
this
.
customerInfo
.
carModel
&&
!
this
.
isByd
)
this
.
$refs
.
carBrandListVisible
.
autoSelect
()
setTimeout
(()
=>
{
if
(
n
&&
!
this
.
customerInfo
.
carModel
&&
!
this
.
isByd
)
this
.
$refs
.
carBrandListVisible
.
autoSelect
()
},
1
e3
)
}
}
},
},
computed
:
{
computed
:
{
...
@@ -187,10 +189,17 @@ export default {
...
@@ -187,10 +189,17 @@ export default {
this
.
inputCustomer
()
this
.
inputCustomer
()
},
},
receptionBg
(
carModelId
)
{
receptionBg
(
carModelId
)
{
let
{
views
}
=
this
const
isAito
=
this
.
aitoCarModelIds
.
findIndex
(
e
=>
e
==
carModelId
)
const
isAito
=
this
.
aitoCarModelIds
.
findIndex
(
e
=>
e
==
carModelId
)
let
bgUrl
=
require
(
'@/assets/images/common/aito-bg.webp'
)
let
bgUrl
=
require
(
'@/assets/images/common/aito-bg.webp'
)
if
(
isAito
==
-
1
)
bgUrl
=
require
(
'@/assets/images/common/zj-xj-bg.webp'
)
if
(
isAito
==
-
1
)
bgUrl
=
require
(
'@/assets/images/common/zj-xj-bg.webp'
)
if
(
Array
.
isArray
(
views
))
{
bgUrl
=
views
[
0
]?.
bgUrl
||
''
}
return
bgUrl
return
bgUrl
},
contentUrl
()
{
let
{
views
,
customerInfo
}
=
this
let
isArray
=
Array
.
isArray
(
views
)
return
(
isArray
?
views
[
0
].
detailUrl
:
views
[
customerInfo
.
carModelId
])
||
require
(
'@/assets/images/media/nothing.webp'
)
}
}
}
}
}
}
...
...
pages/equity/detail/detail.vue
View file @
d62d440
...
@@ -190,7 +190,7 @@ export default {
...
@@ -190,7 +190,7 @@ export default {
handler
(
newval
)
{
handler
(
newval
)
{
if
(
this
.
channelType
==
1
)
{
if
(
this
.
channelType
==
1
)
{
let
{
carModelId
}
=
this
.
customerInfo
let
{
carModelId
}
=
this
.
customerInfo
const
isAito
=
this
.
aitoCarModelIds
.
findIndex
(
e
=>
e
==
carModelId
)
const
isAito
=
this
.
aitoCarModelIds
?
.
findIndex
(
e
=>
e
==
carModelId
)
if
(
isAito
==
-
1
)
{
if
(
isAito
==
-
1
)
{
this
.
pageToolList
=
this
.
toolList
.
filter
(
e
=>
!
e
.
isAito
)
this
.
pageToolList
=
this
.
toolList
.
filter
(
e
=>
!
e
.
isAito
)
}
else
this
.
pageToolList
=
this
.
toolList
}
else
this
.
pageToolList
=
this
.
toolList
...
...
pages/equity/index.vue
View file @
d62d440
This diff is collapsed.
Click to expand it.
store/modules/user.js
View file @
d62d440
...
@@ -32,6 +32,7 @@ export default {
...
@@ -32,6 +32,7 @@ export default {
viewKey
:
Date
.
now
(),
viewKey
:
Date
.
now
(),
boutiqueCarList
:[],
boutiqueCarList
:[],
receptionKey
:
Date
.
now
(),
//接待记录埋点KEY
receptionKey
:
Date
.
now
(),
//接待记录埋点KEY
defaultCarId
:
''
};
};
},
},
mutations
:
{
mutations
:
{
...
...
utils/cache/constantData.js
View file @
d62d440
...
@@ -26,7 +26,6 @@ export const STORAGE_OBJECTKEY = {
...
@@ -26,7 +26,6 @@ export const STORAGE_OBJECTKEY = {
historyList
:
'historyList'
,
historyList
:
'historyList'
,
storageVersion
:
'storageVersion'
,
storageVersion
:
'storageVersion'
,
clearVersion
:
'clearVersion'
,
clearVersion
:
'clearVersion'
,
byd_mock_data
:
'byd_mock_data'
,
boutique_mock_data
:
'boutique_mock_data'
,
boutique_mock_data
:
'boutique_mock_data'
,
findReceptionpriproConfigList
:
'findReceptionpriproConfigList'
,
findReceptionpriproConfigList
:
'findReceptionpriproConfigList'
,
appInfoList
:
'appInfoList'
appInfoList
:
'appInfoList'
...
...
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