This commit is contained in:
caolc
2023-05-11 09:09:27 +08:00
parent 0c133b2c61
commit ac31a0cd62
5 changed files with 18 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
<template>
<view>
<cu-custom class="main-totextbar bg-main-oil" :isBack="true" bgColor="bg-main-oil">
<block slot="backText">返回</block>
<block @click='clearInterval(timeinterval)' slot="backText">返回</block>
<block slot="content">订单支付结果</block>
</cu-custom>
<view :class="showQr ? 'bg-blue' :''" >
@@ -315,7 +315,7 @@
},1000) //设置定时器,时时间每隔一秒钟走一次(即每秒)
setTimeout(()=>{
this.newQrString()
},5000)
},2000)
if(option.payMethod == '1' && option.status == 'success'){
if(option.status == 'success') {
@@ -399,13 +399,16 @@
,
onHide() {
console.log('这里是hiden')
this.innerAudioContext.stop()
this.innerAudioContext.stop();
clearInterval(this.timeinterval);
this.timeinterval =null
},
onUnload() {
console.log('这里是卸载页面')
this.innerAudioContext.stop();
if(this.timeinterval)clearInterval(this.timeinterval);
},
clearInterval(this.timeinterval);
this.timeinterval = null
},
}
</script>