diff --git a/page_components/fuwu/index.vue b/page_components/fuwu/index.vue index 81dcfa9..37220ab 100644 --- a/page_components/fuwu/index.vue +++ b/page_components/fuwu/index.vue @@ -52,7 +52,8 @@ 立即支付 - + + @@ -69,7 +70,10 @@ expireTimeStr: '', zfobj: {}, orderno: '', - id:'' + id:'', + czflag:false, + sytime:0, + datetime:0 } }, onLoad(option) { @@ -79,6 +83,11 @@ }, computed: { + }, + onShow() { + if(this.orderno){ + this.gethuidaio() + } }, methods: { startTimer() { @@ -129,14 +138,17 @@ package: res.data.packageVal, signType: res.data.signType, paySign: res.data.paySign, - success(res) { + success: (res) => { console.log(res,'支付成功'); + if (this.timer) { + clearInterval(this.timer); + this.timer = null; + } // 支付成功逻辑 - uni.showToast({ - title: '支付成功', - icon: 'success', - duration: 2000 - }); + uni.reLaunch({ + url:'/pages/shouye/index' + }) + uni.setStorageSync('time', this.expireTimeStr) }, fail(err) { // 支付失败逻辑 @@ -157,9 +169,11 @@ }) } }, - + + btnactive(item) { + this.sytime = item.value this.zfobj = item this.indexactive = item.suitId; }, @@ -178,6 +192,12 @@