Commit 25b5a2c2 by 李伟康

commit 质检埋点

1 parent 6d0d26a7
...@@ -19,8 +19,8 @@ export default { ...@@ -19,8 +19,8 @@ export default {
beforeDestroy () { beforeDestroy () {
window.removeEventListener('click', this.getTrackData) window.removeEventListener('click', this.getTrackData)
this.timerFlag = false this.timerFlag = false
clearTimeout(this.this.track_set_timer) clearTimeout(this.track_set_timer)
this.this.track_set_timer = null this.track_set_timer = null
}, },
mounted () { mounted () {
window.addEventListener('click', this.getTrackData) window.addEventListener('click', this.getTrackData)
......
...@@ -496,10 +496,11 @@ export default { ...@@ -496,10 +496,11 @@ export default {
}, },
radioReport (e) { radioReport (e) {
console.log(e) console.log(e)
if (e > -1) this.setReportTrackData(0, { let eventCode = {
1: 'hit', 1: 'hit',
0: 'miss' 0: 'miss'
}[e], JSON.stringify({ }[e]
if (eventCode) this.setReportTrackData(0, eventCode, JSON.stringify({
batchId: this.detailObj.id batchId: this.detailObj.id
})) }))
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!