Commit 183c5efb by 李伟康

commit 修复

1 parent 48e26232
......@@ -142,7 +142,8 @@ export default {
pageToolList: [],
moduleList: [],
useCarConfig: false,
dateilKey: Date.now()
dateilKey: Date.now(),
currentMediaId: ''
}
},
computed: {
......@@ -200,6 +201,7 @@ export default {
this.useCarConfig = false
this.dateilKey = Date.now()
this.pageToolList = this.toolList
this.currentMediaId = this.mediaId
if (newval) this.drawStatus = false
}
},
......@@ -336,19 +338,20 @@ export default {
}
},
setViewInfo (data) {
let { mediaId, id: pageId } = this,
let { currentMediaId, id: pageId } = this,
{ id, moduleList, toolList } = data
if (id != mediaId) {
let { useCarConfig, moduleList: pageModuleList, media: pageMedia } = this,
array = useCarConfig ? pageModuleList : pageMedia,
{ detailTitle } = array.find(item => item.id == pageId)
this.receptionTrackLeave()
this.moduleList = moduleList
this.pageToolList = toolList
this.useCarConfig = true
let { useCarConfig, moduleList: pageModuleList, media: pageMedia } = this,
array = useCarConfig ? pageModuleList : pageMedia,
{ detailTitle } = array.find(item => item.id == pageId)
this.receptionTrackLeave()
this.moduleList = moduleList
this.pageToolList = toolList
this.useCarConfig = true
if (id != currentMediaId) {
let jumpItem = moduleList.find(e => e.detailTitle == detailTitle)
this.$emit('update:id', jumpItem ? jumpItem.id : moduleList[0].id)
}
this.currentMediaId = id
}
}
}
......
......@@ -20,8 +20,8 @@
@click="toDetail(i)"
v-if="!i.hide"
>
<template v-if="i.showAlt">
<view class="item-text flex">{{ i.title }}</view>
<template v-if="!i.thumbnail">
<view class="item-text flex">{{ i.title || i.detailTitle }}</view>
</template>
<template v-else>
<image
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!