|
@@ -75,15 +75,31 @@
|
|
...this.entrustForm,
|
|
...this.entrustForm,
|
|
entrustDurationTime: JSON.stringify(this.entrustForm.entrustDurationTime)
|
|
entrustDurationTime: JSON.stringify(this.entrustForm.entrustDurationTime)
|
|
}, 'POST').then(res => {
|
|
}, 'POST').then(res => {
|
|
- this.$refs.uTips.show({
|
|
|
|
- title: '支付成功',
|
|
|
|
- type: 'success',
|
|
|
|
|
|
+ uni.requestPayment({
|
|
|
|
+ provider: 'wxpay',
|
|
|
|
+ timeStamp: res.data.timeStamp,
|
|
|
|
+ nonceStr: res.data.nonceStr,
|
|
|
|
+ package: res.data.packageValue,
|
|
|
|
+ signType: res.data.signType,
|
|
|
|
+ paySign: res.data.paySign,
|
|
|
|
+ success: (payRes) => {
|
|
|
|
+ this.$refs.uTips.show({
|
|
|
|
+ title: '支付成功',
|
|
|
|
+ type: 'success',
|
|
|
|
+ })
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ uni.reLaunch({
|
|
|
|
+ url: '/pagesMain/paySuccess'
|
|
|
|
+ });
|
|
|
|
+ }, 1000)
|
|
|
|
+ },
|
|
|
|
+ fail: (error) => {
|
|
|
|
+ this.$refs.uTips.show({
|
|
|
|
+ title: '支付失败',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
})
|
|
})
|
|
- setTimeout(() => {
|
|
|
|
- uni.reLaunch({
|
|
|
|
- url: '/pagesMain/paySuccess'
|
|
|
|
- });
|
|
|
|
- }, 1000)
|
|
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
this.$refs.uTips.show({
|
|
this.$refs.uTips.show({
|
|
title: '支付失败',
|
|
title: '支付失败',
|