This commit is contained in:
caolc
2023-03-22 09:23:04 +08:00
parent 84613456a7
commit 7247973c63
14 changed files with 475 additions and 197 deletions

View File

@@ -67,6 +67,7 @@
data() {
return {
getSiteListTimer:null,
areaCodeList:[],
loadText:'more',
changeHs:true,
@@ -677,20 +678,30 @@
},
onInput() {
setTimeout(() => {
// setTimeout(() => {
// this.currentPage = 1
// this.siteList = []
// this.getSiteList()
// }, 100)
clearTimeout(this.getSiteListTimer);
this.getSiteListTimer = setTimeout(()=>{
this.currentPage = 1
this.siteList = []
this.getSiteList()
}, 100)
},500);
},
onSearch() {
this.currentPage = 1
this.siteList = []
if(this.TabHead == 0){
this.getSiteList()
}else if (this.TabHead == 1){
this.getUreaList()
}
clearTimeout(this.getSiteListTimer);
this.getSiteListTimer = setTimeout(()=>{
this.currentPage = 1
this.siteList = []
if(this.TabHead == 0){
this.getSiteList()
}else if (this.TabHead == 1){
this.getUreaList()
}
},500)
}
}
}