From e62d7e7c36a01e0b45d0b93a6c0b5a48a4cfcdc6 Mon Sep 17 00:00:00 2001 From: yanyan Date: Wed, 28 Feb 2024 14:58:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpkg/list/list.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/subpkg/list/list.vue b/subpkg/list/list.vue index 4a82d53..4d9f6e3 100644 --- a/subpkg/list/list.vue +++ b/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) },