Fix:3583 【商城小程序】店铺主页—有商品的店铺切换至无商品的店铺时,详情页中会显示商品项;无商品的店铺切换至有商品的店铺时,店铺详情页中不显示商品项
This commit is contained in:
@@ -617,6 +617,7 @@ export default {
|
|||||||
this.fetchInnInfoList()
|
this.fetchInnInfoList()
|
||||||
}
|
}
|
||||||
this.fetchInnDetail()
|
this.fetchInnDetail()
|
||||||
|
this.fetchGoods(this.id)
|
||||||
},
|
},
|
||||||
changeHome() {
|
changeHome() {
|
||||||
uni.showLoading()
|
uni.showLoading()
|
||||||
@@ -931,11 +932,11 @@ export default {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fetchGoods() {
|
fetchGoods(id) {
|
||||||
this.isLoadGoodListoSuccess = false
|
this.isLoadGoodListoSuccess = false
|
||||||
this.goodsList = []
|
this.goodsList = []
|
||||||
getHotelGoodList({
|
getHotelGoodList({
|
||||||
id: this.inn.id,
|
id: id || this.inn.id,
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 12
|
limit: 12
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user