Commit 0056fa75 authored by qipeng's avatar qipeng

增加清除

parent 38606547
......@@ -436,6 +436,7 @@ export default {
openId:'',
ifyukuaiCode:'',//渝快付
dataLengthType:false,//上拉加载无更多数据时显示
timerOutClear:null,
}
},
onLoad(option) {
......@@ -608,7 +609,7 @@ export default {
}
})
.catch((err)=>{
setTimeout(()=>{
this.timerOutClear = setTimeout(()=>{
this.getData(2)
},1000)
......@@ -707,6 +708,13 @@ export default {
this.pageIndex++
this.getData(2)
},
onUnload() {
if(this.timerOutClear) {
clearTimeout(this.timerOutClear)
this.timerOutClear = null
}
//隐藏加载框 uni.hideLoading()
},
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment