Browse Source

修复支付完成后无法抽奖的bug

master
sui 5 years ago
parent
commit
0749bce8dc
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      496_dongfengqichen/pages/rotaryDraw/rotaryDraw.js

+ 14
- 0
496_dongfengqichen/pages/rotaryDraw/rotaryDraw.js View File

@@ -45,6 +45,7 @@ Page({
}
},
loadFun() {
this.getLuckyTokenList();
this.getRecordData();
this.getAddress();
},
@@ -244,5 +245,18 @@ Page({
}
}
}, this)
},
getLuckyTokenList() {
this.wxRequest(app.globalData.urlRoot + "wxPay/v3/getLuckyTokenList", {}, res => {
if (res.code == 200) {
if (res.data) {
res.data.cdate = res.data.cdate ? res.data.cdate : "";
app.globalData.getBuyState = res.data;
if (res.data.luckyTokenList) {
app.globalData.luckyTokenList = res.data.luckyTokenList;
}
}
}
}, this);
}
})

Loading…
Cancel
Save