Fix(搜索):[#1197, #1206]列表显示调整

This commit is contained in:
lifizer
2024-04-22 10:42:39 +08:00
parent 255a1b47a0
commit 171bf1d416
2 changed files with 50 additions and 16 deletions
+17 -2
View File
@@ -1,13 +1,28 @@
<template> <template>
<view class="noCommodity"> <view class="noCommodity">
<view class="noPictrue"> <view class="noPictrue">
<image :src="webUrl+'/20210203153900181449.png'" class="image"/> <image
v-if="type === 'good'"
:src=" webUrl + '/20210203153900181449.png'"
class="image"
/>
<image
v-if="type === 'hotel'"
:src=" webUrl + '/no-hotel.png'"
class="image"
/>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
name: "NoGoodData", name: 'NoGoodData',
props: {
type: {
type: String,
default: 'good'
}
},
data: function() { data: function() {
return { return {
webUrl: this.$VUE_APP_RESOURCES_URL webUrl: this.$VUE_APP_RESOURCES_URL
+33 -14
View File
@@ -32,7 +32,10 @@
</view> </view>
</view> </view>
</view> </view>
<view class="nav acea-row row-middle"> <view
v-if="searchType === 'good'"
class="nav acea-row row-middle"
>
<view class="item"> <view class="item">
<text class="tag"> <text class="tag">
综合 综合
@@ -52,10 +55,6 @@
</view> </view>
</view> </view>
<view v-if="searchType === 'good'"> <view v-if="searchType === 'good'">
<goo-skeleton
v-if="loading"
:show-avatar="false"
/>
<view class="list acea-row row-between-wrapper"> <view class="list acea-row row-between-wrapper">
<view <view
v-for="(item, listIndex) in list" v-for="(item, listIndex) in list"
@@ -82,6 +81,10 @@
</view> </view>
</view> </view>
</view> </view>
<goo-skeleton
v-if="loading"
:show-avatar="false"
/>
<u-loadmore <u-loadmore
v-if="loadend && list.length > 0" v-if="loadend && list.length > 0"
:line="true" :line="true"
@@ -91,9 +94,6 @@
</view> </view>
<view v-else> <view v-else>
<view class="hotel-wrap"> <view class="hotel-wrap">
<goo-skeleton
v-if="loading"
/>
<view class="list"> <view class="list">
<view <view
v-for="(item, index) in list" v-for="(item, index) in list"
@@ -136,6 +136,9 @@
</view> </view>
</view> </view>
</view> </view>
<goo-skeleton
v-if="loading"
/>
<u-loadmore <u-loadmore
v-if="loadend && list.length > 0" v-if="loadend && list.length > 0"
:line="true" :line="true"
@@ -144,7 +147,10 @@
/> />
</view> </view>
</view> </view>
<no-good-data v-if="list.length === 0 && query.page > 1" /> <no-good-data
v-if="list.length === 0 && query.page > 1"
:type="searchType"
/>
</view> </view>
</template> </template>
@@ -280,6 +286,15 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.productList {
min-height: 100vh;
background-color: #fff;
.list {
margin: 0;
padding: 172rpx 20rpx 0 20rpx;
background-color: #f7f7f7;
}
}
.noCommodity { .noCommodity {
display: flex; display: flex;
justify-content: center; justify-content: center;
@@ -340,12 +355,12 @@ export default {
top: 80rpx; top: 80rpx;
left: 23rpx; left: 23rpx;
z-index: 5; z-index: 5;
width: 90px; width: 70px;
padding: 10rpx; padding: 10rpx 20rpx;
border-radius: 4px; border-radius: 4px;
background-color: #fff; background-color: #fff;
.item + .item { .item + .item {
border-top: 1px solid #707070; border-top: 1px solid #eee;
} }
.item { .item {
text-align: center; text-align: center;
@@ -406,11 +421,15 @@ export default {
} }
} }
.hotel-wrap { .hotel-wrap {
padding: 23rpx 0; padding: 0 0 23rpx 0;
.list {
padding-top: 86rpx;
background-color: #f7f7f7;
}
} }
.hotel-item { .hotel-item {
padding: 15rpx; padding: 15rpx;
margin: 0 0 23rpx; margin: 23rpx 0 0 0;
border-radius: 4px; border-radius: 4px;
background-color: #fff; background-color: #fff;
box-shadow: 0px 3px 6px rgba(0,0,0,0.16); box-shadow: 0px 3px 6px rgba(0,0,0,0.16);