Browse Source

列表优化

h5_css
yanyan 3 years ago
parent
commit
e62d7e7c36
  1. 11
      subpkg/list/list.vue

11
subpkg/list/list.vue

@ -41,6 +41,7 @@
pageSize:10
},
total:0,
search: false,
isloading:false,
//
swiperList: [],
@ -77,7 +78,12 @@
res.rows.forEach(item=>{
item.uploadPath = uni.$http.baseUrl +item.uploadPath
})
this.sceneList =[...this.sceneList,...res.rows]
if (this.search) {
this.sceneList = res.rows
this.search = false
} else {
this.sceneList =[...this.sceneList,...res.rows]
}
this.total = res.total
// uni.$showMsg('')
},
@ -92,7 +98,8 @@
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.name = e
this.queryObj.name = e
this.search = true
this.getSceneList()
}, 500)
},

Loading…
Cancel
Save