首页修改

This commit is contained in:
仲么了
2023-08-23 16:22:08 +08:00
parent cc63cda4e7
commit 79d6771aad
34 changed files with 788 additions and 403 deletions

View File

@@ -30,6 +30,10 @@ export default {
pageNum: 1,
pageSize: 20,
},
timer:null,
callBack: null,
firstCallBack: null,
loadedCallback: null,
reload() {
this.data = []
this.status = 'loading'
@@ -37,9 +41,13 @@ export default {
this.params.pageNum = 1
this.next()
},
callBack: null,
firstCallBack: null,
loadedCallback: null,
search() {
// 节流搜索
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.reload()
}, 300)
},
next() {
me.$request({
url: url,