diff --git a/pagesInn/inn/innHome.vue b/pagesInn/inn/innHome.vue index 6878809..56b4331 100644 --- a/pagesInn/inn/innHome.vue +++ b/pagesInn/inn/innHome.vue @@ -149,147 +149,157 @@ - - - - - {{ 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.zan }} + + {{ item.intro }} - - + + + + + + {{ item.createdTime ? item.createdTime.replace(/-/g, '.').substr(0, 10) : '' }} + + + + + {{ item.pv }} + + + + {{ item.zan }} + + + - - 置顶动态 - - - - 取消置顶 - - - - 删除动态 + + + 置顶动态 + + + + 取消置顶 + + + + 删除动态 + @@ -297,7 +307,11 @@ + + 店主还没有上传内容哦~ + + + + 店主还没有上传内容哦~ + - + + + + + 店主还没有上传内容哦~ + @@ -434,7 +456,9 @@ export default { { text: '最新资讯', value: 1, isShow: true }, { text: '企业文化', value: 2, isShow: true }, { text: '商家资质', value: 3, isShow: true } - ] + ], + isLoadGoodListoSuccess: false, + isLoadInfoListSuccess: false } }, // 必须在页面加 onPageScroll(e){} ,才能滑动显示背景 @@ -617,6 +641,7 @@ export default { if (_this.loading) { return } + _this.isLoadInfoListSuccess = false _this.loading = true _this.infoArray = [] getHotelNewsList({ @@ -635,6 +660,7 @@ export default { })) }).finally(() => { _this.loading = false + _this.isLoadInfoListSuccess = true uni.stopPullDownRefresh() }) }, @@ -660,6 +686,7 @@ export default { if (data.hasProduct <= 0) { _this.activeIndex = 1 _this.tabList[0].isShow = false + _this.isLoadInfoListSuccess = true } else { _this.fetchGoods() } @@ -741,6 +768,7 @@ export default { } }, fetchGoods() { + this.isLoadGoodListoSuccess = false getHotelGoodList({ id: this.inn.id, page: 1, @@ -755,6 +783,8 @@ export default { } } } + }).finally(() => { + this.isLoadGoodListoSuccess = true }) }, call: function () { @@ -1292,4 +1322,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 @@ - +