...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
<div>
|
|
|
<top-nav v-if="isApp"></top-nav>
|
|
|
<show-box :is-first="true" class="carousel">
|
|
|
<image-swiper :goods="entity.goods_list"></image-swiper>
|
|
|
<image-swiper :goods="entity.goods_list" ref="imageSwiper"></image-swiper>
|
|
|
</show-box>
|
|
|
<show-box :zero-top-margin="true" class="action">
|
|
|
<operation-bar :entity="entity" :brand="brand" :share-title="entity.product_name"
|
...
|
...
|
@@ -374,6 +374,11 @@ |
|
|
$.get('/product/mightLike', {skn, shopId}).then(res => {
|
|
|
this.preferList = res.data || [];
|
|
|
});
|
|
|
},
|
|
|
|
|
|
dataLoaded() {
|
|
|
this.$refs.imageSwiper.show();
|
|
|
document.querySelector('#ssr').remove();
|
|
|
}
|
|
|
},
|
|
|
created() {
|
...
|
...
|
@@ -391,6 +396,7 @@ |
|
|
return;
|
|
|
}
|
|
|
this.entity = result.data;
|
|
|
this.dataLoaded();
|
|
|
this.brand = result.data.brand_info;
|
|
|
if (this.entity.storage === 0 || this.entity.status === 0) {
|
|
|
this.isSoldOut = true;
|
...
|
...
|
@@ -431,7 +437,7 @@ |
|
|
|
|
|
// 是否支持7天无理由退换货
|
|
|
$.get(`/product/refundExchange/${data.product_skn}`).then(sd => {
|
|
|
let support = sd.data[data.product_skn] === 'N' ? 'Y' : 'N';
|
|
|
let support = data && sd.data[data.product_skn] === 'N' ? 'Y' : 'N';
|
|
|
|
|
|
this.$set(this.intro, 'supportRefundExchange', support);
|
|
|
});
|
...
|
...
|
|