Authored by 李奇

是否支持退换货逻辑修正

@@ -28,8 +28,8 @@ @@ -28,8 +28,8 @@
28 <show-box> 28 <show-box>
29 <ul class="service"> 29 <ul class="service">
30 <li><i class="icon icon-real"></i>100%品牌正品</li> 30 <li><i class="icon icon-real"></i>100%品牌正品</li>
31 - <li class="return" v-if="intro.supportRefundExchange"><i class="icon icon-seven"></i>支持7天无理由退换货</li>  
32 - <li class="return"><i class="icon icon-unsupport-seven"></i>不支持7天无理由退换货</li> 31 + <li class="return" v-if="supportRefundExchange === 'Y'"><i class="icon icon-seven"></i>支持7天无理由退换货</li>
  32 + <li class="return" v-else><i class="icon icon-unsupport-seven"></i>不支持7天无理由退换货</li>
33 <li><i class="icon icon-onlineservice"></i>便捷在线客服</li> 33 <li><i class="icon icon-onlineservice"></i>便捷在线客服</li>
34 </ul> 34 </ul>
35 </show-box> 35 </show-box>
@@ -490,6 +490,7 @@ @@ -490,6 +490,7 @@
490 isSoldOut: false, 490 isSoldOut: false,
491 isReady: false, 491 isReady: false,
492 showPrefer: false, // TODO 为你优选大数据暂未实现,本期暂时屏蔽 492 showPrefer: false, // TODO 为你优选大数据暂未实现,本期暂时屏蔽
  493 + supportRefundExchange: "Y",
493 preferTitle: '为你优选', 494 preferTitle: '为你优选',
494 preferList: [] 495 preferList: []
495 }; 496 };
@@ -598,7 +599,7 @@ @@ -598,7 +599,7 @@
598 599
599 // 是否支持7天无理由退换货 600 // 是否支持7天无理由退换货
600 $.get(`/product/refundExchange/${data.product_skn}`).then(sd => { 601 $.get(`/product/refundExchange/${data.product_skn}`).then(sd => {
601 - this.intro['supportRefundExchange'] = sd.data[data.product_skn] === "Y"; 602 + this.supportRefundExchange = sd.data[data.product_skn] === "N" ? "Y" : "N";
602 }); 603 });
603 604
604 if(self.showPrefer) { 605 if(self.showPrefer) {