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

This commit is contained in:
modendeveloper
2025-04-06 00:06:00 +08:00
committed by lifizer
parent 2e838088db
commit eb6865299c
+3 -2
View File
@@ -617,6 +617,7 @@ export default {
this.fetchInnInfoList()
}
this.fetchInnDetail()
this.fetchGoods(this.id)
},
changeHome() {
uni.showLoading()
@@ -931,11 +932,11 @@ export default {
break
}
},
fetchGoods() {
fetchGoods(id) {
this.isLoadGoodListoSuccess = false
this.goodsList = []
getHotelGoodList({
id: this.inn.id,
id: id || this.inn.id,
page: 1,
limit: 12
}).then(res => {