Fix(养生圣地):[#2491]输入关键词后未点击键盘回车键,列表提示“暂无内容”,默认状态下不用显示暂无内容
This commit is contained in:
@@ -3,37 +3,39 @@
|
|||||||
<view class="v12-mr-3">
|
<view class="v12-mr-3">
|
||||||
<u-search searchIconColor="#C52733" :showAction="false" v-model="keyword" @search="search"></u-search>
|
<u-search searchIconColor="#C52733" :showAction="false" v-model="keyword" @search="search"></u-search>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-justify-between sanctup-items v12-mt-3">
|
<view v-if="isSearch" class="search-res-wrap">
|
||||||
<view v-for="(item, index) in items" :key="index" class="v12-pa-1" @click="toStore(item.hotelId)">
|
<view class="v12-justify-between sanctup-items v12-mt-3">
|
||||||
<view class="img">
|
<view v-for="(item, index) in items" :key="index" class="v12-pa-1" @click="toStore(item.hotelId)">
|
||||||
<image class="img" :src="item.cover" v-if="item.coverType === 1"></image>
|
<view class="img">
|
||||||
<video
|
<image class="img" :src="item.cover" v-if="item.coverType === 1"></image>
|
||||||
class="img"
|
<video
|
||||||
:src="item.cover"
|
class="img"
|
||||||
:play-btn-position="center"
|
:src="item.cover"
|
||||||
:show-fullscreen-btn="false"
|
:play-btn-position="center"
|
||||||
v-if="item.coverType === 2">
|
:show-fullscreen-btn="false"
|
||||||
</video>
|
v-if="item.coverType === 2">
|
||||||
<view class="v12-white-text address">
|
</video>
|
||||||
<image
|
<view class="v12-white-text address">
|
||||||
class="map-icon v12-mr-1"
|
<image
|
||||||
:src="webUrl + '/orderIcon/map_white.png'"
|
class="map-icon v12-mr-1"
|
||||||
></image>
|
:src="webUrl + '/orderIcon/map_white.png'"
|
||||||
<text class="v12-font-28">{{ item.areaName }}</text>
|
></image>
|
||||||
|
<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" style="height: 76rpx;">{{ item.content }}</view>
|
||||||
<view class="v12-font-bold v12-font-28 v12-mt-1 more-t" style="height: 76rpx;">{{ item.content }}</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.logo"></image>
|
</view>
|
||||||
|
<view class="v12-font-26 v12-ml-2 v12-dark-text one-t">{{ item.hotelName }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-font-26 v12-ml-2 v12-dark-text one-t">{{ item.hotelName }}</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<view v-if="items.length === 0 && keyword" class="v12-justify-center v12-mt-16">
|
||||||
<view v-if="items.length === 0 && keyword" class="v12-justify-center v12-mt-16">
|
<view class="no-data-wrap">
|
||||||
<view class="no-data-wrap">
|
<image :src="webUrl + '/orderIcon/微信图片_20241009220552.png'" mode="widthFix"></image>
|
||||||
<image :src="webUrl + '/orderIcon/微信图片_20241009220552.png'" mode="widthFix"></image>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -47,12 +49,12 @@ export default {
|
|||||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
keyword: '',
|
keyword: '',
|
||||||
goodCityId: '',
|
goodCityId: '',
|
||||||
|
isSearch: false,
|
||||||
items: []
|
items: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(opts) {
|
onLoad(opts) {
|
||||||
this.goodCityId = opts.city
|
this.goodCityId = opts.city
|
||||||
this.search()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
search() {
|
search() {
|
||||||
@@ -64,8 +66,9 @@ export default {
|
|||||||
limit: 9999
|
limit: 9999
|
||||||
}
|
}
|
||||||
getWellnessPlace(params).then(res => {
|
getWellnessPlace(params).then(res => {
|
||||||
// console.log(res);
|
|
||||||
this.items = res.data.records
|
this.items = res.data.records
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSearch = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toStore(id) {
|
toStore(id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user