修改湖畔好店类目详情中搜索不起作用的问题

This commit is contained in:
赵毅 2025-12-05 10:56:31 +08:00
parent 2f2e11cc6b
commit 57cfbe00d7

View File

@ -7,19 +7,17 @@
<view class="localBox">
<view class="localBoxItem">
<view class="local">
<image id="local"
src="https://static.hshuishang.com/property-img-file/local_localIcon.png"
mode="aspectFill"></image>
<image id="local" src="https://static.hshuishang.com/property-img-file/local_localIcon.png" mode="aspectFill">
</image>
{{ address }}
<u-icon name="arrow-down" color="#999999" size="28"></u-icon>
</view>
<view class="search">
<view class="searchBox">
<image
src="https://static.hshuishang.com/property-img-file/com_communitySearchIcon.png"
mode="aspectFill"></image>
<input type="text" placeholder="请输入您想搜索的内容" />
<image src="https://static.hshuishang.com/property-img-file/com_communitySearchIcon.png" mode="aspectFill">
</image>
<input type="text" v-model="searchText" placeholder="请输入您想搜索的内容" @confirm="handleSearch" />
</view>
</view>
</view>
@ -54,8 +52,7 @@
</view>
</view>
<view class="merchantItem_right_con_right" @click="toJump(item)">
<image src="https://static.hshuishang.com/property-img-file/local_review.png"
mode="aspectFill"></image>
<image src="https://static.hshuishang.com/property-img-file/local_review.png" mode="aspectFill"></image>
点评
</view>
</view>
@ -67,8 +64,7 @@
</view>
<view v-else>
<view class="empty">
<image src="https://static.hshuishang.com/property-img-file/com_nearbyList_empty.png"
mode="aspectFill"></image>
<image src="https://static.hshuishang.com/property-img-file/com_nearbyList_empty.png" mode="aspectFill"></image>
暂无数据
</view>
</view>
@ -82,8 +78,7 @@
</view> -->
<view class="line"></view>
<view class="btn_right" @click="toPayInfo">
<image src="https://static.hshuishang.com/property-img-file/lcoal_payIcon.png"
mode="aspectFill"></image>
<image src="https://static.hshuishang.com/property-img-file/lcoal_payIcon.png" mode="aspectFill"></image>
快捷支付记录
</view>
</view>
@ -122,7 +117,7 @@ export default {
merchatList: [],
changeId: "",
searchText: ''
};
},
onLoad(options) {
@ -146,7 +141,7 @@ export default {
methods: {
//
toPayInfo(){
toPayInfo() {
NavgateTo("/packages/localLife/payInfo/index")
},
back() {
@ -165,7 +160,7 @@ export default {
const params = {
isShop: 1,
}
await request(apiArr.getMerChantCateList, "POST",params).then((res) => {
await request(apiArr.getMerChantCateList, "POST", params).then((res) => {
res.rows = res.rows.filter((item) => item.is_visible == 1)
console.log(res);
// 10
@ -176,6 +171,12 @@ export default {
}
});
},
//
handleSearch() {
this.page_num = 1;
this.merchatList = [];
this.getMechantList();
},
//
async getMechantList() {
let that = this;
@ -183,6 +184,7 @@ export default {
merchant_cate_id: this.changeId,
page_num: that.page_num,
page_size: that.page_size,
merchant_name: that.searchText
}
await request(apiArr.getMerchantList, "POST", params).then((res) => {
let latitude = uni.getStorageSync("location").lat;