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