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'
import
{
env
}
from
'../../env'
const
serverConfig
=
{
mockRequestCount
:
null
,
mockTimer
:
{},
mockCache
:
null
},
mockRequestCount
:
null
,
mockTimer
:
{},
mockCache
:
null
},
boutiqueServerConfig
=
{
mockRequestCount
:
null
,
mockTimer
:
{},
...
...
@@ -132,74 +132,74 @@ const getSoureData = async (shopMerchantId, sceneType) => {
})
if
(
id
)
{
let
data
=
await
getEquityMaterialConfig
({
id
}),
id
}),
{
toolList
,
materialInfoList
}
=
data
,
storageName
=
`source_
${
sceneType
}
_
${
shopMerchantId
}
`
data
.
moduleList
=
materialInfoList
// data.moduleList = await imgTransformBase64(materialInfoList, ['thumbnail', 'receptionSourceDetailList', 'screenList
'])
// data.toolList = await imgTransformBase64(toolList, ['shortTitleUrl'])
let
moduleList
=
moduleList
=
await
imgTransformBase64
(
materialInfoList
,
[
'thumbnail'
,
'receptionSourceDetailList'
,
'screenList'
])
data
.
toolList
=
await
imgTransformBase64
(
toolList
,
[
'shortTitleUrl
'
])
data
.
moduleList
=
moduleList
uni
.
setStorageSync
(
storageName
,
{
moduleList
,
toolList
toolList
:
data
.
toolList
})
return
Promise
.
resolve
(
data
)
}
}
catch
(
error
)
{
console
.
log
(
error
)
}
return
//
return
// 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
)
//
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
=
[])
=>
{
...
...
components/Insurance/Insurance.vue
View file @
63fda8c
...
...
@@ -41,6 +41,7 @@
:searchValue=
"customerInfo[i.key]"
:show=
"focusIndex == index"
@
choose=
"chooseCustomer"
v-if=
"i.hasCustomerAutocomplete"
/>
<template
v-if=
"i.unit"
>
<view
class=
"unit"
>
{{
i
.
unit
}}
</view>
...
...
@@ -110,6 +111,7 @@ export default {
type
:
'input'
,
inputType
:
'text'
,
maxlength
:
50
,
hasCustomerAutocomplete
:
true
},
{
placeholder
:
'车主电话'
,
...
...
@@ -117,6 +119,7 @@ export default {
type
:
'input'
,
inputType
:
'tel'
,
maxlength
:
11
,
hasCustomerAutocomplete
:
true
},
{
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