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 { ...@@ -892,7 +892,7 @@ export default {
this.drawContext.setLineWidth(this.lineWidth); //设置画笔粗细 this.drawContext.setLineWidth(this.lineWidth); //设置画笔粗细
this.$nextTick(() => { this.$nextTick(() => {
this.drawContext.setLineWidth(this.lineWidth) this.drawContext.setLineWidth(this.lineWidth)
this.fillBackground(); // this.fillBackground();
}) })
} catch (error) { } catch (error) {
console.log(error) console.log(error)
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
let { clickFlga } = this let { clickFlga } = this
if (clickFlga) return if (clickFlga) return
this.clickFlga = true this.clickFlga = true
uni.showLoading({ if (!auto) uni.showLoading({
mask: true mask: true
}) })
this.selectItem = { this.selectItem = {
......
...@@ -31,16 +31,24 @@ export default { ...@@ -31,16 +31,24 @@ export default {
} }
}, },
watch: { watch: {
watchStatus: { watchCarModel: {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
if (this.madiaId == 3) {
let index = {
'问界M5': 0,
'问界M7': 1,
'问界M9': 2
}[newval]
return this.viewIndex = index || 0
}
} }
}, }
}, },
computed: { computed: {
watchStatus () { watchCarModel () {
return this.$store.state.user.historyStatus return this.$store.state.user.customerInfo.carModel
}, }
}, },
mounted () { mounted () {
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="layout"> <view class="layout">
<wnCanvas <wnCanvas
saveImageType="3" saveImageType="3"
canvasId="c-1-1" canvasId="c-1"
:drawStatus="penSwitch" :drawStatus="penSwitch"
custom custom
> >
...@@ -134,7 +134,6 @@ export default { ...@@ -134,7 +134,6 @@ export default {
} }
}, },
show (n) { show (n) {
console.log(this.views)
if (n && !this.customerInfo.carModel) this.$refs.carBrandListVisible.autoSelect() if (n && !this.customerInfo.carModel) this.$refs.carBrandListVisible.autoSelect()
} }
}, },
......
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
:views="item.receptionSourceDetailList || []" :views="item.receptionSourceDetailList || []"
:penSwitch="penSwitch" :penSwitch="penSwitch"
:show="id == item.id" :show="id == item.id"
:ref="'media'+item.id" :ref="'media' + item.id"
:title="item.detailTitle || ''" :title="item.detailTitle || ''"
:madiaId="item.id" :madiaId="item.id"
:carTypeList="item.carTypeList" :carTypeList="item.carTypeList || []"
/> />
</view> </view>
</template> </template>
......
...@@ -120,22 +120,14 @@ export default { ...@@ -120,22 +120,14 @@ export default {
}, },
// 查询素材 // 查询素材
async getSoure () { async getSoure () {
try { let { moduleList, toolList } = await uni.$api.systemApi.getMockData();
uni.showLoading({ await moduleList.map(async e => {
mask: true 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)
let { moduleList, toolList } = await uni.$api.systemApi.getMockData(); })
await moduleList.map(async e => { this.moduleList = moduleList
if (e.receptionSourceDetailList) e.receptionSourceDetailList = await uni.$api.systemApi.imgToBase64(e.receptionSourceDetailList, 'detailUrl') this.toolList = toolList
if (e.carTypeList) e.carTypeList = await uni.$api.systemApi.imgToBase64(e.carTypeList) uni.$api.systemApi.updateMockData(moduleList, 'moduleList')
})
uni.hideLoading()
this.moduleList = moduleList
this.toolList = toolList
uni.$api.systemApi.updateMockData(moduleList, 'moduleList')
} catch (error) {
uni.hideLoading()
}
}, },
errorImg (index) { errorImg (index) {
this.moduleList[index].showAlt = true 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!