Commit 32a2f6b2 by 胡悦

refactor(equity): 移除调试代码和废弃的receptionTrack功能

清理调试用的setTimeout和硬编码id
移除已废弃的receptionTrackMixin及相关调用
1 parent 511cc3da
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
aitoCarModelIds: Array, aitoCarModelIds: Array,
mediaId: [String, Number] mediaId: [String, Number]
}, },
mixins: [receptionTrackMixin], // mixins: [receptionTrackMixin],
data() { data() {
return { return {
backZindex: 9, backZindex: 9,
...@@ -269,12 +269,10 @@ export default { ...@@ -269,12 +269,10 @@ export default {
this.currentFolderCode = e.folderCode || this.currentFolderCode this.currentFolderCode = e.folderCode || this.currentFolderCode
this.pageToolList = this.moduleList.map(i => ({ id: i.id, title: i.title })) this.pageToolList = this.moduleList.map(i => ({ id: i.id, title: i.title }))
} }
this.receptionTrackLeave()
this.$emit('update:id', e.id) this.$emit('update:id', e.id)
uni.$logger.local.info(`预览${e.title}`) uni.$logger.local.info(`预览${e.title}`)
return return
} }
this.receptionTrackLeave()
this.$emit('update:id', e.id) this.$emit('update:id', e.id)
uni.$logger.local.info(`预览${e.title}`) uni.$logger.local.info(`预览${e.title}`)
}, },
...@@ -288,7 +286,6 @@ export default { ...@@ -288,7 +286,6 @@ export default {
this.showPayPage = false this.showPayPage = false
this.$refs.toolRef.hide() this.$refs.toolRef.hide()
this.$refs.stepRef.close() this.$refs.stepRef.close()
this.receptionTrackLeave()
this.$emit('done', e) this.$emit('done', e)
}, },
toPay() { toPay() {
...@@ -395,7 +392,6 @@ export default { ...@@ -395,7 +392,6 @@ export default {
if (isDistanceSignificant && index != -1 && scaleValueObject[id] == 1 && !productModelStatus) { if (isDistanceSignificant && index != -1 && scaleValueObject[id] == 1 && !productModelStatus) {
const { nextId, modeName, title } = this.getNextId(index, pageToolList, startX, halfScreenWidth) const { nextId, modeName, title } = this.getNextId(index, pageToolList, startX, halfScreenWidth)
this.modeName = modeName this.modeName = modeName
this.receptionTrackLeave()
this.$emit('update:id', nextId) this.$emit('update:id', nextId)
uni.$logger.local.info(`预览${title}`) uni.$logger.local.info(`预览${title}`)
setTimeout(() => { setTimeout(() => {
...@@ -457,7 +453,6 @@ export default { ...@@ -457,7 +453,6 @@ export default {
{ id, moduleList, toolList } = data { id, moduleList, toolList } = data
const curr = moduleList.find(item => item.id == pageId) const curr = moduleList.find(item => item.id == pageId)
const materialName = curr ? curr.materialName : '' const materialName = curr ? curr.materialName : ''
this.receptionTrackLeave()
this.moduleList = moduleList this.moduleList = moduleList
this.pageToolList = toolList this.pageToolList = toolList
if (id != currentMediaId) { if (id != currentMediaId) {
......
...@@ -87,9 +87,9 @@ export default { ...@@ -87,9 +87,9 @@ export default {
this.getHomeSource(mockdata?.typeCode) this.getHomeSource(mockdata?.typeCode)
this.getSoure(mockdata?.typeCode) this.getSoure(mockdata?.typeCode)
setTimeout(() => { // setTimeout(() => {
this.start() // this.start()
}, 1e3) // }, 1e3)
}, },
async onShow () { async onShow () {
this.init() this.init()
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
this.clearHistory() this.clearHistory()
this.id = +this.moduleList[0].id this.id = +this.moduleList[0].id
this.id = 6 // this.id = 6
this.type = 'edit' this.type = 'edit'
this.recording = true this.recording = true
setTimeout(() => { setTimeout(() => {
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
this.clearHistory() this.clearHistory()
// this.init() // this.init()
this.recording = false this.recording = false
this.$refs.home.$refs.leftBox.getMessageInfo() // this.$refs.home.$refs.leftBox.getMessageInfo()
}, },
nextStep () { nextStep () {
let { id } = this.moduleList[0] let { id } = this.moduleList[0]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!