diff --git a/pagesInn/inn/innHome.vue b/pagesInn/inn/innHome.vue index 765dad2..11437cc 100644 --- a/pagesInn/inn/innHome.vue +++ b/pagesInn/inn/innHome.vue @@ -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 => {