Authored by 李奇

是否支持退换货逻辑修正优化

... ... @@ -28,8 +28,8 @@
<show-box>
<ul class="service">
<li><i class="icon icon-real"></i>100%品牌正品</li>
<li class="return" v-if="supportRefundExchange === 'Y'"><i class="icon icon-seven"></i>支持7天无理由退换货</li>
<li class="return" v-else><i class="icon icon-unsupport-seven"></i>不支持7天无理由退换货</li>
<li class="return" v-if="intro.supportRefundExchange === 'N'"><i class="icon icon-unsupport-seven"></i>不支持7天无理由退换货</li>
<li class="return" v-else><i class="icon icon-seven"></i>支持7天无理由退换货</li>
<li><i class="icon icon-onlineservice"></i>便捷在线客服</li>
</ul>
</show-box>
... ... @@ -512,7 +512,6 @@
isSoldOut: false,
isReady: false,
showPrefer: false, // TODO 为你优选大数据暂未实现,本期暂时屏蔽
supportRefundExchange: "Y",
preferTitle: '为你优选',
preferList: []
};
... ... @@ -621,7 +620,8 @@
// 是否支持7天无理由退换货
$.get(`/product/refundExchange/${data.product_skn}`).then(sd => {
this.supportRefundExchange = sd.data[data.product_skn] === "N" ? "Y" : "N";
let support = sd.data[data.product_skn] === "N" ? "Y" : "N";
this.$set('intro.supportRefundExchange', support);
});
if(self.showPrefer) {
... ...