|
@@ -1,6 +1,7 @@
|
|
// pages/luckDraw/detail.js
|
|
// pages/luckDraw/detail.js
|
|
import LuckDraw from '../../api/luck-draw'
|
|
import LuckDraw from '../../api/luck-draw'
|
|
import Common from './common'
|
|
import Common from './common'
|
|
|
|
+import Statistics from '../../components/statistics/index'
|
|
import {getMobileCache, getPhoneNumber as getPhoneNumberSync} from '../../utils/user'
|
|
import {getMobileCache, getPhoneNumber as getPhoneNumberSync} from '../../utils/user'
|
|
const app = getApp();
|
|
const app = getApp();
|
|
|
|
|
|
@@ -68,6 +69,12 @@ Page({
|
|
this.getDrawTimes()
|
|
this.getDrawTimes()
|
|
// 获取中奖名单
|
|
// 获取中奖名单
|
|
this.getHitRecord()
|
|
this.getHitRecord()
|
|
|
|
+
|
|
|
|
+ Statistics.done({
|
|
|
|
+ module: 'luckdraw',
|
|
|
|
+ action: 'visit',
|
|
|
|
+ businessId: this.data.activityId,
|
|
|
|
+ })
|
|
},
|
|
},
|
|
loadActivity: function() {
|
|
loadActivity: function() {
|
|
LuckDraw.getActivityDetail(this.data.activityId).then(resp => {
|
|
LuckDraw.getActivityDetail(this.data.activityId).then(resp => {
|
|
@@ -223,6 +230,12 @@ Page({
|
|
this.requestDrawPrize()
|
|
this.requestDrawPrize()
|
|
}, (Math.random() + 1)*1000)
|
|
}, (Math.random() + 1)*1000)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ Statistics.done({
|
|
|
|
+ module: 'luckdraw',
|
|
|
|
+ action: 'click',
|
|
|
|
+ businessId: this.data.activityId
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
requestDrawPrize: function() {
|
|
requestDrawPrize: function() {
|