This commit is contained in:
zmj 2024-06-15 18:41:25 +08:00
parent fda0ed3841
commit a6a584bddc
1 changed files with 6 additions and 0 deletions

View File

@ -389,6 +389,7 @@
// //
const searchOn = (ifPullReFresh = false) => { const searchOn = (ifPullReFresh = false) => {
orderList.value[+swiperCurrent.value] = []; orderList.value[+swiperCurrent.value] = [];
console.log(swiperCurrent.value)
where.value[+swiperCurrent.value].page_no = 1; where.value[+swiperCurrent.value].page_no = 1;
where.value[+swiperCurrent.value].loadend = false; where.value[+swiperCurrent.value].loadend = false;
if (swiperCurrent.value == 0) getOrderList(0, '', '', ifPullReFresh); // if (swiperCurrent.value == 0) getOrderList(0, '', '', ifPullReFresh); //
@ -434,11 +435,16 @@
}) })
const triggered = ref(false); const triggered = ref(false);
let flag = false
const refresherrefresh = (type = 1) => { const refresherrefresh = (type = 1) => {
if (flag) return
flag = true
triggered.value = true; triggered.value = true;
searchOn() searchOn()
console.log("别恶心我了")
setTimeout(() => { setTimeout(() => {
triggered.value = false; triggered.value = false;
flag = false
}, 500) }, 500)
} }
</script> </script>