|
@@ -213,7 +213,8 @@ export default {
|
|
|
} else {
|
|
|
console.log(511);
|
|
|
// 使用postMessage 方法可以发送消息到应用, 消息内容需要在data 对象中,否则webview无法接收到
|
|
|
- webUni.postMessage({
|
|
|
+ console.log(webUni.webView.postMessage);
|
|
|
+ webUni.webView.postMessage({
|
|
|
data: {
|
|
|
payType: this.payType === 'aliPay' ? 3 : 2,
|
|
|
orderNum: res.data.myOrderNum,
|
|
@@ -260,6 +261,7 @@ export default {
|
|
|
const res = await this.$axios.$post('/activity/v1/member/luckDrawActivity');
|
|
|
this.activityId = res.data.activityId
|
|
|
this.status = res.data.status
|
|
|
+ this.num = res.data.count
|
|
|
},
|
|
|
// 开始抽奖
|
|
|
async startRotation() {
|
|
@@ -281,7 +283,6 @@ export default {
|
|
|
if (Number(localStorage.getItem('year-9-9')) !== 2 && this.actualPrice === 9.9) {
|
|
|
localStorage.setItem('year-9-9', 1)
|
|
|
}
|
|
|
- this.num = res.data.count
|
|
|
this.mealId = res.data.mealId
|
|
|
this.selMealId = res.data.mealId
|
|
|
this.paySupportType = res.data.paySupportType
|
|
@@ -293,7 +294,7 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
// 成功后次数减少一次
|
|
|
- // this.num--;
|
|
|
+ this.num--;
|
|
|
// 告诉子组件,开始转动了
|
|
|
this.$refs.roundTurntable.rotate(this.prizeIndex);
|
|
|
},
|