From 08a1c20ac0525b911d8b441f79201c4934b43900 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Fri, 22 Mar 2024 21:15:53 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E5=BA=97=E9=93=BA):[#998,=20#997]=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesInn/inn/innHome.vue | 315 ++++++++++++++++++-------------- pagesInn/inn/innProfileEdit.vue | 4 +- 2 files changed, 177 insertions(+), 142 deletions(-) diff --git a/pagesInn/inn/innHome.vue b/pagesInn/inn/innHome.vue index 76fc43e..a5a8493 100644 --- a/pagesInn/inn/innHome.vue +++ b/pagesInn/inn/innHome.vue @@ -149,159 +149,169 @@ - - - - - {{ item.storeName }} - + + + + - ¥{{ item.price }} + + {{ item.storeName }} + + + ¥{{ item.price }} + + + + + {{ item.sales }}人已购买 + - - - {{ item.sales }}人已购买 + + + 查看所有商品 + + - - - - 查看所有商品 - + + 店主还没有上传内容哦~ + - - - + + + - - {{ item.name }} - - - {{ item.intro }} - - - - - - - - - - - - {{ item.createdTime ? item.createdTime.replace(/-/g, '.').substr(0, 10) : '' }} - - - - - {{ item.pv }} + + + {{ item.name }} - - - - + + {{ item.intro }} - - + + + + + 店主还没有上传内容哦~ + + + + 店主还没有上传内容哦~ + - + + + + + 店主还没有上传内容哦~ + @@ -447,7 +469,9 @@ export default { { text: '最新资讯', value: 1, isShow: true }, { text: '企业文化', value: 2, isShow: true }, { text: '商家资质', value: 3, isShow: true } - ] + ], + isLoadGoodListoSuccess: false, + isLoadInfoListSuccess: false } }, // 必须在页面加 onPageScroll(e){} ,才能滑动显示背景 @@ -630,6 +654,7 @@ export default { if (_this.loading) { return } + _this.isLoadInfoListSuccess = false _this.loading = true _this.infoArray = [] getHotelNewsList({ @@ -648,6 +673,7 @@ export default { })) }).finally(() => { _this.loading = false + _this.isLoadInfoListSuccess = true uni.stopPullDownRefresh() }) }, @@ -754,6 +780,7 @@ export default { } }, fetchGoods() { + this.isLoadGoodListoSuccess = false getHotelGoodList({ id: this.inn.id, page: 1, @@ -768,6 +795,8 @@ export default { } } } + }).finally(() => { + this.isLoadGoodListoSuccess = true }) }, call: function () { @@ -1329,4 +1358,10 @@ export default { } } } +.tab-no-data { + text-align: center; + font-size: 32rpx; + color: #999; + line-height: 80rpx; +} diff --git a/pagesInn/inn/innProfileEdit.vue b/pagesInn/inn/innProfileEdit.vue index 5a986f6..4364c17 100644 --- a/pagesInn/inn/innProfileEdit.vue +++ b/pagesInn/inn/innProfileEdit.vue @@ -99,7 +99,7 @@ - +