Pārlūkot izejas kodu

bug修复

master
sui pirms 5 gadiem
vecāks
revīzija
5ac8eb4425
2 mainītis faili ar 13 papildinājumiem un 2 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 : "";

Notiek ielāde…
Atcelt
Saglabāt