Browse Source

bug修复

master
suizhijia 5 years ago
parent
commit
29fe0c333e
2 changed files with 6 additions and 6 deletions
  1. +5
    -5
      496_dongfengqichen/pages/index/index.js
  2. +1
    -1
      496_dongfengqichen/pages/rotaryDraw/rotaryDraw.js

+ 5
- 5
496_dongfengqichen/pages/index/index.js View File

} }
}, },
loadFun: function () { loadFun: function () {
if(app.globalData.luckyTokenList && app.globalData.luckyTokenList.length){
this.setData({
drawNum:app.globalData.luckyTokenList.length
})
}
if (!app.globalData.addPageEnterState.index) { if (!app.globalData.addPageEnterState.index) {
app.addPageEnter("2AF7D5B88BBFF4159C8079E963E72C9B"); app.addPageEnter("2AF7D5B88BBFF4159C8079E963E72C9B");
app.globalData.addPageEnterState.index = true; app.globalData.addPageEnterState.index = true;
this.setData({ this.setData({
buyState: app.globalData.getBuyState.success buyState: app.globalData.getBuyState.success
}) })
if(app.globalData.luckyTokenList && app.globalData.luckyTokenList.length){
this.setData({
drawNum:app.globalData.luckyTokenList.length
})
}
}, },
provinceChane: function (e) {//选中省 provinceChane: function (e) {//选中省
this.setData({ this.setData({

+ 1
- 1
496_dongfengqichen/pages/rotaryDraw/rotaryDraw.js View File

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 : "";
app.globalData.getBuyState = res.data;
app.globalData.getBuyState = res.data.success;
if (res.data.luckyTokenList) { if (res.data.luckyTokenList) {
app.globalData.luckyTokenList = res.data.luckyTokenList; app.globalData.luckyTokenList = res.data.luckyTokenList;
} }

Loading…
Cancel
Save