浏览代码

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

master
sui 5 年前
父节点
当前提交
0749bce8dc
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. +14
    -0
      496_dongfengqichen/pages/rotaryDraw/rotaryDraw.js

+ 14
- 0
496_dongfengqichen/pages/rotaryDraw/rotaryDraw.js 查看文件

@@ -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);
}
})

正在加载...
取消
保存