...
|
...
|
@@ -62,6 +62,9 @@ |
|
|
<img class="ref-img" v-lazy="prdDetailTip"/>
|
|
|
</div>
|
|
|
<img class="ref-img" v-lazy="prdDetailImage" />
|
|
|
<div class="recommend" v-if="recommend"><h2>相关推荐</h2>
|
|
|
<product-list :list="recommend" />
|
|
|
</div>
|
|
|
</cube-scroll>
|
|
|
</div>
|
|
|
<div class="footer">
|
...
|
...
|
@@ -88,6 +91,7 @@ import { createNamespacedHelpers } from 'vuex'; |
|
|
|
|
|
import ImgSize from '../../components/img-size';
|
|
|
import { getImgUrl } from '../../common/utils';
|
|
|
import ProductList from '../list/components/productList';
|
|
|
|
|
|
import ActivityListSheet from './components/activity-list-sheet';
|
|
|
import prdDetailTip from '../../statics/image/product/prdDetailTip.png';
|
...
|
...
|
@@ -106,6 +110,7 @@ export default { |
|
|
SizeRequestSheet,
|
|
|
BuySheet,
|
|
|
ImgSize,
|
|
|
ProductList,
|
|
|
'cube-button': Button,
|
|
|
'cube-slide': Slide,
|
|
|
'cube-slide-item': Slide.Item,
|
...
|
...
|
@@ -130,7 +135,7 @@ export default { |
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['productDetail', 'imageList', 'resource', 'activity']),
|
|
|
...mapGetters(['productDetail', 'imageList', 'resource', 'activity', 'recommend']),
|
|
|
productDec() {
|
|
|
const goods = get(this.productDetail, 'goods_list[0]', {});
|
|
|
|
...
|
...
|
@@ -184,10 +189,10 @@ export default { |
|
|
time: 0,
|
|
|
});
|
|
|
},
|
|
|
loadData(id, loading) {
|
|
|
loadData(productId = this.productId, loading) {
|
|
|
loading && loading.show();
|
|
|
|
|
|
this.fetchProductInfo({productId: this.productId}).then(() => {
|
|
|
return this.fetchProductInfo({productId}).then(() => {
|
|
|
loading && loading.hide();
|
|
|
}).catch(() => {
|
|
|
loading && loading.hide();
|
...
|
...
|
@@ -288,7 +293,7 @@ export default { |
|
|
}
|
|
|
|
|
|
.banner-title {
|
|
|
font-family: PingFang-SC-Light;
|
|
|
/* font-family: PingFang-SC-Light; */
|
|
|
border: 1px solid #000;
|
|
|
font-size: 30px;
|
|
|
line-height: 100px;
|
...
|
...
|
@@ -344,14 +349,14 @@ export default { |
|
|
}
|
|
|
|
|
|
&-name {
|
|
|
font-family: PingFang-SC-Regular;
|
|
|
/* font-family: PingFang-SC-Regular; */
|
|
|
font-size: 28px;
|
|
|
color: #999;
|
|
|
letter-spacing: 0;
|
|
|
}
|
|
|
|
|
|
&-value {
|
|
|
font-family: SFProText-Medium;
|
|
|
/* font-family: SFProText-Medium; */
|
|
|
font-size: 28px;
|
|
|
color: #000;
|
|
|
letter-spacing: 0;
|
...
|
...
|
@@ -378,6 +383,7 @@ export default { |
|
|
flex-basis: auto;
|
|
|
border-top: 1px solid $primary-color;
|
|
|
line-height: 60px;
|
|
|
font-size: 28px;
|
|
|
}
|
|
|
|
|
|
.sell {
|
...
|
...
|
@@ -397,4 +403,13 @@ export default { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.recommend {
|
|
|
h2 {
|
|
|
font-size: 40px;
|
|
|
line-height: 56px;
|
|
|
padding: 32px 0;
|
|
|
text-align: center;
|
|
|
}
|
|
|
}
|
|
|
</style> |
...
|
...
|
|