From a72acdca5421fdc754d7d7e6d7d174bcc426d10d Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Fri, 5 Jul 2024 21:08:30 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E5=BA=B7=E5=85=BB=E9=A3=9F=E6=9D=90):[#193?= =?UTF-8?q?6]=E9=A1=B5=E9=9D=A2=E6=BB=91=E5=8A=A8=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=BF=9B=E8=A1=8C=E6=90=9C=E7=B4=A2=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=EF=BC=8C=E5=8F=AA=E6=9C=89=E5=88=9A=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9C=AA=E6=BB=91=E5=8A=A8=E8=BF=87=E7=9A=84?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=89=8D=E8=83=BD=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_product/views/healthList.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pkg_product/views/healthList.vue b/pkg_product/views/healthList.vue index 1c72a82..eaff71b 100644 --- a/pkg_product/views/healthList.vue +++ b/pkg_product/views/healthList.vue @@ -7,13 +7,13 @@ type="text" placeholder="搜索内容" placeholder-style="color:#949494" - @confirm="search" + @confirm="searchClick" > { this.asideList = data.group - this.search() + this.searchReq() }) }, changeTab(index) { @@ -187,13 +187,17 @@ export default { this.page = 1 this.dataList = [] this.tabIndex = index - this.search() + this.searchReq() }, onLower() { this.page++ - this.search() + this.searchReq() }, - search() { + searchClick() { + this.page = 1 + this.searchReq() + }, + searchReq() { let param = { page: this.page, limit: 10, @@ -235,7 +239,7 @@ export default { this.asideIndex = index this.page = 1 this.dataList = [] - this.search() + this.searchReq() }, goStore(id) { uni.navigateTo({