xiaoe_mp_npm 0.1.2-t0118 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -89,7 +89,7 @@ Component(
|
|
|
89
89
|
app_id: this.data.baseInfo.app_id, // 店铺id
|
|
90
90
|
alive_id: this.data.baseInfo.alive_id,
|
|
91
91
|
user_id: this.data.baseInfo.user_id,
|
|
92
|
-
prize_id: this.data.
|
|
92
|
+
prize_id: this.data.lotteryInfo.current_prize_id,
|
|
93
93
|
type
|
|
94
94
|
})
|
|
95
95
|
.then(res=>{
|
|
@@ -108,11 +108,11 @@ Component(
|
|
|
108
108
|
|
|
109
109
|
if (this.isAnyCommentCondition()) {
|
|
110
110
|
this.store.dispatch(participateLottery())
|
|
111
|
-
recordLotteryJoin(2)
|
|
111
|
+
this.recordLotteryJoin(2)
|
|
112
112
|
} else if (this.isSpecifyCommentCondition()) {
|
|
113
113
|
if (msg.msg_content === this.data.lotteryInfo.prize_param.ext.content) {
|
|
114
114
|
this.store.dispatch(participateLottery())
|
|
115
|
-
recordLotteryJoin(2)
|
|
115
|
+
this.recordLotteryJoin(2)
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
@@ -20,13 +20,13 @@ Component(
|
|
|
20
20
|
return data.resultInfo.is_win
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
observers: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
23
|
+
// observers: {
|
|
24
|
+
// visible(val) {
|
|
25
|
+
// if (val && this.data.isWin) {
|
|
26
|
+
// this.reportData()
|
|
27
|
+
// }
|
|
28
|
+
// }
|
|
29
|
+
// },
|
|
30
30
|
lifetimes: {
|
|
31
31
|
attached() {}
|
|
32
32
|
},
|
|
@@ -36,21 +36,21 @@ Component(
|
|
|
36
36
|
type: visible ? 'show_lottery_result' : 'hide_lottery_result'
|
|
37
37
|
})
|
|
38
38
|
},
|
|
39
|
-
reportData() {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
39
|
+
// reportData() {
|
|
40
|
+
// const data = {
|
|
41
|
+
// page_id: 'e_alive#mini#first#alive_room',
|
|
42
|
+
// page_name: this.data.baseInfo.title,
|
|
43
|
+
// page_module: '中奖页面',
|
|
44
|
+
// l_program: '鹅直播',
|
|
45
|
+
// current_role: this.data.baseInfo.user_type === 0 ? 'C端用户' : '讲师',
|
|
46
|
+
// type: this.data.baseInfo.alive_mode === 0 ? '横屏' : '竖屏',
|
|
47
|
+
// h_live_state: this.data.baseInfo.alive_state,
|
|
48
|
+
// c_user_id: this.data.baseInfo.user_id,
|
|
49
|
+
// app_id: this.data.baseInfo.app_id
|
|
50
|
+
// }
|
|
51
|
+
// sensorLog.sensors.track('view_page', data)
|
|
52
|
+
// console.log('reportData:', data)
|
|
53
|
+
// }
|
|
54
54
|
}
|
|
55
55
|
})
|
|
56
56
|
)
|
package/package.json
CHANGED
|
@@ -89,7 +89,7 @@ Component(
|
|
|
89
89
|
app_id: this.data.baseInfo.app_id, // 店铺id
|
|
90
90
|
alive_id: this.data.baseInfo.alive_id,
|
|
91
91
|
user_id: this.data.baseInfo.user_id,
|
|
92
|
-
prize_id: this.data.
|
|
92
|
+
prize_id: this.data.lotteryInfo.current_prize_id,
|
|
93
93
|
type
|
|
94
94
|
})
|
|
95
95
|
.then(res=>{
|
|
@@ -108,11 +108,11 @@ Component(
|
|
|
108
108
|
|
|
109
109
|
if (this.isAnyCommentCondition()) {
|
|
110
110
|
this.store.dispatch(participateLottery())
|
|
111
|
-
recordLotteryJoin(2)
|
|
111
|
+
this.recordLotteryJoin(2)
|
|
112
112
|
} else if (this.isSpecifyCommentCondition()) {
|
|
113
113
|
if (msg.msg_content === this.data.lotteryInfo.prize_param.ext.content) {
|
|
114
114
|
this.store.dispatch(participateLottery())
|
|
115
|
-
recordLotteryJoin(2)
|
|
115
|
+
this.recordLotteryJoin(2)
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
@@ -20,13 +20,13 @@ Component(
|
|
|
20
20
|
return data.resultInfo.is_win
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
observers: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
23
|
+
// observers: {
|
|
24
|
+
// visible(val) {
|
|
25
|
+
// if (val && this.data.isWin) {
|
|
26
|
+
// this.reportData()
|
|
27
|
+
// }
|
|
28
|
+
// }
|
|
29
|
+
// },
|
|
30
30
|
lifetimes: {
|
|
31
31
|
attached() {}
|
|
32
32
|
},
|
|
@@ -36,21 +36,21 @@ Component(
|
|
|
36
36
|
type: visible ? 'show_lottery_result' : 'hide_lottery_result'
|
|
37
37
|
})
|
|
38
38
|
},
|
|
39
|
-
reportData() {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
39
|
+
// reportData() {
|
|
40
|
+
// const data = {
|
|
41
|
+
// page_id: 'e_alive#mini#first#alive_room',
|
|
42
|
+
// page_name: this.data.baseInfo.title,
|
|
43
|
+
// page_module: '中奖页面',
|
|
44
|
+
// l_program: '鹅直播',
|
|
45
|
+
// current_role: this.data.baseInfo.user_type === 0 ? 'C端用户' : '讲师',
|
|
46
|
+
// type: this.data.baseInfo.alive_mode === 0 ? '横屏' : '竖屏',
|
|
47
|
+
// h_live_state: this.data.baseInfo.alive_state,
|
|
48
|
+
// c_user_id: this.data.baseInfo.user_id,
|
|
49
|
+
// app_id: this.data.baseInfo.app_id
|
|
50
|
+
// }
|
|
51
|
+
// sensorLog.sensors.track('view_page', data)
|
|
52
|
+
// console.log('reportData:', data)
|
|
53
|
+
// }
|
|
54
54
|
}
|
|
55
55
|
})
|
|
56
56
|
)
|