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;