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="intro.supportRefundExchange"><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="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><i class="icon icon-onlineservice"></i>便捷在线客服</li>
</ul>
</show-box>
... ... @@ -490,6 +490,7 @@
isSoldOut: false,
isReady: false,
showPrefer: false, // TODO 为你优选大数据暂未实现,本期暂时屏蔽
supportRefundExchange: "Y",
preferTitle: '为你优选',
preferList: []
};
... ... @@ -598,7 +599,7 @@
// 是否支持7天无理由退换货
$.get(`/product/refundExchange/${data.product_skn}`).then(sd => {
this.intro['supportRefundExchange'] = sd.data[data.product_skn] === "Y";
this.supportRefundExchange = sd.data[data.product_skn] === "N" ? "Y" : "N";
});
if(self.showPrefer) {
... ...