Commit cda111e2 by 李伟康

commit 提交

1 parent 44550f94
......@@ -32,15 +32,27 @@ export default {
},
watch: {
watchStatus: {
},
watchCarModel: {
immediate: true,
handler (newval) {
let index = {
'问界M5': 0,
'问界M7': 1,
'问界M9': 2
}[newval]
return this.viewIndex = index || 0
}
},
}
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
watchCarModel () {
return this.$store.state.user.customerInfo.carModel
}
},
mounted () {
},
......
......@@ -120,22 +120,14 @@ export default {
},
// 查询素材
async getSoure () {
try {
uni.showLoading({
mask: true
})
let { moduleList, toolList } = await uni.$api.systemApi.getMockData();
await moduleList.map(async e => {
if (e.receptionSourceDetailList) e.receptionSourceDetailList = await uni.$api.systemApi.imgToBase64(e.receptionSourceDetailList, 'detailUrl')
if (e.carTypeList) e.carTypeList = await uni.$api.systemApi.imgToBase64(e.carTypeList)
})
uni.hideLoading()
this.moduleList = moduleList
this.toolList = toolList
uni.$api.systemApi.updateMockData(moduleList, 'moduleList')
} catch (error) {
uni.hideLoading()
}
let { moduleList, toolList } = await uni.$api.systemApi.getMockData();
await moduleList.map(async e => {
if (e.receptionSourceDetailList) e.receptionSourceDetailList = await uni.$api.systemApi.imgToBase64(e.receptionSourceDetailList, 'detailUrl')
if (e.carTypeList) e.carTypeList = await uni.$api.systemApi.imgToBase64(e.carTypeList)
})
this.moduleList = moduleList
this.toolList = toolList
uni.$api.systemApi.updateMockData(moduleList, 'moduleList')
},
errorImg (index) {
this.moduleList[index].showAlt = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!