From 3a7feb1c3945051c9380e5b81c76583777e6dfaa Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 15 Apr 2024 16:22:12 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E5=BA=97=E9=93=BA):[#1107]=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=B2=A1=E6=9C=89=E5=95=86=E5=93=81=E7=9A=84=E5=BA=97?= =?UTF-8?q?=E9=93=BA=E4=BC=81=E4=B8=9A=E6=96=87=E5=8C=96=E5=9B=BE=E7=89=87?= =?UTF-8?q?=EF=BC=8C=E8=BF=94=E5=9B=9E=E4=BC=9A=E8=87=AA=E5=8A=A8=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E5=88=B0=E6=9C=80=E6=96=B0=E8=B5=84=E8=AE=AF=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesInn/inn/innHome.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pagesInn/inn/innHome.vue b/pagesInn/inn/innHome.vue index 0a69dc1..25f5907 100644 --- a/pagesInn/inn/innHome.vue +++ b/pagesInn/inn/innHome.vue @@ -685,19 +685,21 @@ export default { reqFn(_this.id).then((res) => { const { success, data } = res if (success) { - _this.isLoad = true _this.inn = data _this.isLike = data.zanVo !== null _this.isFavorite = data.hasFavorite _this.favoriteCount = data.favoriteCount _this.inn.latitude = _this.inn.latitude ? parseFloat(_this.inn.latitude) : 24.993587 _this.inn.longitude = _this.inn.longitude ? parseFloat(_this.inn.longitude) : 102.779656 - // 该店铺无商品则不显示“精选商品” - if (data.hasProduct <= 0) { - _this.activeIndex = 1 - _this.tabList[0].isShow = false - } else { - _this.fetchGoods() + // fix bug#1107 + if (!_this.isLoad) { + // 该店铺无商品则不显示“精选商品” + if (data.hasProduct <= 0) { + _this.activeIndex = 1 + _this.tabList[0].isShow = false + } else { + _this.fetchGoods() + } } // coverType: 1-图片,2-视频 if (data.coverType === 2) { @@ -736,6 +738,7 @@ export default { }) */ } + _this.isLoad = true } }).finally(() => { uni.stopPullDownRefresh() @@ -1027,7 +1030,7 @@ export default { z-index: 1; .bg-color { position: absolute; - top: 0; + top: -5px; left: 0; right: 0; z-index: 1;