Authored by 刘传洋

special limit 7 days

... ... @@ -715,6 +715,7 @@ class Helpers
$oneGoods['yohoIcon'] = isset($value['get_yoho_coin']) ? $value['get_yoho_coin'] : 0;
$oneGoods['productSubtotal'] = self::transPrice( floatval($value['last_vip_price']) * intval($value['buy_number']) );
$oneGoods['promotionId'] = empty($value['promotion_id']) ? '0' : $value['promotion_id'];
$oneGoods['isLimitSkn'] = $value['is_limit_skn'] === 'Y'; //is_limit_skn=Y 不支持7天无理由退货
// 已下架
if ($isOffShelves) {
... ...
... ... @@ -261,6 +261,7 @@
尺码:{{productSize}}
{{/if}}
</span>
{{# isLimitSkn}}<div class="special-limit-7day"></div>{{/ isLimitSkn}}
</p>
</div>
</td>
... ...
... ... @@ -35,7 +35,9 @@
<input type="hidden" value="{{sku}}" name="sku">
<input type="hidden" value="{{price}}" name="price">
<input type="hidden" value="{{goods_type_id}}" name="typeid">
<input type="checkbox" checked="true">
{{#unless isLimitSkn}}
<input type="checkbox" checked="true">
{{/unless}}
{{/unless}}
</td>
<td width="60">
... ... @@ -63,7 +65,7 @@
<td class="exchange-choose-wrap">
<p>
颜色要换成:
<select class="exchange-color">
<select class="exchange-color" {{#if isLimitSkn}}disabled{{/if}}>
<option value="0">请选择颜色</option>
{{# colorSize}}
<option value="{{goodsId}}">{{color}}</option>
... ... @@ -79,13 +81,13 @@
</p>
<p>
尺码要换成:
<select class="exchange-size">
<select class="exchange-size" {{#if isLimitSkn}}disabled{{/if}}>
<option value="0">请选择尺码</option>
</select>
</p>
</td>
<td class="return-reason-wrap">
<select class="return-reason">
<select class="return-reason" {{#if isLimitSkn}}disabled{{/if}}>
<option value="0">请选择换货原因</option>
{{#with exchange}}
{{# reason}}
... ... @@ -166,7 +168,9 @@
<input type="hidden" value="{{sku}}" name="sku">
<input type="hidden" value="{{price}}" name="price">
<input type="hidden" value="{{goods_type_id}}" name="typeid">
<input type="checkbox" checked="true">
{{#unless isLimitSkn}}
<input type="checkbox" checked="true">
{{/unless}}
{{/unless}}
</td>
<td width="60">
... ... @@ -192,7 +196,7 @@
{{#if banMsg}}
<label>{{banMsg}}</label>
{{^}}
<select class="return-reason">
<select class="return-reason" {{#if isLimitSkn}}disabled{{/if}}>
<option value="0">请选择退货原因</option>
{{#with refund}}
{{# reason}}
... ...

48.3 KB | W: | H:

50.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -391,6 +391,11 @@
background-repeat: no-repeat;
}
}
.special-limit-7day{
width: 152px;
height: 20px;
background: url(/cart/7day-limit.png);
}
}
.cartnew-sum {
... ...
... ... @@ -317,6 +317,8 @@ class ReturnsModel
$result['goods'][$key]['reason'] = $data['data']['return_reason'];
$result['goods'][$key]['isLimitSkn'] = $value['is_limit_skn'] === 'Y'; //is_limit_skn=Y 不支持7天无理由退换货
// tar note 为每个特殊商品都添加标识
if ($value['is_limit_skn'] === 'Y') {
$remarks = explode(' ', $data['data']['special_notice']['remark'], 2); // 使用3个空格拆分
... ... @@ -406,6 +408,7 @@ class ReturnsModel
$result['goods'][$key]['goods_type_id'] = $value['goods_type_id'];
$result['goods'][$key]['reason'] = $data['data']['exchange_reason'];
$result['goods'][$key]['isLimitSkn'] = $value['is_limit_skn'] === 'Y'; //is_limit_skn=Y 不支持7天无理由退换货
// tar note 为每个特殊商品都添加标识
if ($value['is_limit_skn'] === 'Y') {
... ...