|
@@ -605,26 +605,15 @@ paymentClick() {
|
|
|
}
|
|
|
// this.getPaySend()
|
|
|
} else {
|
|
|
- console.log(res.data.message)
|
|
|
+ console.log(res.message)
|
|
|
console.log(this.data.integralNum,this.data.mobile,JSON.stringify(data))
|
|
|
// log.error(`${res.data.message}`)
|
|
|
// log.error(`${this.data.integralNum},${this.data.mobile},${JSON.stringify(data)}`)
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.data.message,
|
|
|
- status: true
|
|
|
- }
|
|
|
+
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: res.message
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.data.message,
|
|
|
- status: false
|
|
|
- }
|
|
|
- })
|
|
|
- }, 2500)
|
|
|
}
|
|
|
|
|
|
}).catch(error=>{
|
|
@@ -685,22 +674,10 @@ paymentClick() {
|
|
|
})
|
|
|
} else {
|
|
|
wx.hideLoading();
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: true
|
|
|
- }
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: res.message
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: false
|
|
|
- }
|
|
|
- })
|
|
|
- }, 2500)
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
let res = error.data;
|
|
@@ -728,22 +705,10 @@ paymentClick() {
|
|
|
})
|
|
|
this.codeSetInterval(60)
|
|
|
} else {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: true
|
|
|
- }
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: res.message
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: false
|
|
|
- }
|
|
|
- })
|
|
|
- }, 2500)
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
let res = error.data;
|
|
@@ -793,22 +758,10 @@ paymentClick() {
|
|
|
})
|
|
|
this.codeSetInterval(60)
|
|
|
} else {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: true
|
|
|
- }
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: res.message
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: false
|
|
|
- }
|
|
|
- })
|
|
|
- }, 2500)
|
|
|
}
|
|
|
}).catch(error=>{
|
|
|
console.log('duanxin')
|
|
@@ -835,22 +788,10 @@ paymentClick() {
|
|
|
obj.date = Math.round(new Date().getTime() / 1000).toString()
|
|
|
wx.setStorageSync('orderDetails', JSON.stringify(obj))
|
|
|
} else {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: true
|
|
|
- }
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: res.message
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: false
|
|
|
- }
|
|
|
- })
|
|
|
- }, 2500)
|
|
|
}
|
|
|
}).catch(error=>{
|
|
|
console.log('chongxin')
|
|
@@ -867,22 +808,10 @@ paymentClick() {
|
|
|
this.codeName = '60s后重新获取'
|
|
|
this.codeSetInterval(60)
|
|
|
} else {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: true
|
|
|
- }
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: res.message
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: false
|
|
|
- }
|
|
|
- })
|
|
|
- }, 2500)
|
|
|
}
|
|
|
}).catch(error=>{
|
|
|
console.log('chongxin')
|
|
@@ -901,22 +830,10 @@ paymentClick() {
|
|
|
})
|
|
|
this.codeSetInterval(60)
|
|
|
} else {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: true
|
|
|
- }
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: res.message
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- this.setData({
|
|
|
- showToastObj: {
|
|
|
- icon: 'iconSueecss',
|
|
|
- title: res.message,
|
|
|
- status: false
|
|
|
- }
|
|
|
- })
|
|
|
- }, 2500)
|
|
|
}
|
|
|
}).catch(error=>{
|
|
|
console.log('chongxin')
|