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 8b20b540
authored
May 21, 2025
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置
1 parent
57eb488e
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
161 additions
and
191 deletions
api/module/systemApi.js
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/index.vue
env.js
manifest.json
pages/equity/detail/components/MediaComponent.vue
pages/equity/index.vue
api/module/systemApi.js
View file @
8b20b54
...
@@ -5,7 +5,7 @@ const serverConfig = {
...
@@ -5,7 +5,7 @@ const serverConfig = {
mockRequestCount
:
null
,
mockRequestCount
:
null
,
mockTimer
:
{},
mockTimer
:
{},
mockCache
:
null
mockCache
:
null
},
},
boutiqueServerConfig
=
{
boutiqueServerConfig
=
{
mockRequestCount
:
null
,
mockRequestCount
:
null
,
mockTimer
:
{},
mockTimer
:
{},
...
@@ -137,10 +137,11 @@ const getSoureData = async (shopMerchantId, sceneType) => {
...
@@ -137,10 +137,11 @@ const getSoureData = async (shopMerchantId, sceneType) => {
{
toolList
,
materialInfoList
}
=
data
,
{
toolList
,
materialInfoList
}
=
data
,
storageName
=
`source_
${
sceneType
}
_
${
shopMerchantId
}
`
storageName
=
`source_
${
sceneType
}
_
${
shopMerchantId
}
`
data
.
moduleList
=
materialInfoList
data
.
moduleList
=
materialInfoList
data
.
moduleList
=
await
imgTransformBase64
(
materialInfoList
,
[
'thumbnail'
,
'receptionSourceDetailList'
,
'screenList'
])
//
data.moduleList = await imgTransformBase64(materialInfoList, ['thumbnail', 'receptionSourceDetailList', 'screenList'])
data
.
toolList
=
await
imgTransformBase64
(
toolList
,
[
'shortTitleUrl'
])
//
data.toolList = await imgTransformBase64(toolList, ['shortTitleUrl'])
uni
.
setStorageSync
(
storageName
,
{
uni
.
setStorageSync
(
storageName
,
{
moduleList
,
toolList
moduleList
,
toolList
})
})
return
Promise
.
resolve
(
data
)
return
Promise
.
resolve
(
data
)
}
}
...
@@ -156,8 +157,7 @@ const getSoureData = async (shopMerchantId, sceneType) => {
...
@@ -156,8 +157,7 @@ const getSoureData = async (shopMerchantId, sceneType) => {
if
(
merchantIds
.
hasOwnProperty
(
shopMerchantId
))
{
if
(
merchantIds
.
hasOwnProperty
(
shopMerchantId
))
{
targetUrl
=
merchantIds
[
shopMerchantId
]
targetUrl
=
merchantIds
[
shopMerchantId
]
storageName
+=
`merchantId_
${
shopMerchantId
}
`
storageName
+=
`merchantId_
${
shopMerchantId
}
`
}
}
else
{
else
{
targetUrl
=
brandIds
[
channelType
]
targetUrl
=
brandIds
[
channelType
]
storageName
+=
`channelType_
${
channelType
}
`
storageName
+=
`channelType_
${
channelType
}
`
}
}
...
@@ -196,7 +196,8 @@ const getSoureData = async (shopMerchantId, sceneType) => {
...
@@ -196,7 +196,8 @@ const getSoureData = async (shopMerchantId, sceneType) => {
data
.
moduleList
=
await
imgTransformBase64
(
moduleList
,
[
'thumbnail'
,
'receptionSourceDetailList'
,
'screenList'
])
data
.
moduleList
=
await
imgTransformBase64
(
moduleList
,
[
'thumbnail'
,
'receptionSourceDetailList'
,
'screenList'
])
data
.
toolList
=
await
imgTransformBase64
(
toolList
,
[
'shortTitleUrl'
])
data
.
toolList
=
await
imgTransformBase64
(
toolList
,
[
'shortTitleUrl'
])
uni
.
setStorageSync
(
storageName
,
{
uni
.
setStorageSync
(
storageName
,
{
moduleList
,
toolList
moduleList
,
toolList
})
})
return
Promise
.
resolve
(
data
)
return
Promise
.
resolve
(
data
)
}
}
...
@@ -241,7 +242,7 @@ const imgTransformBase64 = async (imgList = [], keyList = []) => {
...
@@ -241,7 +242,7 @@ const imgTransformBase64 = async (imgList = [], keyList = []) => {
)
)
}
}
/**转base64 */
/**转base64 */
const
getBase64
=
async
(
url
)
=>
{
const
getBase64
=
async
url
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
request
({
uni
.
request
({
url
,
url
,
...
...
components/HomeFrame/components/LeftSide.vue
View file @
8b20b54
...
@@ -138,7 +138,7 @@ export default {
...
@@ -138,7 +138,7 @@ export default {
},
},
startTrack
()
{
startTrack
()
{
this
.
trackInterval
=
setInterval
(()
=>
{
this
.
trackInterval
=
setInterval
(()
=>
{
this
.
add
Track
()
this
.
leave
Track
()
},
5000
)
},
5000
)
},
},
changeIndex
(
index
,
item
)
{
changeIndex
(
index
,
item
)
{
...
...
components/HomeFrame/index.vue
View file @
8b20b54
...
@@ -152,6 +152,8 @@ export default {
...
@@ -152,6 +152,8 @@ export default {
console
.
log
(
wv
,
1111
)
console
.
log
(
wv
,
1111
)
if
(
wv
)
{
if
(
wv
)
{
wv
.
setStyle
({
left
:
'8%'
,
height
:
'100%'
,
top
:
'3%'
,
height
:
'97%'
,
width
:
'92%'
})
wv
.
setStyle
({
left
:
'8%'
,
height
:
'100%'
,
top
:
'3%'
,
height
:
'97%'
,
width
:
'92%'
})
}
else
{
this
.
jumpUrl
=
''
}
}
},
100
)
},
100
)
}
else
{
}
else
{
...
...
env.js
View file @
8b20b54
...
@@ -109,7 +109,8 @@ const pathEnum = {
...
@@ -109,7 +109,8 @@ const pathEnum = {
busassistant
:
'/rop-scrm-busassistant/'
,
busassistant
:
'/rop-scrm-busassistant/'
,
boutique
:
'/rop-dj-car-boutique/'
,
boutique
:
'/rop-dj-car-boutique/'
,
merchants
:
'/rop-merchants/'
,
merchants
:
'/rop-merchants/'
,
pad
:
'/rop-dj-pad/'
pad
:
'/rop-dj-pad/'
,
clue
:
'/rop-scrm-clue/'
}
}
const
CONFIG_ENV_MAP
=
{
const
CONFIG_ENV_MAP
=
{
1
:
'develop'
,
1
:
'develop'
,
...
...
manifest.json
View file @
8b20b54
{
{
"name"
:
"展业助手"
,
"name"
:
"展业助手"
,
"appid"
:
"__UNI__D3BD3DF"
,
"appid"
:
"__UNI__D3BD3DF"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"2.9.0"
,
"versionName"
:
"2.9.0"
,
"versionCode"
:
"290"
,
"versionCode"
:
"290"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
"sassImplementationName"
:
"node-sass"
,
"sassImplementationName"
:
"node-sass"
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
"app-plus"
:
{
"app-plus"
:
{
"cache"
:
false
,
"cache"
:
false
,
"bounce"
:
"none"
,
"bounce"
:
"none"
,
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"compilerVersion"
:
3
,
"compatible"
:
{
"compatible"
:
{
"ignoreVersion"
:
true
"ignoreVersion"
:
true
},
},
"screenOrientation"
:
"landscape"
,
"screenOrientation"
:
"landscape"
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
"delay"
:
0
},
},
/*
模块配置
*/
/*
模块配置
*/
"modules"
:
{
"modules"
:
{
"Camera"
:
{},
"Camera"
:
{},
"Record"
:
{},
"Record"
:
{},
"VideoPlayer"
:
{},
"VideoPlayer"
:
{},
"AudioPlayer"
:
{},
"AudioPlayer"
:
{},
"SQLite"
:
{},
"SQLite"
:
{},
"Maps"
:
{},
"Maps"
:
{},
"Geolocation"
:
{}
"Geolocation"
:
{}
},
},
/*
应用发布信息
*/
/*
应用发布信息
*/
"distribute"
:
{
"distribute"
:
{
/*
android打包配置
*/
/*
android打包配置
*/
"android"
:
{
"android"
:
{
"permissions"
:
[
"permissions"
:
[
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
...
@@ -54,83 +54,76 @@
...
@@ -54,83 +54,76 @@
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
],
],
"abiFilters"
:
[
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
],
"armeabi-v7a"
,
"targetSdkVersion"
:
30
"arm64-v8a"
,
"x86"
],
"targetSdkVersion"
:
30
},
},
/*
ios打包配置
*/
/*
ios打包配置
*/
"ios"
:
{
"ios"
:
{
"dSYMs"
:
false
,
"dSYMs"
:
false
,
"UIBackgroundModes"
:
"audio"
"UIBackgroundModes"
:
"audio"
},
},
/*
SDK配置
*/
/*
SDK配置
*/
"sdkConfigs"
:
{
"sdkConfigs"
:
{
"ad"
:
{},
"ad"
:
{},
"speech"
:
{},
"speech"
:
{},
"geolocation"
:
{
"geolocation"
:
{
"system"
:
{
"system"
:
{
"__platform__"
:
[
"__platform__"
:
[
"ios"
,
"android"
]
"ios"
,
"android"
]
}
}
}
}
},
},
"icons"
:
{
"icons"
:
{
"android"
:
{
"android"
:
{
"hdpi"
:
"static/72.png"
,
"hdpi"
:
"static/72.png"
,
"xhdpi"
:
"static/96.png"
,
"xhdpi"
:
"static/96.png"
,
"xxhdpi"
:
"static/144.png"
"xxhdpi"
:
"static/144.png"
}
}
}
}
},
},
"nativePlugins"
:
{
"nativePlugins"
:
{
"Ba-KeepAliveSuit"
:
{
"Ba-KeepAliveSuit"
:
{
"__plugin_info__"
:
{
"__plugin_info__"
:
{
"name"
:
"安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)"
,
"name"
:
"安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)"
,
"description"
:
"在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)"
,
"description"
:
"在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)"
,
"platforms"
:
"Android"
,
"platforms"
:
"Android"
,
"url"
:
"https://ext.dcloud.net.cn/plugin?id=11765"
,
"url"
:
"https://ext.dcloud.net.cn/plugin?id=11765"
,
"android_package_name"
:
"uni.gltap"
,
"android_package_name"
:
"uni.gltap"
,
"ios_bundle_id"
:
""
,
"ios_bundle_id"
:
""
,
"isCloud"
:
true
,
"isCloud"
:
true
,
"bought"
:
1
,
"bought"
:
1
,
"pid"
:
"11765"
,
"pid"
:
"11765"
,
"parameters"
:
{}
"parameters"
:
{}
}
}
}
}
}
}
},
},
/*
快应用特有相关
*/
/*
快应用特有相关
*/
"quickapp"
:
{},
"quickapp"
:
{},
/*
小程序特有相关
*/
/*
小程序特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
"wx79d1ff39bee3d047"
,
"appid"
:
"wx79d1ff39bee3d047"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
"urlCheck"
:
false
},
},
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-alipay"
:
{
"mp-alipay"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-baidu"
:
{
"mp-baidu"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-toutiao"
:
{
"mp-toutiao"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"uniStatistics"
:
{
"uniStatistics"
:
{
"enable"
:
false
"enable"
:
false
},
},
"vueVersion"
:
"2"
,
"vueVersion"
:
"2"
,
"h5"
:
{
"h5"
:
{
"devServer"
:
{
"devServer"
:
{
"port"
:
8080
,
"port"
:
8080
,
"https"
:
false
"https"
:
false
}
}
}
}
}
}
pages/equity/detail/components/MediaComponent.vue
View file @
8b20b54
<!--
* @Author: yangming@didihu.com.cn yangming@didihu.com.cn
* @Date: 2024-11-22 20:45:03
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-19 15:15:22
* @FilePath: \gl-tape\pages\equity\detail\components\MediaComponent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<
template
>
<view
class=
"layout"
>
<view
class=
"layout"
>
<wnCanvas
<wnCanvas
:drawStatus=
"penSwitch"
:canvasId=
"`c-$
{madiaId}`" custom @scale="$emit('scale', $event)" ref="canvasRef">
:drawStatus=
"penSwitch"
:canvasId=
"`c-$
{madiaId}`"
custom
@scale="$emit('scale',$event)"
ref="canvasRef"
>
<template
slot=
"customContent"
>
<template
slot=
"customContent"
>
<view
class=
"layout-content"
>
<view
class=
"layout-content"
>
<page-title
<page-title
:title=
"title"
:hasCarBrand=
"hasCarBrand"
:show=
"show"
/>
:title=
"title"
:hasCarBrand=
"hasCarBrand"
:show=
"show"
/>
<template
v-if=
"hasCarBrand"
>
<template
v-if=
"hasCarBrand"
>
<image
<image
:key=
"viewKey"
class=
"content"
:src=
"views[customerInfo.carModelId] || require('@/assets/images/media/nothing.webp')"
/>
:key=
"viewKey"
class=
"content"
:src=
"views[customerInfo.carModelId] || require('@/assets/images/media/nothing.webp')"
/>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<template
v-if=
"views[0]"
>
<template
v-if=
"views"
>
<image
<image
v-if=
"views.detailUrl"
class=
"content"
:src=
"views.detailUrl"
/>
v-if=
"views[0].detailUrl"
<image
v-if=
"views.bgUrl"
class=
"bg"
:src=
"views.bgUrl"
/>
class=
"content"
:src=
"views[0].detailUrl"
/>
<image
v-if=
"views[0].bgUrl"
class=
"bg"
:src=
"views[0].bgUrl"
/>
</
template
>
</
template
>
</template>
</template>
</view>
</view>
</template>
</template>
</wnCanvas>
</wnCanvas>
</view>
</view>
</template>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
import
PageTitle
from
'./PageTitle.vue'
import
PageTitle
from
'./PageTitle.vue'
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -80,7 +64,7 @@ export default {
...
@@ -80,7 +64,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
"scss"
>
.layout
{
.layout
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
...
pages/equity/index.vue
View file @
8b20b54
<
template
>
<
template
>
<view>
<view>
<home-frame
<home-frame
@
preview=
"preview"
@
start=
"start"
ref=
"home"
:id=
"id"
@
openStep=
"openStep"
@
backHome=
"backHome"
@
changeTab=
"changeTab"
>
@
preview=
"preview"
<view
class=
"module-box"
slot=
"module"
>
@
start=
"start"
ref=
"home"
:id=
"id"
@
openStep=
"openStep"
@
backHome=
"backHome"
@
changeTab=
"changeTab"
>
<view
class=
"module-box"
slot=
"module"
>
<template
v-for=
"(i, index) in moduleList"
>
<template
v-for=
"(i, index) in moduleList"
>
<view
<view
:key=
"index"
:class=
"['item landscape', i.class]"
:style=
"i.style"
@
click=
"toDetail(i)"
v-if=
"i.thumbnail"
>
:key=
"index"
:class=
"['item', i.class]"
:style=
"i.style"
@
click=
"toDetail(i)"
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>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<image
<image
class=
"item-img"
:src=
"i.thumbnail"
mode=
"scaleToFill"
@
error=
"errorImg(index)"
/>
class=
"item-img"
:src=
"i.thumbnail"
mode=
"scaleToFill"
@
error=
"errorImg(index)"
/>
</
template
>
</
template
>
</view>
</view>
</template>
</template>
</view>
</view>
<
template
slot=
"detail"
>
<
template
slot=
"detail"
>
<detail
<detail
:id
.
sync=
"id"
:media=
"moduleList"
:type
.
sync=
"type"
:toolList=
"toolList"
:aitoCarModelIds=
"aitoCarModelIds"
@
back=
"back"
@
done=
"done"
ref=
"detail"
/>
:id
.
sync=
"id"
:media=
"moduleList"
:type
.
sync=
"type"
:toolList=
"toolList"
:aitoCarModelIds=
"aitoCarModelIds"
@
back=
"back"
@
done=
"done"
ref=
"detail"
/>
</
template
>
</
template
>
<
template
slot=
"content"
>
<
template
slot=
"content"
>
<!--
<novice-guide
<!--
<novice-guide
...
@@ -73,7 +42,7 @@ import HomeFrame from '@/components/HomeFrame/index.vue'
...
@@ -73,7 +42,7 @@ import HomeFrame from '@/components/HomeFrame/index.vue'
export
default
{
export
default
{
// mixins: [storge],
// mixins: [storge],
components
:
{
HomeFrame
,
detail
,
NoviceGuide
},
components
:
{
HomeFrame
,
detail
,
NoviceGuide
},
data
()
{
data
()
{
return
{
return
{
moduleList
:
[],
moduleList
:
[],
toolList
:
[],
toolList
:
[],
...
@@ -86,20 +55,20 @@ export default {
...
@@ -86,20 +55,20 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
channelType
()
{
channelType
()
{
const
{
channelType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
channelType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
return
channelType
||
1
//默认问界
return
channelType
||
1
//默认问界
},
},
shopMerchantId
()
{
shopMerchantId
()
{
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
return
shopMerchantId
return
shopMerchantId
},
},
sceneType
()
{
sceneType
()
{
const
{
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
return
sceneType
return
sceneType
}
}
},
},
onBackPress
(
options
)
{
onBackPress
(
options
)
{
if
(
options
.
from
===
'backbutton'
)
{
if
(
options
.
from
===
'backbutton'
)
{
// 物理返回按钮触发
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
// 阻止默认行为,即不执行页面返回
...
@@ -109,12 +78,12 @@ export default {
...
@@ -109,12 +78,12 @@ export default {
// 其他情况允许正常返回
// 其他情况允许正常返回
return
false
return
false
},
},
onLoad
()
{
onLoad
()
{
uni
.
$api
.
systemApi
.
getMockData
(
true
)
//获取APP配置信息
uni
.
$api
.
systemApi
.
getMockData
(
true
)
//获取APP配置信息
this
.
getSoure
()
this
.
getSoure
()
this
.
get_Vehicle_Sales_Data
()
this
.
get_Vehicle_Sales_Data
()
},
},
onShow
()
{
onShow
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
uni
.
$storage
.
rm
(
'userInfo'
)
uni
.
$storage
.
rm
(
'userInfo'
)
...
@@ -128,11 +97,11 @@ export default {
...
@@ -128,11 +97,11 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapMutations
(
'audio'
,
[
'setReceptionStatus'
]),
...
mapMutations
(
'audio'
,
[
'setReceptionStatus'
]),
init
()
{
init
()
{
this
.
findPayInfo
()
this
.
findPayInfo
()
},
},
/**获取车型&销售数据 */
/**获取车型&销售数据 */
get_Vehicle_Sales_Data
()
{
get_Vehicle_Sales_Data
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
),
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
),
storageCarBrandList
=
uni
.
$storage
.
get
(
'carBrandList'
),
storageCarBrandList
=
uni
.
$storage
.
get
(
'carBrandList'
),
storageEmployeeList
=
uni
.
$storage
.
get
(
'employeeList'
),
storageEmployeeList
=
uni
.
$storage
.
get
(
'employeeList'
),
...
@@ -167,7 +136,7 @@ export default {
...
@@ -167,7 +136,7 @@ export default {
})
})
},
},
// 查询素材
// 查询素材
async
getSoure
(
loadStorage
=
true
)
{
async
getSoure
(
loadStorage
=
true
)
{
const
{
channelType
,
shopMerchantId
,
sceneType
}
=
this
const
{
channelType
,
shopMerchantId
,
sceneType
}
=
this
if
(
loadStorage
)
{
if
(
loadStorage
)
{
// let data = uni.getStorageSync(`source_${sceneType}_data_merchantId_${shopMerchantId}`)
// let data = uni.getStorageSync(`source_${sceneType}_data_merchantId_${shopMerchantId}`)
...
@@ -181,11 +150,11 @@ export default {
...
@@ -181,11 +150,11 @@ export default {
// let requestData = await uni.$api.systemApi.getSoureData(channelType, shopMerchantId, sceneType)
// let requestData = await uni.$api.systemApi.getSoureData(channelType, shopMerchantId, sceneType)
this
.
setViewInfo
(
requestData
)
this
.
setViewInfo
(
requestData
)
},
},
errorImg
(
index
)
{
errorImg
(
index
)
{
this
.
moduleList
[
index
].
showAlt
=
true
this
.
moduleList
[
index
].
showAlt
=
true
},
},
async
start
()
{
async
start
()
{
if
(
this
.
recording
)
return
if
(
this
.
recording
)
return
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
...
@@ -200,14 +169,14 @@ export default {
...
@@ -200,14 +169,14 @@ export default {
uni
.
hideLoading
()
uni
.
hideLoading
()
},
1
e3
)
},
1
e3
)
},
},
toDetail
(
item
)
{
toDetail
(
item
)
{
this
.
chooseItem
=
item
this
.
chooseItem
=
item
this
.
$refs
.
home
.
previewRef
.
open
()
this
.
$refs
.
home
.
previewRef
.
open
()
},
},
cancel
()
{
cancel
()
{
this
.
$refs
.
home
.
previewRef
.
close
()
this
.
$refs
.
home
.
previewRef
.
close
()
},
},
preview
()
{
preview
()
{
let
{
id
,
title
}
=
this
.
chooseItem
let
{
id
,
title
}
=
this
.
chooseItem
this
.
type
=
'preview'
this
.
type
=
'preview'
this
.
id
=
id
this
.
id
=
id
...
@@ -215,7 +184,7 @@ export default {
...
@@ -215,7 +184,7 @@ export default {
this
.
cancel
()
this
.
cancel
()
},
},
// 完成接待
// 完成接待
done
(
e
)
{
done
(
e
)
{
this
.
$refs
.
home
.
finishRef
.
close
()
this
.
$refs
.
home
.
finishRef
.
close
()
if
(
this
.
recording
)
this
.
$refs
.
home
.
stopAudio
()
if
(
this
.
recording
)
this
.
$refs
.
home
.
stopAudio
()
this
.
recording
=
false
this
.
recording
=
false
...
@@ -227,14 +196,14 @@ export default {
...
@@ -227,14 +196,14 @@ export default {
this
.
$store
.
dispatch
(
'clearReceptionTrack'
)
this
.
$store
.
dispatch
(
'clearReceptionTrack'
)
},
1500
)
},
1500
)
},
},
back
()
{
back
()
{
const
detailRef
=
this
.
$refs
.
detail
const
detailRef
=
this
.
$refs
.
detail
if
(
detailRef
.
showPayPage
)
return
(
detailRef
.
showPayPage
=
false
)
if
(
detailRef
.
showPayPage
)
return
(
detailRef
.
showPayPage
=
false
)
if
(
!
this
.
id
)
return
uni
.
navigateBack
()
if
(
!
this
.
id
)
return
uni
.
navigateBack
()
if
(
this
.
type
!=
'preview'
)
return
this
.
$refs
.
home
.
finishRef
.
open
()
if
(
this
.
type
!=
'preview'
)
return
this
.
$refs
.
home
.
finishRef
.
open
()
this
.
backHome
()
this
.
backHome
()
},
},
backHome
()
{
backHome
()
{
if
(
this
.
recording
)
this
.
$refs
.
home
.
stopAudio
(
true
)
if
(
this
.
recording
)
this
.
$refs
.
home
.
stopAudio
(
true
)
this
.
$refs
.
home
.
finishRef
.
close
()
this
.
$refs
.
home
.
finishRef
.
close
()
this
.
id
=
''
this
.
id
=
''
...
@@ -244,23 +213,23 @@ export default {
...
@@ -244,23 +213,23 @@ export default {
this
.
recording
=
false
this
.
recording
=
false
this
.
$refs
.
home
.
$refs
.
leftBox
.
getMessageInfo
()
this
.
$refs
.
home
.
$refs
.
leftBox
.
getMessageInfo
()
},
},
nextStep
()
{
nextStep
()
{
let
{
id
}
=
this
.
moduleList
[
0
]
let
{
id
}
=
this
.
moduleList
[
0
]
this
.
type
=
'preview'
this
.
type
=
'preview'
this
.
id
=
id
this
.
id
=
id
},
},
clearHistory
()
{
clearHistory
()
{
this
.
$store
.
dispatch
(
'clearCustomerInfo'
)
this
.
$store
.
dispatch
(
'clearCustomerInfo'
)
this
.
$store
.
dispatch
(
'clearHistory'
)
this
.
$store
.
dispatch
(
'clearHistory'
)
this
.
$refs
.
home
.
setBooks
([])
this
.
$refs
.
home
.
setBooks
([])
this
.
$store
.
dispatch
(
'clearReceptionTrack'
)
this
.
$store
.
dispatch
(
'clearReceptionTrack'
)
},
},
openStep
()
{
openStep
()
{
this
.
$refs
.
home
.
finishRef
.
close
()
this
.
$refs
.
home
.
finishRef
.
close
()
this
.
$refs
.
detail
.
open
()
this
.
$refs
.
detail
.
open
()
},
},
// 查询门店支付配置
// 查询门店支付配置
async
findPayInfo
()
{
async
findPayInfo
()
{
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
data
=
await
uni
.
$api
.
commonApi
.
findPayInfo
({
const
data
=
await
uni
.
$api
.
commonApi
.
findPayInfo
({
merchantId
:
shopMerchantId
merchantId
:
shopMerchantId
...
@@ -284,13 +253,13 @@ export default {
...
@@ -284,13 +253,13 @@ export default {
})
})
this
.
$store
.
dispatch
(
'setPaymentType'
,
paymentType
)
this
.
$store
.
dispatch
(
'setPaymentType'
,
paymentType
)
},
},
changeTab
(
index
)
{
changeTab
(
index
)
{
this
.
tabIndex
=
index
this
.
tabIndex
=
index
if
(
index
==
0
)
this
.
init
()
if
(
index
==
0
)
this
.
init
()
},
},
/**按序加载车型 */
/**按序加载车型 */
async
getCarBrandsList
(
carBrandList
,
index
)
{
async
getCarBrandsList
(
carBrandList
,
index
)
{
const
item
=
carBrandList
[
index
]
const
item
=
carBrandList
[
index
]
if
(
!
item
)
return
if
(
!
item
)
return
const
carList
=
uni
.
getStorageSync
(
`
${
item
.
id
}
_
${
item
.
brandId
}
_carlist`
)
const
carList
=
uni
.
getStorageSync
(
`
${
item
.
id
}
_
${
item
.
brandId
}
_carlist`
)
...
@@ -307,16 +276,36 @@ export default {
...
@@ -307,16 +276,36 @@ export default {
}
}
},
},
/**素材内容 */
/**素材内容 */
setViewInfo
(
data
)
{
setViewInfo
(
data
)
{
let
{
moduleList
,
toolList
,
aitoCarModelIds
}
=
data
let
{
moduleList
,
toolList
,
aitoCarModelIds
}
=
data
if
(
this
.
channelType
==
1
)
this
.
aitoCarModelIds
=
aitoCarModelIds
||
[]
if
(
this
.
channelType
==
1
)
this
.
aitoCarModelIds
=
aitoCarModelIds
||
[]
this
.
moduleList
=
moduleList
this
.
moduleList
=
moduleList
// if (this.moduleList) {
// this.moduleList.push({
// id: 333,
// thumbnail: 'https://img02.glsx.com.cn/weapp/resource/app-tape/home/byd-home-3.webp',
// title: '汽车保险告知书',
// class: 'vertical',
// style: 'width: calc(100vw * (712 / 2346));height: calc(100vmin * (1173 / 768) * (624 / 2346));',
// showAlt: false,
// componentName: 'insurance',
// detailTitle: '汽车保险告知书'
// })
// }
this
.
toolList
=
toolList
this
.
toolList
=
toolList
// if (this.toolList) {
// this.toolList.push({
// id: 333,
// shortTitle: '车险告知书',
// shortTitleUrl: 'https://img02.glsx.com.cn/weapp/resource/app-tape/tool/default/5.png',
// title: '汽车保险告知书'
// })
// }
this
.
$store
.
state
.
user
=
{
this
.
$store
.
state
.
user
=
{
...
this
.
$store
.
state
.
user
,
...
this
.
$store
.
state
.
user
,
...
data
...
data
}
}
}
,
}
}
}
}
}
</
script
>
</
script
>
...
...
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