|
@@ -532,6 +532,7 @@ paymentClick() {
|
|
|
shopid: this.data.shopid
|
|
|
}).then(res => {
|
|
|
if (res.code === '0000') {
|
|
|
+ this.codeSetInterval(60)
|
|
|
this.setData({
|
|
|
codeName: '60s后重新获取',
|
|
|
paymentStatus: true,
|
|
@@ -557,7 +558,6 @@ paymentClick() {
|
|
|
})
|
|
|
}
|
|
|
this.getPaySend()
|
|
|
- this.codeSetInterval(60)
|
|
|
} else {
|
|
|
console.log(res.data.message)
|
|
|
console.log(this.data.integralNum,this.data.mobile,JSON.stringify(data))
|
|
@@ -719,11 +719,11 @@ paymentClick() {
|
|
|
getPaySend(){
|
|
|
if (this.data.activeNum === 1) {
|
|
|
console.log('发送短信')
|
|
|
- Integralinfo.getPaySend({
|
|
|
- order_no: this.data.active1obj.order_no,
|
|
|
- mobile: this.data.mobile,
|
|
|
- shopid: this.data.shopid,
|
|
|
- }).then(res => {
|
|
|
+ Integralinfo.getSendCmccSms({
|
|
|
+ orderId: this.data.active1obj.orderId,
|
|
|
+ mobile: this.data.mobile,
|
|
|
+ shopid: this.data.shopid
|
|
|
+ }).then(res => {
|
|
|
if (res.code === '0000') {
|
|
|
this.setData({
|
|
|
codeName: '60s后重新获取',
|
|
@@ -850,5 +850,17 @@ paymentClick() {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ toExchange(){
|
|
|
+ const obj = {
|
|
|
+ mobile: getMobileCache(),
|
|
|
+ channelid: this.data.channelid,
|
|
|
+ shopid: this.data.shopid,
|
|
|
+ storeid: this.data.storeid
|
|
|
+ }
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '../integral/exchange?obj=' + JSON.stringify(obj)
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
})
|