add
This commit is contained in:
parent
fda0ed3841
commit
a6a584bddc
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue