Fix(店铺):[#1107]查看没有商品的店铺企业文化图片,返回会自动刷新到最新资讯页

This commit is contained in:
lifizer
2024-04-15 16:22:12 +08:00
parent 1284affc10
commit 3a7feb1c39
+11 -8
View File
@@ -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;