加入教程数据统计

This commit is contained in:
marvzhang
2020-02-01 18:00:33 +08:00
parent 1654f0346d
commit 83af0786e0
13 changed files with 100 additions and 13 deletions

View File

@@ -122,6 +122,7 @@ export default {
} else if (currentStep === 6) {
this.activeTabName = 'log'
}
this.$utils.tour.prevStep('task-detail', currentStep)
},
onNextStep: (currentStep) => {
if (currentStep === 4) {
@@ -129,6 +130,7 @@ export default {
} else if (currentStep === 5) {
this.activeTabName = 'results'
}
this.$utils.tour.nextStep('task-detail', currentStep)
}
}
}
@@ -201,6 +203,7 @@ export default {
mounted () {
if (!this.$utils.tour.isFinishedTour('task-detail')) {
this.$tours['task-detail'].start()
this.$st.sendEv('教程', '开始', 'task-detail')
}
},
destroyed () {

View File

@@ -236,8 +236,10 @@ export default {
this.$utils.tour.finishTour('task-list')
},
onPreviousStep: (currentStep) => {
this.$utils.tour.prevStep('task-list', currentStep)
},
onNextStep: (currentStep) => {
this.$utils.tour.nextStep('task-list', currentStep)
}
}
}
@@ -401,6 +403,7 @@ export default {
if (!this.$utils.tour.isFinishedTour('task-list')) {
this.$tours['task-list'].start()
this.$st.sendEv('教程', '开始', 'task-list')
}
},
destroyed () {