修改湖畔好店类目详情中搜索不起作用的问题
This commit is contained in:
parent
2f2e11cc6b
commit
57cfbe00d7
@ -7,19 +7,17 @@
|
|||||||
<view class="localBox">
|
<view class="localBox">
|
||||||
<view class="localBoxItem">
|
<view class="localBoxItem">
|
||||||
<view class="local">
|
<view class="local">
|
||||||
<image id="local"
|
<image id="local" src="https://static.hshuishang.com/property-img-file/local_localIcon.png" mode="aspectFill">
|
||||||
src="https://static.hshuishang.com/property-img-file/local_localIcon.png"
|
</image>
|
||||||
mode="aspectFill"></image>
|
|
||||||
{{ address }}
|
{{ address }}
|
||||||
<u-icon name="arrow-down" color="#999999" size="28"></u-icon>
|
<u-icon name="arrow-down" color="#999999" size="28"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="search">
|
<view class="search">
|
||||||
<view class="searchBox">
|
<view class="searchBox">
|
||||||
<image
|
<image src="https://static.hshuishang.com/property-img-file/com_communitySearchIcon.png" mode="aspectFill">
|
||||||
src="https://static.hshuishang.com/property-img-file/com_communitySearchIcon.png"
|
</image>
|
||||||
mode="aspectFill"></image>
|
<input type="text" v-model="searchText" placeholder="请输入您想搜索的内容" @confirm="handleSearch" />
|
||||||
<input type="text" placeholder="请输入您想搜索的内容" />
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -54,8 +52,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="merchantItem_right_con_right" @click="toJump(item)">
|
<view class="merchantItem_right_con_right" @click="toJump(item)">
|
||||||
<image src="https://static.hshuishang.com/property-img-file/local_review.png"
|
<image src="https://static.hshuishang.com/property-img-file/local_review.png" mode="aspectFill"></image>
|
||||||
mode="aspectFill"></image>
|
|
||||||
点评
|
点评
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -67,8 +64,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view v-else>
|
<view v-else>
|
||||||
<view class="empty">
|
<view class="empty">
|
||||||
<image src="https://static.hshuishang.com/property-img-file/com_nearbyList_empty.png"
|
<image src="https://static.hshuishang.com/property-img-file/com_nearbyList_empty.png" mode="aspectFill"></image>
|
||||||
mode="aspectFill"></image>
|
|
||||||
暂无数据
|
暂无数据
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -82,8 +78,7 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
<view class="line"></view>
|
<view class="line"></view>
|
||||||
<view class="btn_right" @click="toPayInfo">
|
<view class="btn_right" @click="toPayInfo">
|
||||||
<image src="https://static.hshuishang.com/property-img-file/lcoal_payIcon.png"
|
<image src="https://static.hshuishang.com/property-img-file/lcoal_payIcon.png" mode="aspectFill"></image>
|
||||||
mode="aspectFill"></image>
|
|
||||||
快捷支付记录
|
快捷支付记录
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -122,7 +117,7 @@ export default {
|
|||||||
merchatList: [],
|
merchatList: [],
|
||||||
|
|
||||||
changeId: "",
|
changeId: "",
|
||||||
|
searchText: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@ -146,7 +141,7 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
// 跳转快捷支付记录
|
// 跳转快捷支付记录
|
||||||
toPayInfo(){
|
toPayInfo() {
|
||||||
NavgateTo("/packages/localLife/payInfo/index")
|
NavgateTo("/packages/localLife/payInfo/index")
|
||||||
},
|
},
|
||||||
back() {
|
back() {
|
||||||
@ -165,7 +160,7 @@ export default {
|
|||||||
const params = {
|
const params = {
|
||||||
isShop: 1,
|
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)
|
res.rows = res.rows.filter((item) => item.is_visible == 1)
|
||||||
console.log(res);
|
console.log(res);
|
||||||
// 将数据分成每10个一组
|
// 将数据分成每10个一组
|
||||||
@ -176,6 +171,12 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//搜索商家
|
||||||
|
handleSearch() {
|
||||||
|
this.page_num = 1;
|
||||||
|
this.merchatList = [];
|
||||||
|
this.getMechantList();
|
||||||
|
},
|
||||||
//查询商家列表
|
//查询商家列表
|
||||||
async getMechantList() {
|
async getMechantList() {
|
||||||
let that = this;
|
let that = this;
|
||||||
@ -183,6 +184,7 @@ export default {
|
|||||||
merchant_cate_id: this.changeId,
|
merchant_cate_id: this.changeId,
|
||||||
page_num: that.page_num,
|
page_num: that.page_num,
|
||||||
page_size: that.page_size,
|
page_size: that.page_size,
|
||||||
|
merchant_name: that.searchText
|
||||||
}
|
}
|
||||||
await request(apiArr.getMerchantList, "POST", params).then((res) => {
|
await request(apiArr.getMerchantList, "POST", params).then((res) => {
|
||||||
let latitude = uni.getStorageSync("location").lat;
|
let latitude = uni.getStorageSync("location").lat;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user