|
@@ -129,6 +129,20 @@ function activeOverCheck (endTime, callback) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+var platform = utils.isWeiXinBrowser ? 'wx' : 'app'
|
|
|
+function trackClick (c_type) {
|
|
|
+ if (!c_type) return
|
|
|
+ try {
|
|
|
+ clab_tracker.track('c_svip_day', {
|
|
|
+ c_platform: platform,
|
|
|
+ c_type: c_type,
|
|
|
+ date: new Date()
|
|
|
+ })
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
var shareMixin = {
|
|
|
data: function () {
|
|
|
return {
|
|
@@ -489,6 +503,7 @@ var task = new Vue({
|
|
|
var _this = this
|
|
|
$('.j-header.jy-app-header .header-right').on('click', function () {
|
|
|
_this.shareShow = true
|
|
|
+ trackClick('点击分享-actionSheet-显示')
|
|
|
})
|
|
|
},
|
|
|
add0: function (t) {
|
|
@@ -711,12 +726,15 @@ var task = new Vue({
|
|
|
},
|
|
|
receiveYuReCoupon: function () {
|
|
|
if (this.yureInfo.buttonDisabled) {
|
|
|
+ trackClick('点击预热-敬请期待')
|
|
|
this.$toast('活动尚未开始,敬请期待')
|
|
|
} else if (this.yureInfo.buttonText === '去查看') {
|
|
|
// 领过了,跳转订单列表
|
|
|
+ trackClick('点击预热-去查看')
|
|
|
this.toOrderPage()
|
|
|
} else {
|
|
|
// 没领过
|
|
|
+ trackClick('点击预热-领取7天超级订阅')
|
|
|
this.receiveYuReCouponAjax()
|
|
|
}
|
|
|
},
|
|
@@ -763,15 +781,23 @@ var task = new Vue({
|
|
|
},
|
|
|
receiveActiveCoupon: function (coupons) {
|
|
|
if (this.activeState !== 'activating') {
|
|
|
+ trackClick('点击福利一-敬请期待')
|
|
|
return this.activeNotStartToast()
|
|
|
}
|
|
|
if (coupons.length === 0) return
|
|
|
if (coupons.length === 1) {
|
|
|
var item = coupons[0]
|
|
|
+ var reduce = item.Reduce
|
|
|
if (!item.IsReceive && item.IsUser) {
|
|
|
+ trackClick('点击福利一-' + reduce + '元优惠券-去使用')
|
|
|
return this.toBuyVip(item.query)
|
|
|
+ } else {
|
|
|
+ trackClick('点击福利一-' + reduce + '元优惠券-领取')
|
|
|
}
|
|
|
}
|
|
|
+ if (coupons.length > 1) {
|
|
|
+ trackClick('点击福利一-一键领取')
|
|
|
+ }
|
|
|
var idArr = []
|
|
|
coupons.forEach(function (item) {
|
|
|
if (item.IsReceive) {
|
|
@@ -893,6 +919,8 @@ var task = new Vue({
|
|
|
})
|
|
|
},
|
|
|
onClickListItem: function (item) {
|
|
|
+ var trackText = item.rewardText + '(FROM:' + item.receiveFrom + ')'
|
|
|
+ trackClick('点击我的奖励奖品-'+ trackText)
|
|
|
if (item.icon === 'jy-svip') {
|
|
|
this.toOrderPage()
|
|
|
} else if (item.icon === 'jy-coin') {
|
|
@@ -910,6 +938,7 @@ var task = new Vue({
|
|
|
onClickReceive: function (type, item) {
|
|
|
if (this.activeState !== 'activating') {
|
|
|
// this.$toast('活动尚未开始,敬请期待')
|
|
|
+ trackClick('点击福利二-'+ (item.name || item.id) +'-敬请期待')
|
|
|
return this.activeNotStartToast()
|
|
|
}
|
|
|
if (item.className === 'received') return
|
|
@@ -917,6 +946,7 @@ var task = new Vue({
|
|
|
if (type === 'schedule') {
|
|
|
if (item.className === 'wait') {
|
|
|
status = true
|
|
|
+ trackClick('点击福利二-'+ item.id +'-免费领')
|
|
|
} else {
|
|
|
var text = '尚未达到领取条件,无法领取'
|
|
|
switch (item.id) {
|
|
@@ -938,6 +968,7 @@ var task = new Vue({
|
|
|
}
|
|
|
if (!status) {
|
|
|
var _this = this
|
|
|
+ trackClick('点击福利二-'+ item.name +'-去完成')
|
|
|
switch (item.id) {
|
|
|
case 'buyvip': {
|
|
|
this.toBuyVip()
|
|
@@ -964,6 +995,7 @@ var task = new Vue({
|
|
|
}
|
|
|
var _this = this
|
|
|
if (type === 'mission') {
|
|
|
+ trackClick('点击福利二-'+ item.name +'-去领取')
|
|
|
this.leaveCanvas(item)
|
|
|
}
|
|
|
this.ajaxReceive({ type: type, value: item.id }, function (result, msg) {
|
|
@@ -1119,15 +1151,16 @@ var task = new Vue({
|
|
|
})
|
|
|
},
|
|
|
receiveFuli3: function () {
|
|
|
- if (this.activeState === 'activating') {
|
|
|
- if (this.power.memberStatus > 0) {
|
|
|
- if (utils.isWeiXinBrowser) {
|
|
|
- location.href = '/big/wx/page/landingPage'
|
|
|
- } else {
|
|
|
- location.href = '/jyapp/big/page/main_root'
|
|
|
- }
|
|
|
- return
|
|
|
+ if (this.power.memberStatus > 0) {
|
|
|
+ trackClick('点击福利三-立即体验-跳转大会员首页')
|
|
|
+ if (utils.isWeiXinBrowser) {
|
|
|
+ location.href = '/big/wx/page/landingPage'
|
|
|
+ } else {
|
|
|
+ location.href = '/jyapp/big/page/main_root'
|
|
|
}
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ trackClick('点击福利三-立即体验-留资')
|
|
|
}
|
|
|
|
|
|
if (utils.isWeiXinBrowser) {
|
|
@@ -1136,8 +1169,13 @@ var task = new Vue({
|
|
|
location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=super_membership_day'
|
|
|
}
|
|
|
},
|
|
|
- doShareAjax: function () {
|
|
|
+ doShareAjax: function (shareItem) {
|
|
|
var missionComplete = this.missionsList[2].complete
|
|
|
+ if (utils.isWeiXinBrowser) {
|
|
|
+ trackClick('点击分享-分享到微信/朋友圈')
|
|
|
+ } else {
|
|
|
+ trackClick('点击分享-分享到' + shareItem.name)
|
|
|
+ }
|
|
|
if (this.activeState === 'activating' && !missionComplete) {
|
|
|
var _this = this
|
|
|
$.ajax({
|
|
@@ -1217,6 +1255,14 @@ var task = new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ clickRules: function () {
|
|
|
+ trackClick('点击活动规则')
|
|
|
+ this.dialogShow('rule', true)
|
|
|
+ },
|
|
|
+ clickMyReward: function () {
|
|
|
+ trackClick('点击我的奖励')
|
|
|
+ this.dialog.myReward = true
|
|
|
+ },
|
|
|
toOrderPage: function () {
|
|
|
if (utils.isWeiXinBrowser) {
|
|
|
location.href = '/weixin/pay/toMyWxOrder?active=0'
|