1
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user