watchScrollMixin.js 289 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 module.exports = Behavior({ methods: { watchScrollTrack: wx.$util.throttle(function(e) { const { batchId } = this.data, { eventCode } = e.currentTarget.dataset wx.$track.setTrackData(1, eventCode, { batchId }) }, 1e3) } })