|
@@ -19,12 +19,12 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<hxj-scroll-list :itemWidth="'168rpx'" :itemHeight="'168rpx'" :list="list"></hxj-scroll-list>
|
|
<hxj-scroll-list :itemWidth="'168rpx'" :itemHeight="'168rpx'" :list="list"></hxj-scroll-list>
|
|
- <hxj-bd-info :theme="getTheme" :name="compositionList.name" :price="compositionList.price" :original-price="compositionList.price"
|
|
|
|
- :sales="Number(compositionList.sale_num)+Number(compositionList.virtual_sale_num)" :tag="compositionList.tag" :measure="compositionList.measure" :house_layout="compositionList.exampleHouse.name" :goods-id="compositionList.id" :extra-quick-share="extra_quick_share"
|
|
|
|
|
|
+ <hxj-bd-info :theme="getTheme" :name="compositionList.name" :discount_amount="compositionList.discount_amount" :original-price="compositionList.price"
|
|
|
|
+ :sales="Number(compositionList.sale_num)+Number(compositionList.virtual_sale_num)" :tag="compositionList.tag" :measure="compositionList.measure" :house_layout="compositionList.exampleHouse.name" :goods-id="compositionList.id" :coupons="goods_coupon_center" :extra-quick-share="extra_quick_share"
|
|
:app-share-pic="app_share_pic ? app_share_pic : goods.pic_url[0].pic_url"
|
|
:app-share-pic="app_share_pic ? app_share_pic : goods.pic_url[0].pic_url"
|
|
:app-share-title="compositionList.name"
|
|
:app-share-title="compositionList.name"
|
|
- :poster-config="poster_config + `&goods_id=` + compositionList.id"
|
|
|
|
- :poster-generate="poster_generate + `&goods_id=` + compositionList.id" :has-poster-nav="true" :goods="goods"
|
|
|
|
|
|
+ :poster-config="poster_config + `&composition_id=` + compositionList.id"
|
|
|
|
+ :poster-generate="poster_generate + `&composition_id=` + compositionList.id" :has-poster-nav="true" :goods="goods"
|
|
@share="hShareAppMessage" @quickShare="quickShare" @receive="receive">
|
|
@share="hShareAppMessage" @quickShare="quickShare" @receive="receive">
|
|
</hxj-bd-info>
|
|
</hxj-bd-info>
|
|
<view class="hxj-goods-list" :style="{ height: isOpen ? 'auto' : '270rpx' }">
|
|
<view class="hxj-goods-list" :style="{ height: isOpen ? 'auto' : '270rpx' }">
|
|
@@ -246,57 +246,57 @@
|
|
sendPath: '',
|
|
sendPath: '',
|
|
poster_config: this.$api.goods.poster,
|
|
poster_config: this.$api.goods.poster,
|
|
poster_generate: this.$api.poster.goods_new,
|
|
poster_generate: this.$api.poster.goods_new,
|
|
- // 限时抢购
|
|
|
|
- flash_sale: null,
|
|
|
|
- checked: null,
|
|
|
|
- // 商品服务
|
|
|
|
- services: null,
|
|
|
|
- // 商品详情
|
|
|
|
- detail: null,
|
|
|
|
- // 商品ID
|
|
|
|
- goodsId: null,
|
|
|
|
- // 套餐组合
|
|
|
|
- composition: null,
|
|
|
|
- autoplay: true,
|
|
|
|
- full_reduce: null,
|
|
|
|
- goods_marketing_award: null,
|
|
|
|
- express: null,
|
|
|
|
- goods_marketing: null,
|
|
|
|
- exchangeStatus: null,
|
|
|
|
- exchange: null,
|
|
|
|
|
|
+ // // 限时抢购
|
|
|
|
+ // flash_sale: null,
|
|
|
|
+ // checked: null,
|
|
|
|
+ // // 商品服务
|
|
|
|
+ // services: null,
|
|
|
|
+ // // 商品详情
|
|
|
|
+ // detail: null,
|
|
|
|
+ // // 商品ID
|
|
|
|
+ // goodsId: null,
|
|
|
|
+ // // 套餐组合
|
|
|
|
+ // composition: null,
|
|
|
|
+ // autoplay: true,
|
|
|
|
+ // full_reduce: null,
|
|
|
|
+ // goods_marketing_award: null,
|
|
|
|
+ // express: null,
|
|
|
|
+ // goods_marketing: null,
|
|
|
|
+ // exchangeStatus: null,
|
|
|
|
+ // exchange: null,
|
|
|
|
|
|
- price: null,
|
|
|
|
- level_show: null,
|
|
|
|
- sales: null,
|
|
|
|
- unit: null,
|
|
|
|
- is_sales: null,
|
|
|
|
- extra_quick_share: null,
|
|
|
|
- price_max: null,
|
|
|
|
- price_min: null,
|
|
|
|
- price_member_max: null,
|
|
|
|
- price_member_min: null,
|
|
|
|
- original_price: null,
|
|
|
|
- subtitle: null,
|
|
|
|
- is_negotiable: null,
|
|
|
|
- name: null,
|
|
|
|
- app_share_pic: null,
|
|
|
|
- app_share_title: null,
|
|
|
|
- goodsType: null,
|
|
|
|
- favorite: null,
|
|
|
|
|
|
+ // price: null,
|
|
|
|
+ // level_show: null,
|
|
|
|
+ // sales: null,
|
|
|
|
+ // unit: null,
|
|
|
|
+ // is_sales: null,
|
|
|
|
+ // extra_quick_share: null,
|
|
|
|
+ // price_max: null,
|
|
|
|
+ // price_min: null,
|
|
|
|
+ // price_member_max: null,
|
|
|
|
+ // price_member_min: null,
|
|
|
|
+ // original_price: null,
|
|
|
|
+ // subtitle: null,
|
|
|
|
+ // is_negotiable: null,
|
|
|
|
+ // name: null,
|
|
|
|
+ // app_share_pic: null,
|
|
|
|
+ // app_share_title: null,
|
|
|
|
+ // goodsType: null,
|
|
|
|
+ // favorite: null,
|
|
goods_coupon_center: null,
|
|
goods_coupon_center: null,
|
|
- guarantee_title: null,
|
|
|
|
- guarantee_pic: null,
|
|
|
|
- param_content: null,
|
|
|
|
- param_name: null,
|
|
|
|
- attr_groups: null,
|
|
|
|
- goods_num: null,
|
|
|
|
- good_stock: null,
|
|
|
|
- min_number: null,
|
|
|
|
- limit_buy: null,
|
|
|
|
- disable: 'disable',
|
|
|
|
- sell_time: 0,
|
|
|
|
- template_message_list: [],
|
|
|
|
- is_finish_sell: false
|
|
|
|
|
|
+ // guarantee_title: null,
|
|
|
|
+ // guarantee_pic: null,
|
|
|
|
+ // param_content: null,
|
|
|
|
+ // param_name: null,
|
|
|
|
+ // attr_groups: null,
|
|
|
|
+ // goods_num: null,
|
|
|
|
+ // good_stock: null,
|
|
|
|
+ // min_number: null,
|
|
|
|
+ // limit_buy: null,
|
|
|
|
+ // disable: 'disable',
|
|
|
|
+ // sell_time: 0,
|
|
|
|
+ // template_message_list: [],
|
|
|
|
+ // is_finish_sell: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -516,6 +516,7 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
loadData(id, options) {
|
|
loadData(id, options) {
|
|
|
|
+ this.$showLoading();
|
|
this.$request({
|
|
this.$request({
|
|
url: this.$api.composition.info,
|
|
url: this.$api.composition.info,
|
|
data: {
|
|
data: {
|
|
@@ -533,13 +534,26 @@
|
|
this.list.push({image,link:`/pages/goods/goods?id=${id}`,name,goods_num})
|
|
this.list.push({image,link:`/pages/goods/goods?id=${id}`,name,goods_num})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ this.$hideLoading();
|
|
|
|
+ })
|
|
|
|
+ this.$request({
|
|
|
|
+ url: this.$api.coupon.list,
|
|
|
|
+ data: {
|
|
|
|
+ composition_id: id,
|
|
|
|
+ limit:100,
|
|
|
|
+ },
|
|
|
|
+ method: 'get'
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if(res.code===0){
|
|
|
|
+ this.goods_coupon_center=res.data.list
|
|
|
|
+ }
|
|
})
|
|
})
|
|
// return new Promise((resolve, reject) => {
|
|
// return new Promise((resolve, reject) => {
|
|
// this.$showLoading();
|
|
// this.$showLoading();
|
|
// this.$request({
|
|
// this.$request({
|
|
// url: this.$api.goods.detail,
|
|
// url: this.$api.goods.detail,
|
|
// data: {
|
|
// data: {
|
|
- // id: id,
|
|
|
|
|
|
+ // id: 18,
|
|
// plugin: options && options.exchange ? 'exchange' : 'mall'
|
|
// plugin: options && options.exchange ? 'exchange' : 'mall'
|
|
// }
|
|
// }
|
|
// })
|
|
// })
|