Authored by 毕凯

Merge branch 'release/6.0' of git.yoho.cn:fe/yohobuywap-node into release/6.0

@@ -25,7 +25,12 @@ @@ -25,7 +25,12 @@
25 </p> 25 </p>
26 26
27 {{#if isLimitSkn}} 27 {{#if isLimitSkn}}
28 - <p class="limit">不支持7天无理由退换货</p> 28 + {{#isEqualOr notSevenExchange 'LRE'}}
  29 + <p class="limit">不支持7天无理由退换货</p>
  30 + {{/isEqualOr}}
  31 + {{#isEqualOr notSevenExchange 'L15DE'}}
  32 + <p class="limit"><i class="iconfont no-support-reason">&#xe699;</i>不支持15天无理由换货</p>
  33 + {{/isEqualOr}}
29 {{/if}} 34 {{/if}}
30 <p class="row price-wrap"> 35 <p class="row price-wrap">
31 {{!-- {{#if isVipPrice}} 36 {{!-- {{#if isVipPrice}}
@@ -12,7 +12,8 @@ const qs = require('yoho-qs'); @@ -12,7 +12,8 @@ const qs = require('yoho-qs');
12 let tip = require('plugin/tip'), 12 let tip = require('plugin/tip'),
13 loading = require('plugin/loading'), 13 loading = require('plugin/loading'),
14 order = require('./order-info'), 14 order = require('./order-info'),
15 - richTip = require('plugin/rich-tip'); 15 + richTip = require('plugin/rich-tip'),
  16 + dialog = require('plugin/dialog');
16 17
17 let $invoice = $('.invoice'), 18 let $invoice = $('.invoice'),
18 $couponUse = $('.coupon-use.used'), 19 $couponUse = $('.coupon-use.used'),
@@ -516,3 +517,13 @@ $(window).scroll(function() { @@ -516,3 +517,13 @@ $(window).scroll(function() {
516 $('.address-bottom').hide(); 517 $('.address-bottom').hide();
517 } 518 }
518 }); 519 });
  520 +
  521 +// 商品是否支持退换货原因弹框
  522 +$('.no-support-reason').click(function() {
  523 + dialog.showDialog({
  524 + dialogText: '该商品支持7天无理由退换,不支持7天以上15天内的无理由换货,如有疑问,请联系客服',
  525 + hasFooter: {
  526 + centerBtnText: '我知道了'
  527 + }
  528 + });
  529 +});
@@ -11,7 +11,8 @@ let $ = require('yoho-jquery'), @@ -11,7 +11,8 @@ let $ = require('yoho-jquery'),
11 let tip = require('plugin/tip'), 11 let tip = require('plugin/tip'),
12 loading = require('plugin/loading'), 12 loading = require('plugin/loading'),
13 order = require('./order-info'), 13 order = require('./order-info'),
14 - richTip = require('plugin/rich-tip'); 14 + richTip = require('plugin/rich-tip'),
  15 + dialog = require('plugin/dialog');
15 16
16 let $invoice = $('.invoice'), 17 let $invoice = $('.invoice'),
17 $couponUse = $('.coupon-use.used'), 18 $couponUse = $('.coupon-use.used'),
@@ -529,3 +530,13 @@ $(window).scroll(function() { @@ -529,3 +530,13 @@ $(window).scroll(function() {
529 $('.address-bottom').hide(); 530 $('.address-bottom').hide();
530 } 531 }
531 }); 532 });
  533 +
  534 +// 商品是否支持退换货原因弹框
  535 +$('.no-support-reason').click(function() {
  536 + dialog.showDialog({
  537 + dialogText: '该商品支持7天无理由退换,不支持7天以上15天内的无理由换货,如有疑问,请联系客服',
  538 + hasFooter: {
  539 + centerBtnText: '我知道了'
  540 + }
  541 + });
  542 +});
@@ -456,6 +456,15 @@ @@ -456,6 +456,15 @@
456 display: block !important; 456 display: block !important;
457 } 457 }
458 458
  459 + .limit {
  460 + color: #b6b6b6;
  461 + font-size: 80%;
  462 + }
  463 +
  464 + .no-support-reason {
  465 + margin-right: 8px;
  466 + }
  467 +
459 .price-wrap { 468 .price-wrap {
460 position: absolute; 469 position: absolute;
461 top: 20px; 470 top: 20px;
@@ -12,6 +12,11 @@ @@ -12,6 +12,11 @@
12 background: resolve("product/not-support-exchange.png") no-repeat; 12 background: resolve("product/not-support-exchange.png") no-repeat;
13 background-size: 100%; 13 background-size: 100%;
14 } 14 }
  15 +
  16 + &.surpass-not-support {
  17 + background: resolve("product/surpass-not-support.png") no-repeat;
  18 + background-size: 100%;
  19 + }
15 } 20 }
16 21
17 .detail { 22 .detail {
@@ -195,6 +195,7 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { @@ -195,6 +195,7 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) {
195 obj.count = good.buy_number; 195 obj.count = good.buy_number;
196 obj.price = good.sales_price; 196 obj.price = good.sales_price;
197 obj.isLimitSkn = good.is_limit_skn === 'Y'; 197 obj.isLimitSkn = good.is_limit_skn === 'Y';
  198 + obj.notSevenExchange = _.get(good, 'tags[0]', '');
198 199
199 if (good.goods_type === 'gift') { 200 if (good.goods_type === 'gift') {
200 obj.gift = true; 201 obj.gift = true;