|
|
|
@ -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) |
|
|
|
}, |
|
|
|
|