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