|
@@ -20,7 +20,8 @@ Page({ |
|
|
data: null, |
|
|
data: null, |
|
|
showErr: false, |
|
|
showErr: false, |
|
|
showAlert: false, |
|
|
showAlert: false, |
|
|
remainingPoints:0 |
|
|
|
|
|
|
|
|
remainingPoints:0, |
|
|
|
|
|
submitAble:true |
|
|
}, |
|
|
}, |
|
|
getUserInfo: function () { |
|
|
getUserInfo: function () { |
|
|
let that = this; |
|
|
let that = this; |
|
@@ -55,6 +56,11 @@ Page({ |
|
|
url: `/pages/spellGroup/spellGroup`, |
|
|
url: `/pages/spellGroup/spellGroup`, |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
onShow:function(){ |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
submitAble: true |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 生命周期函数--监听页面加载 |
|
|
* 生命周期函数--监听页面加载 |
|
|
*/ |
|
|
*/ |
|
@@ -72,6 +78,9 @@ Page({ |
|
|
*/ |
|
|
*/ |
|
|
gotoPay() { |
|
|
gotoPay() { |
|
|
var that = this; |
|
|
var that = this; |
|
|
|
|
|
that.setData({ |
|
|
|
|
|
submitAble: false |
|
|
|
|
|
}) |
|
|
Http.get({ |
|
|
Http.get({ |
|
|
url: config.api.checkPhoneStatus, |
|
|
url: config.api.checkPhoneStatus, |
|
|
data: {} |
|
|
data: {} |
|
@@ -92,8 +101,7 @@ Page({ |
|
|
.catch(err => { |
|
|
.catch(err => { |
|
|
console.log(err); |
|
|
console.log(err); |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
showbutton: false, |
|
|
|
|
|
showbutton1: false |
|
|
|
|
|
|
|
|
submitAble: true |
|
|
}) |
|
|
}) |
|
|
if (err.code == 2011) { |
|
|
if (err.code == 2011) { |
|
|
wx.showToast({ |
|
|
wx.showToast({ |
|
@@ -236,7 +244,6 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
.catch(err => { |
|
|
.catch(err => { |
|
|
console.log(err); |
|
|
|
|
|
if (err.code != 12002) { |
|
|
if (err.code != 12002) { |
|
|
setTimeout(function () { |
|
|
setTimeout(function () { |
|
|
_this.payOrderUpdate(orderId, payOrderId, status, reason, _this); |
|
|
_this.payOrderUpdate(orderId, payOrderId, status, reason, _this); |
|
@@ -269,5 +276,8 @@ Page({ |
|
|
*/ |
|
|
*/ |
|
|
onPullDownRefresh: function () { |
|
|
onPullDownRefresh: function () { |
|
|
this.getDetail(this.data.paramData.couponChannelId); |
|
|
this.getDetail(this.data.paramData.couponChannelId); |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
submitAble: true |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |