|
@@ -107,7 +107,7 @@
|
|
|
<view class="spacedance" v-for="(item, index) in classify" :key="index" @click.stop="confirm(item)">{{ item.gc_name }}</view>
|
|
|
</view>
|
|
|
<!-- 商品列表 -->
|
|
|
- <shopList :goodId="goodId" :productList="goods_list" />
|
|
|
+ <shopList :store_id="store_id" :productList="goods_list" />
|
|
|
<view v-if="isDetail == 1" class="fontcenter">加载中...</view>
|
|
|
<view v-if="isDetail == 2" class="fontcenter">暂无更多商品</view>
|
|
|
</view>
|
|
@@ -184,7 +184,7 @@ export default {
|
|
|
hotelitle: '', // 酒店名称
|
|
|
istopclick: 0,
|
|
|
page: 1,
|
|
|
- goodId: 0,
|
|
|
+ store_id: 0,//酒店ID
|
|
|
page_size: 10,
|
|
|
gc_id_1: '', // 一级分类id
|
|
|
gc_id_2: '', // 二级分类id
|
|
@@ -234,7 +234,7 @@ export default {
|
|
|
withShareTicket: true
|
|
|
});
|
|
|
let that = this;
|
|
|
- let id = this.goodId; // 酒店id
|
|
|
+ let id = this.store_id; // 酒店id
|
|
|
if (res.from === 'button') {
|
|
|
// 来自页面内分享按钮
|
|
|
}
|
|
@@ -251,9 +251,9 @@ export default {
|
|
|
var str = decodeURIComponent(options.q);
|
|
|
var num = str.indexOf('=');
|
|
|
var id = str.slice(num + 1);
|
|
|
- this.goodId = id; // 商品和酒店Id
|
|
|
+ this.store_id = id; // 商品和酒店Id
|
|
|
} else {
|
|
|
- this.goodId = options.id; // 商品和酒店Id
|
|
|
+ this.store_id = options.id; // 商品和酒店Id
|
|
|
}
|
|
|
|
|
|
if (options.isfx) {
|
|
@@ -303,14 +303,14 @@ export default {
|
|
|
this.$msg(this.hoteldetail.feedback_msg);
|
|
|
return;
|
|
|
}
|
|
|
- let store_id = this.goodId;
|
|
|
+ let store_id = this.store_id;
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/index/feedback?store_id=${store_id}`
|
|
|
});
|
|
|
},
|
|
|
// 搜说
|
|
|
gotosearch() {
|
|
|
- let store_id = this.goodId;
|
|
|
+ let store_id = this.store_id;
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/index/hotelsearch?store_id=${store_id}`
|
|
|
});
|
|
@@ -323,7 +323,7 @@ export default {
|
|
|
method: 'post',
|
|
|
data: {
|
|
|
type: 'store',
|
|
|
- fav_id: this.goodId
|
|
|
+ fav_id: this.store_id
|
|
|
},
|
|
|
success: res => {
|
|
|
if (res.data.data.action == 'add') {
|
|
@@ -391,7 +391,7 @@ export default {
|
|
|
},
|
|
|
godetail(item) {
|
|
|
let id = item.gc_id; // 一级菜单id
|
|
|
- let store_id = this.goodId;
|
|
|
+ let store_id = this.store_id;
|
|
|
let gc_name = item.gc_name;
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/index/hoteldetail?id=${id}&gc_name=${gc_name}&store_id=${store_id}`
|
|
@@ -404,7 +404,7 @@ export default {
|
|
|
url: '/v2/entry/storeGoods',
|
|
|
method: 'get',
|
|
|
data: {
|
|
|
- store_id: this.goodId,
|
|
|
+ store_id: this.store_id,
|
|
|
page: this.page,
|
|
|
goods_commonid: this.goods_commonid, // 上新排序
|
|
|
goods_price: this.goods_price,
|
|
@@ -433,7 +433,7 @@ export default {
|
|
|
url: '/v1/entry/storeCategory',
|
|
|
method: 'get',
|
|
|
data: {
|
|
|
- store_id: this.goodId
|
|
|
+ store_id: this.store_id
|
|
|
},
|
|
|
success: function(res) {
|
|
|
let { category_list } = res.data.data;
|
|
@@ -475,7 +475,7 @@ export default {
|
|
|
data: {
|
|
|
page: this.page,
|
|
|
page_size: 10,
|
|
|
- store_id: this.goodId
|
|
|
+ store_id: this.store_id
|
|
|
},
|
|
|
success: res => {
|
|
|
this.feedback_list = res.data.data.feedback_list;
|
|
@@ -495,7 +495,7 @@ export default {
|
|
|
url: '/v1/store/info',
|
|
|
method: 'get',
|
|
|
data: {
|
|
|
- store_id: this.goodId
|
|
|
+ store_id: this.store_id
|
|
|
},
|
|
|
success: res => {
|
|
|
|