|
|
@@ -21,6 +21,7 @@ Page({ |
|
|
|
havePlayEd: app.globalData.havePlayEd, |
|
|
|
staticGamedata: {}, |
|
|
|
showIf: false, |
|
|
|
discountEnable:false, |
|
|
|
page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 |
|
|
|
}, |
|
|
|
gotodiscountCardList:function(){ |
|
|
@@ -33,6 +34,26 @@ Page({ |
|
|
|
url: '/pages/rushToBuy/index', |
|
|
|
}) |
|
|
|
}, |
|
|
|
showSpecial:function(){ |
|
|
|
let that = this; |
|
|
|
Http.get({ |
|
|
|
url: config.api.scoreLevelInfo, |
|
|
|
data: {} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
// if true 则开启特享礼遇 |
|
|
|
if (res.data.discountEnable) { |
|
|
|
that.setData({ |
|
|
|
discountEnable: true |
|
|
|
}) |
|
|
|
} |
|
|
|
else { |
|
|
|
that.setData({ |
|
|
|
discountEnable: false |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
qrcode: function (e) { |
|
|
|
var that = this; |
|
|
|
that.setData({ |
|
|
@@ -291,6 +312,7 @@ Page({ |
|
|
|
} |
|
|
|
Http.setToken(res.data.token); |
|
|
|
that.checkUserCarStatus(); |
|
|
|
that.showSpecial(); |
|
|
|
that.getUserInfo(); |
|
|
|
that.getBannerlist(); |
|
|
|
if (app.couponChannelListCallback) { |
|
|
|