|
@@ -92,7 +92,8 @@ Page({
|
|
// 获取优惠券列表
|
|
// 获取优惠券列表
|
|
this.getCouponList()
|
|
this.getCouponList()
|
|
if(getMobileCache() != ''){
|
|
if(getMobileCache() != ''){
|
|
- this.findIntegral()
|
|
|
|
|
|
+ // this.findIntegral()
|
|
|
|
+ this.getphoneClick()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -410,6 +411,7 @@ getphoneClick() {
|
|
let dateNum = Math.round(new Date().getTime() / 1000).toString()
|
|
let dateNum = Math.round(new Date().getTime() / 1000).toString()
|
|
if (wx.getStorageSync('orderDetails') != '' && this.data.mobile === JSON.parse(wx
|
|
if (wx.getStorageSync('orderDetails') != '' && this.data.mobile === JSON.parse(wx
|
|
.getStorageSync('orderDetails')).mobile) {
|
|
.getStorageSync('orderDetails')).mobile) {
|
|
|
|
+ console.log(dateNum - JSON.parse(wx.getStorageSync('orderDetails')).date)
|
|
if (dateNum - JSON.parse(wx.getStorageSync('orderDetails')).date <= 120) {
|
|
if (dateNum - JSON.parse(wx.getStorageSync('orderDetails')).date <= 120) {
|
|
const data = JSON.parse(wx.getStorageSync('orderDetails'))
|
|
const data = JSON.parse(wx.getStorageSync('orderDetails'))
|
|
if (dateNum - data.date < 60) {
|
|
if (dateNum - data.date < 60) {
|
|
@@ -436,6 +438,8 @@ getphoneClick() {
|
|
activeNum: 0,
|
|
activeNum: 0,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ }else{
|
|
|
|
+ wx.setStorageSync('orderDetails', null)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -636,6 +640,7 @@ paymentClick() {
|
|
date: Math.round(new Date().getTime() / 1000).toString(),
|
|
date: Math.round(new Date().getTime() / 1000).toString(),
|
|
mobile: getMobileCache()
|
|
mobile: getMobileCache()
|
|
},
|
|
},
|
|
|
|
+
|
|
})
|
|
})
|
|
wx.setStorageSync('orderDetails', JSON.stringify(this.data.active1obj))
|
|
wx.setStorageSync('orderDetails', JSON.stringify(this.data.active1obj))
|
|
if (res.data.step === 1) {
|
|
if (res.data.step === 1) {
|
|
@@ -663,10 +668,10 @@ paymentClick() {
|
|
|
|
|
|
}).catch(error=>{
|
|
}).catch(error=>{
|
|
console.log('zhifu')
|
|
console.log('zhifu')
|
|
- console.log(error)
|
|
|
|
|
|
+ console.log(error.data.message)
|
|
wx.showToast({
|
|
wx.showToast({
|
|
icon: 'none',
|
|
icon: 'none',
|
|
- title: '请一分钟后再选择'
|
|
|
|
|
|
+ title: error.data.message
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -846,6 +851,10 @@ paymentClick() {
|
|
}).catch(error=>{
|
|
}).catch(error=>{
|
|
console.log('chongxin')
|
|
console.log('chongxin')
|
|
console.log(error)
|
|
console.log(error)
|
|
|
|
+ wx.showToast({
|
|
|
|
+ icon: 'none',
|
|
|
|
+ title: error.data.message
|
|
|
|
+ })
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
if (this.data.activeNum === 0 && this.data.codeName === '重新获取验证码') {
|
|
if (this.data.activeNum === 0 && this.data.codeName === '重新获取验证码') {
|