...
|
...
|
@@ -28,12 +28,8 @@ |
|
|
<show-box>
|
|
|
<ul class="service">
|
|
|
<li><i class="icon icon-real"></i>100%品牌正品</li>
|
|
|
<li v-if="intro.supportRefundExchange" class="return">
|
|
|
<i class="icon icon-seven"></i>支持7天无理由退换货
|
|
|
</li>
|
|
|
<li class="return">
|
|
|
<i class="icon icon-unsupport-seven"></i>不支持7天无理由退换货
|
|
|
</li>
|
|
|
<li class="return" v-if="intro.supportRefundExchange"><i class="icon icon-seven"></i>支持7天无理由退换货</li>
|
|
|
<li class="return"><i class="icon icon-unsupport-seven"></i>不支持7天无理由退换货</li>
|
|
|
<li><i class="icon icon-onlineservice"></i>便捷在线客服</li>
|
|
|
</ul>
|
|
|
</show-box>
|
...
|
...
|
@@ -180,6 +176,10 @@ |
|
|
|
|
|
</show-box>
|
|
|
|
|
|
<show-box v-if="showPrefer" class="prefer-detail" :is-last="true">
|
|
|
<prefer-list :title="preferTitle" :list="preferList"></prefer-list>
|
|
|
</show-box>
|
|
|
|
|
|
<div class="control-box" v-if="isApp && isReady">
|
|
|
<button class="button control-button">
|
|
|
<span @click="yoho.goShopingCart()" style="position: relative;">
|
...
|
...
|
@@ -261,23 +261,20 @@ |
|
|
font-size: 0;
|
|
|
li {
|
|
|
font-size: 24px;
|
|
|
width: 200px;
|
|
|
line-height: 40px;
|
|
|
width: 195px;
|
|
|
line-height: 22px;
|
|
|
text-align: center;
|
|
|
display: inline-block;
|
|
|
|
|
|
&.quality {
|
|
|
i.icon {
|
|
|
margin-right: 6px;
|
|
|
}
|
|
|
|
|
|
&.return {
|
|
|
width: 290px;
|
|
|
width: 300px;
|
|
|
border-left: 1px solid #eee;
|
|
|
border-right: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
&.cs {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -490,7 +487,10 @@ |
|
|
},
|
|
|
isApp: yoho.isApp,
|
|
|
isSoldOut: false,
|
|
|
isReady: false
|
|
|
isReady: false,
|
|
|
showPrefer: true, // TODO 为你优选大数据暂未实现,本期暂时屏蔽
|
|
|
preferTitle: '为你优选',
|
|
|
preferList: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
...
|
...
|
@@ -501,6 +501,7 @@ |
|
|
showBox: require('./show-box.vue'),
|
|
|
topNav: require('./top-nav.vue'),
|
|
|
shareBottom: require('component/tool/share-bottom.vue'),
|
|
|
preferList: require('component/product/preferList.vue')
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
...
|
...
|
@@ -598,6 +599,29 @@ |
|
|
$.get(`/product/refundExchange/${data.product_skn}`).then(sd => {
|
|
|
this.intro['supportRefundExchange'] = sd[data.product_skn] === "Y";
|
|
|
});
|
|
|
|
|
|
if(self.showPrefer) {
|
|
|
$.get('/product/prefer').then(list => {
|
|
|
console.log(list.length)
|
|
|
self.preferList = list || [
|
|
|
{
|
|
|
goodsUrl: '//m.yohoblk.com',
|
|
|
default_images: '//img11.static.yhbimg.com/goodsimg/2016/12/26/17/01a77e16890169159034327b40ed95e0d9.png?imageMogr2/thumbnail/750x1000/extent/750x1000/background/d2hpdGU=/position/center/quality/80/interlace/1',
|
|
|
product_name: '测试产品fd测试产品fdsssfdssddfsdfsdfsssfdssddfsdfsdf',
|
|
|
market_price: '100',
|
|
|
sales_price: '50'
|
|
|
|
|
|
},{
|
|
|
goodsUrl: '//m.yohoblk.com',
|
|
|
default_images: '//img11.static.yhbimg.com/goodsimg/2016/12/26/17/01a77e16890169159034327b40ed95e0d9.png?imageMogr2/thumbnail/750x1000/extent/750x1000/background/d2hpdGU=/position/center/quality/80/interlace/1',
|
|
|
product_name: '测试产品测试产品fdsssfdssddfsdfsdffdsssfdssddfsdfsdf测试产品fdsssfdssddfsdfsdf',
|
|
|
market_price: '100',
|
|
|
sales_price: '50'
|
|
|
|
|
|
}
|
|
|
];
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
})
|
...
|
...
|
|