From 3c26c8c1a0e6d23644dc31d5236a9dc4128af9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Sat, 11 Oct 2025 11:16:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=B9=96=E7=95=94=E5=A5=BD?= =?UTF-8?q?=E5=BA=97=E7=9A=84=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/localLife/index/index.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/localLife/index/index.vue b/packages/localLife/index/index.vue index 4c060c94..8732616b 100644 --- a/packages/localLife/index/index.vue +++ b/packages/localLife/index/index.vue @@ -15,7 +15,7 @@ - + @@ -141,6 +141,7 @@ export default { page_num: 1, flag: false, merchatList: [], + searchText: '' }; }, onLoad(options) { @@ -196,12 +197,19 @@ export default { } }); }, + //搜索商家 + handleSearch() { + this.page_num = 1; + this.merchatList = []; + this.getMechantList(); + }, //查询商家列表 async getMechantList() { let that = this; await request(apiArr.getMerchantList, "POST", { page_num: that.page_num, page_size: that.page_size, + merchant_name: that.searchText }).then((res) => { let latitude = uni.getStorageSync("location").lat; let longitude = uni.getStorageSync("location").lng;