Authored by yyq

限制退货商品提示

... ... @@ -218,7 +218,10 @@ const _setReturnStatus = (list, half) => {
* @return { Object } 订单退货信息
*/
const _setRefundGoodList = (data) => {
let resData = {};
let resData = {
specialNotice: data.special_notice,
speclialReason: data.special_return_reason
};
if (data.goods_list) {
let goods = [];
... ... @@ -239,6 +242,7 @@ const _setRefundGoodList = (data) => {
sku: value.product_sku,
type: value.goods_type,
typeId: value.goods_type_id,
limitReturn: value.is_limit_skn === 'Y',
reasonList: data.return_reason
});
... ... @@ -248,7 +252,6 @@ const _setRefundGoodList = (data) => {
});
resData.goods = goods;
}
resData.speclialReason = data.special_return_reason;
let returnMode = [];
... ...
... ... @@ -39,6 +39,19 @@
<span class="iconfont">&#xe61f;</span>
</div>
<div class="price">¥{{round price 2}}</div>
{{#if limitReturn}}
<div class="limit-return">
<span class="limit-return-tip blue">
该商品不支持7天无理由退换
<i class="iconfont">&#xe612;</i>
<div class="limit-return-wrap">
<div class="code-horn"></div>
<p>考虑到个人卫生,例如内衣、内裤、袜子等贴身塑身类商品,不支持无理由退换货</p>
<p>香水、香薰、化妆品等特殊商品,无质量问题,不支持无理由退换货</p>
</div>
</span>
</div>
{{/if}}
{{> returns/special-reason}}
</div>
{{/ goods}}
... ...
... ... @@ -81,6 +81,33 @@
width: 40px;
}
.limit-return {
width: 100%;
height: auto;
text-align: left;
line-height: 1;
padding-top: 20px;
padding-left: 70px;
}
.limit-return .iconfont {
font-size: 14px;
}
.limit-return-tip {
font-size: 12px;
padding-right: 16px;
position: relative;
}
.limit-return-tip:hover {
cursor: pointer;
}
.limit-return-tip:hover .limit-return-wrap {
display: block;
}
.special-reason {
width: 100%;
height: auto;
... ... @@ -95,6 +122,28 @@
border: 1px solid #eee;
}
}
.limit-return-wrap {
width: 280px;
line-height: 1.5;
background: #fff;
padding: 10px;
color: #1d1d1d;
border: 2px solid #bcbcbc;
position: absolute;
left: 100%;
top: -8px;
display: none;
.code-horn {
width: 7px;
height: 12px;
background: resolve('me/code-horn.png') no-repeat;
position: absolute;
left: -7px;
top: 6px;
}
}
}
.refund-type {
... ...