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 63fda8c7
authored
May 22, 2025
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.53.0' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V4.53.0
2 parents
e0fac4de
ef116cf5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
61 deletions
api/module/systemApi.js
components/Insurance/Insurance.vue
api/module/systemApi.js
View file @
63fda8c
...
@@ -2,10 +2,10 @@ import http from '../request/http'
...
@@ -2,10 +2,10 @@ import http from '../request/http'
import
{
env
}
from
'../../env'
import
{
env
}
from
'../../env'
const
serverConfig
=
{
const
serverConfig
=
{
mockRequestCount
:
null
,
mockRequestCount
:
null
,
mockTimer
:
{},
mockTimer
:
{},
mockCache
:
null
mockCache
:
null
},
},
boutiqueServerConfig
=
{
boutiqueServerConfig
=
{
mockRequestCount
:
null
,
mockRequestCount
:
null
,
mockTimer
:
{},
mockTimer
:
{},
...
@@ -132,74 +132,74 @@ const getSoureData = async (shopMerchantId, sceneType) => {
...
@@ -132,74 +132,74 @@ const getSoureData = async (shopMerchantId, sceneType) => {
})
})
if
(
id
)
{
if
(
id
)
{
let
data
=
await
getEquityMaterialConfig
({
let
data
=
await
getEquityMaterialConfig
({
id
id
}),
}),
{
toolList
,
materialInfoList
}
=
data
,
{
toolList
,
materialInfoList
}
=
data
,
storageName
=
`source_
${
sceneType
}
_
${
shopMerchantId
}
`
storageName
=
`source_
${
sceneType
}
_
${
shopMerchantId
}
`
data
.
moduleList
=
materialInfoList
let
moduleList
=
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'])
data
.
moduleList
=
moduleList
uni
.
setStorageSync
(
storageName
,
{
uni
.
setStorageSync
(
storageName
,
{
moduleList
,
moduleList
,
toolList
toolList
:
data
.
toolList
})
})
return
Promise
.
resolve
(
data
)
return
Promise
.
resolve
(
data
)
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
}
}
return
//
return
// const getSoureData = async (channelType = 1, shopMerchantId, sceneType = 0) => {
// const getSoureData = async (channelType = 1, shopMerchantId, sceneType = 0) => {
const
sceneData
=
await
http
.
uni_request
({
url
:
appConfigUrl
}),
//
const sceneData = await http.uni_request({ url: appConfigUrl }),
{
brandIds
,
merchantIds
,
caseCenterIds
}
=
sceneData
[
sceneType
]
//
{ brandIds, merchantIds, caseCenterIds } = sceneData[sceneType]
let
targetUrl
,
//
let targetUrl,
storageName
=
`source_
${
sceneType
}
_data_`
//
storageName = `source_${sceneType}_data_`
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}`
}
//
}
let
data
=
await
http
.
uni_request
({
url
:
`
${
targetUrl
}
&env=
${
env
}
`
}),
//
let data = await http.uni_request({ url: `${targetUrl}&env=${env}` }),
{
moduleList
,
toolList
}
=
data
//
{ moduleList, toolList } = data
/**全损无忧 */
/
/ /
**全损无忧 */
if
(
caseCenterIds
.
includes
(
channelType
))
{
//
if (caseCenterIds.includes(channelType)) {
let
configList
//
let configList
try
{
//
try {
configList
=
await
findReceptionpriproConfigList
({})
//
configList = await findReceptionpriproConfigList({})
uni
.
$storage
.
set
(
'findReceptionpriproConfigList'
,
configList
)
//
uni.$storage.set('findReceptionpriproConfigList', configList)
}
catch
(
error
)
{
//
} catch (error) {
configList
=
uni
.
$storage
.
get
(
'findReceptionpriproConfigList'
)
//
configList = uni.$storage.get('findReceptionpriproConfigList')
}
//
}
const
toolOtherList
=
configList
.
map
(
i
=>
{
//
const toolOtherList = configList.map(i => {
return
{
//
return {
id
:
10
+
i
.
id
,
//
id: 10 + i.id,
shortTitle
:
i
.
productName
,
//
shortTitle: i.productName,
shortTitleUrl
:
i
.
procuctLog
//
shortTitleUrl: i.procuctLog
}
//
}
})
//
})
toolList
=
toolList
.
concat
(
toolOtherList
)
//
toolList = toolList.concat(toolOtherList)
const
moduleOtherList
=
configList
.
map
(
i
=>
{
//
const moduleOtherList = configList.map(i => {
return
{
//
return {
id
:
10
+
i
.
id
,
//
id: 10 + i.id,
title
:
i
.
productName
,
//
title: i.productName,
shortTitleUrl
:
i
.
procuctLog
,
//
shortTitleUrl: i.procuctLog,
productPoster
:
i
.
productPoster
,
//
productPoster: i.productPoster,
showAlt
:
false
,
//
showAlt: false,
componentName
:
'CaseCenter'
,
//
componentName: 'CaseCenter',
receptionpriproCusCaseList
:
i
.
receptionpriproCusCaseList
//
receptionpriproCusCaseList: i.receptionpriproCusCaseList
}
//
}
})
//
})
moduleList
=
moduleList
.
concat
(
moduleOtherList
)
//
moduleList = moduleList.concat(moduleOtherList)
}
//
}
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
,
//
moduleList,
toolList
//
toolList
})
//
})
return
Promise
.
resolve
(
data
)
//
return Promise.resolve(data)
}
}
/**批量图片转base64 */
/**批量图片转base64 */
const
imgTransformBase64
=
async
(
imgList
=
[],
keyList
=
[])
=>
{
const
imgTransformBase64
=
async
(
imgList
=
[],
keyList
=
[])
=>
{
...
...
components/Insurance/Insurance.vue
View file @
63fda8c
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
:searchValue=
"customerInfo[i.key]"
:searchValue=
"customerInfo[i.key]"
:show=
"focusIndex == index"
:show=
"focusIndex == index"
@
choose=
"chooseCustomer"
@
choose=
"chooseCustomer"
v-if=
"i.hasCustomerAutocomplete"
/>
/>
<template
v-if=
"i.unit"
>
<template
v-if=
"i.unit"
>
<view
class=
"unit"
>
{{
i
.
unit
}}
</view>
<view
class=
"unit"
>
{{
i
.
unit
}}
</view>
...
@@ -110,6 +111,7 @@ export default {
...
@@ -110,6 +111,7 @@ export default {
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
maxlength
:
50
,
maxlength
:
50
,
hasCustomerAutocomplete
:
true
},
},
{
{
placeholder
:
'车主电话'
,
placeholder
:
'车主电话'
,
...
@@ -117,6 +119,7 @@ export default {
...
@@ -117,6 +119,7 @@ export default {
type
:
'input'
,
type
:
'input'
,
inputType
:
'tel'
,
inputType
:
'tel'
,
maxlength
:
11
,
maxlength
:
11
,
hasCustomerAutocomplete
:
true
},
},
{
{
placeholder
:
'品牌车型'
,
placeholder
:
'品牌车型'
,
...
...
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