Fix:4663 【旅居商城小程序】无法搜索到对应旅居商户

This commit is contained in:
LinCyJang
2025-11-30 11:44:18 +08:00
parent 2df1a79997
commit 9db2bc3b68
+15 -11
View File
@@ -5,7 +5,7 @@
</view> </view>
<view v-if="isSearch" class="search-res-wrap"> <view v-if="isSearch" class="search-res-wrap">
<view class="v12-justify-between sanctup-items v12-mt-3"> <view class="v12-justify-between sanctup-items v12-mt-3">
<view v-for="(item, index) in items" :key="index" class="v12-pa-1" @click="toStore(item.hotelId)"> <view v-for="(item, index) in items" :key="index" class="v12-pa-1" @click="toStore(item)">
<view class="img"> <view class="img">
<image class="img" :src="item.cover" v-if="item.coverType === 1"></image> <image class="img" :src="item.cover" v-if="item.coverType === 1"></image>
<video <video
@@ -25,12 +25,12 @@
<text class="v12-font-28">{{ item.areaName }}</text> <text class="v12-font-28">{{ item.areaName }}</text>
</view> </view>
</view> </view>
<view class="v12-font-bold v12-font-28 v12-mt-1 more-t desc-txt">{{ item.content }}</view> <view class="v12-font-bold v12-font-28 v12-mt-1 more-t desc-txt">{{ item.intro }}</view>
<view class="v12-justify-start v12-align-center v12-my-1"> <view class="v12-justify-start v12-align-center v12-my-1">
<view class="atr"> <view class="atr">
<image class="atr" :src="item.logo"></image> <image class="atr" :src="item.avatar"></image>
</view> </view>
<view class="v12-font-26 v12-ml-2 v12-dark-text one-t">{{ item.hotelName }}</view> <view class="v12-font-26 v12-ml-2 v12-dark-text one-t">{{ item.name }}</view>
</view> </view>
</view> </view>
</view> </view>
@@ -74,13 +74,17 @@ export default {
this.isSearch = true this.isSearch = true
}) })
}, },
toStore(id) { toStore(item) {
this.$yrouter.push({ if(item.dataType === 'wellnessPlace'){
path: '/pagesInn/inn/innHome', this.$yrouter.push({
query: { path: '/pagesInn/inn/innHome',
id: id query: {
} id: item.hotelId
}) }
})
}else{
uni.navigateTo({ url: '/pkg_product/views/sojoumStore?id=' + item.id })
}
}, },
} }
} }