瀏覽代碼

bug修复

master
sui 5 年之前
父節點
當前提交
5ac8eb4425
共有 2 個文件被更改,包括 13 次插入2 次删除
  1. +4
    -0
      496_dongfengqichen/pages/index/index.js
  2. +9
    -2
      496_dongfengqichen/pages/rotaryDraw/rotaryDraw.js

+ 4
- 0
496_dongfengqichen/pages/index/index.js 查看文件

this.setData({ this.setData({
drawNum:app.globalData.luckyTokenList.length drawNum:app.globalData.luckyTokenList.length
}) })
}else{
this.setData({
drawNum: 0
})
} }
if (app.globalData.getBuyState) { if (app.globalData.getBuyState) {
this.getBuyStates(); this.getBuyStates();

+ 9
- 2
496_dongfengqichen/pages/rotaryDraw/rotaryDraw.js 查看文件

}) })
}, },
getLucky(){ getLucky(){
// app.globalData.luckyTokenList.splice(0, 1);
// this.drawAniFun(5500, 660);
// setTimeout(() => {
// btnOpen = false;
// this.prizeControl2();
// }, 5500 + 400);
// return;
app.wxRequest(app.globalData.urlRoot + "wxPay/v3/getLucky", {token:app.globalData.luckyTokenList[0].token}, res => { app.wxRequest(app.globalData.urlRoot + "wxPay/v3/getLucky", {token:app.globalData.luckyTokenList[0].token}, res => {
console.log(res); console.log(res);
if (res.code == 200) { if (res.code == 200) {
setTimeout(() => { setTimeout(() => {
btnOpen = false; btnOpen = false;
this.prizeControl2(); this.prizeControl2();
}, 6600+400);
}, 5500+400);
} }
console.log(app.globalData.luckyTokenList); console.log(app.globalData.luckyTokenList);
}else{ }else{
}, this) }, this)
}, },
getLuckyTokenList() { getLuckyTokenList() {
this.wxRequest(app.globalData.urlRoot + "wxPay/v3/getLuckyTokenList", {}, res => {
app.wxRequest(app.globalData.urlRoot + "wxPay/v3/getLuckyTokenList", {}, res => {
if (res.code == 200) { if (res.code == 200) {
if (res.data) { if (res.data) {
res.data.cdate = res.data.cdate ? res.data.cdate : ""; res.data.cdate = res.data.cdate ? res.data.cdate : "";

Loading…
取消
儲存