Explorar el Código

bug修复

master
sui hace 5 años
padre
commit
5ac8eb4425
Se han modificado 2 ficheros con 13 adiciones y 2 borrados
  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 Ver fichero

@@ -132,6 +132,10 @@ Page({
this.setData({
drawNum:app.globalData.luckyTokenList.length
})
}else{
this.setData({
drawNum: 0
})
}
if (app.globalData.getBuyState) {
this.getBuyStates();

+ 9
- 2
496_dongfengqichen/pages/rotaryDraw/rotaryDraw.js Ver fichero

@@ -173,6 +173,13 @@ Page({
})
},
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 => {
console.log(res);
if (res.code == 200) {
@@ -205,7 +212,7 @@ Page({
setTimeout(() => {
btnOpen = false;
this.prizeControl2();
}, 6600+400);
}, 5500+400);
}
console.log(app.globalData.luckyTokenList);
}else{
@@ -247,7 +254,7 @@ Page({
}, this)
},
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.data) {
res.data.cdate = res.data.cdate ? res.data.cdate : "";

Cargando…
Cancelar
Guardar