Commit efcb4c76 by 胡悦

Merge branch 'v1.0.7' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.7

2 parents 11f263bb 74e98f02
......@@ -892,7 +892,7 @@ export default {
this.drawContext.setLineWidth(this.lineWidth); //设置画笔粗细
this.$nextTick(() => {
this.drawContext.setLineWidth(this.lineWidth)
this.fillBackground();
// this.fillBackground();
})
} catch (error) {
console.log(error)
......
......@@ -113,7 +113,7 @@ export default {
let { clickFlga } = this
if (clickFlga) return
this.clickFlga = true
uni.showLoading({
if (!auto) uni.showLoading({
mask: true
})
this.selectItem = {
......
......@@ -31,16 +31,24 @@ export default {
}
},
watch: {
watchStatus: {
watchCarModel: {
immediate: true,
handler (newval) {
if (this.madiaId == 3) {
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 () {
},
......
......@@ -2,7 +2,7 @@
<view class="layout">
<wnCanvas
saveImageType="3"
canvasId="c-1-1"
canvasId="c-1"
:drawStatus="penSwitch"
custom
>
......@@ -134,7 +134,6 @@ export default {
}
},
show (n) {
console.log(this.views)
if (n && !this.customerInfo.carModel) this.$refs.carBrandListVisible.autoSelect()
}
},
......
......@@ -34,10 +34,10 @@
:views="item.receptionSourceDetailList || []"
:penSwitch="penSwitch"
:show="id == item.id"
:ref="'media'+item.id"
:ref="'media' + item.id"
:title="item.detailTitle || ''"
:madiaId="item.id"
:carTypeList="item.carTypeList"
:carTypeList="item.carTypeList || []"
/>
</view>
</template>
......
......@@ -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!