Fix:4663 【旅居商城小程序】无法搜索到对应旅居商户
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
</view>
|
||||
<view v-if="isSearch" class="search-res-wrap">
|
||||
<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">
|
||||
<image class="img" :src="item.cover" v-if="item.coverType === 1"></image>
|
||||
<video
|
||||
@@ -25,12 +25,12 @@
|
||||
<text class="v12-font-28">{{ item.areaName }}</text>
|
||||
</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="atr">
|
||||
<image class="atr" :src="item.logo"></image>
|
||||
<image class="atr" :src="item.avatar"></image>
|
||||
</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>
|
||||
@@ -74,13 +74,17 @@ export default {
|
||||
this.isSearch = true
|
||||
})
|
||||
},
|
||||
toStore(id) {
|
||||
this.$yrouter.push({
|
||||
path: '/pagesInn/inn/innHome',
|
||||
query: {
|
||||
id: id
|
||||
}
|
||||
})
|
||||
toStore(item) {
|
||||
if(item.dataType === 'wellnessPlace'){
|
||||
this.$yrouter.push({
|
||||
path: '/pagesInn/inn/innHome',
|
||||
query: {
|
||||
id: item.hotelId
|
||||
}
|
||||
})
|
||||
}else{
|
||||
uni.navigateTo({ url: '/pkg_product/views/sojoumStore?id=' + item.id })
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user