Fix:3583 【商城小程序】店铺主页—有商品的店铺切换至无商品的店铺时,详情页中会显示商品项;无商品的店铺切换至有商品的店铺时,店铺详情页中不显示商品项

This commit is contained in:
linxi
2025-04-06 00:06:14 +08:00
committed by lifizer
parent b73e9ee36b
commit 16742b3c23
+4 -1
View File
@@ -611,13 +611,14 @@ export default {
methods: { methods: {
goHome(e) { goHome(e) {
this.id = e.id this.id = e.id
this.isLoad = false
if(this.activeIndex !==1) { if(this.activeIndex !==1) {
this.activeInde = 1 this.activeInde = 1
} else { } else {
this.fetchInnInfoList() this.fetchInnInfoList()
} }
this.fetchInnDetail() this.fetchInnDetail()
this.fetchGoods(this.id) // this.fetchGoods(this.id)
}, },
changeHome() { changeHome() {
uni.showLoading() uni.showLoading()
@@ -852,6 +853,8 @@ export default {
_this.activeIndex = 1 _this.activeIndex = 1
_this.tabList[0].isShow = false _this.tabList[0].isShow = false
} else { } else {
_this.activeIndex = 0
this.tabList[0].isShow = true
_this.fetchGoods() _this.fetchGoods()
} }
} }