Authored by 王洪广

修改退换货

... ... @@ -43,13 +43,15 @@
<td class="return-goods-info">
<a href="{{href}}">{{name}}</a>
<span>颜色:{{color}} 尺码:{{size}}</span>
{{#if specialNoticeBo}}
<div class="special-tip">
<span>商品七天无理由退换 <i class="doubt"></i></span>
<span>{{specialNoticeBo.title}} <i class="doubt"></i></span>
<div class="special-content">
<span>{{specialNoticeBo}}</span>
<span>{{specialNoticeBo.remark}}</span>
<i class="arrow"></i>
</div>
</div>
{{/if}}
</td>
{{#if banMsg}}
... ... @@ -171,13 +173,15 @@
<td class="return-goods-info">
<a href="{{href}}">{{name}}</a>
<span>颜色:{{color}} 尺码:{{size}}</span>
{{#if specialNoticeBo}}
<div class="special-tip">
<span>商品七天无理由退换 <i class="doubt"></i></span>
<span>{{specialNoticeBo.title}} <i class="doubt"></i></span>
<div class="special-content">
<span>{{specialNoticeBo}}</span>
<span>{{specialNoticeBo.remark}}</span>
<i class="arrow"></i>
</div>
</div>
{{/if}}
</td>
<td class="refund-price">
{{price}}
... ...
... ... @@ -23,7 +23,7 @@
</div>
{{#if canCancelUrl}}
<div class="cancel-return">
如果您不想退货了,您可以 <a href="javascript:;" data-id="{{returnId}}">取消申请</a>
如果您不想退货了,您可以 <a href="javascript:;" data-id="{{returnId}}" class="cancel-trigger" data-url="{{canCancelUrl}}">取消申请</a>
</div>
{{/if}}
<div class="detail-container">
... ...
... ... @@ -65,8 +65,9 @@
<div class="return-status">
{{returnStatus}}
</div>
<div class="operation">
<a class="op-item" href="{{moreHref}}" target="_blank">查看详情</a>
<div class="operation {{#if canCancelUrl}}cancel-return{{/if}}">
{{#if canCancelUrl}}<a class="op-item cancel-trigger" href="javascript:;" data-id="{{returnId}}" data-url="{{canCancelUrl}}">取消申请</a>{{/if}}
<a class="op-item" href="{{moreHref}}" target="_blank">查看详情</a>
</div>
</div>
</div>
... ...
... ... @@ -80,7 +80,7 @@ function sendExpressCode() {
});
}
function cancelApply(id) {
function cancelApply(id, url) {
var template = Handlebars.compile(cancelApplyDialog);
var html = template({messageIcon: 'icon-warn', messageTitle: '取消申请', messageSummary: '您确定要请取消申请吗?'});
var options = {
... ... @@ -93,7 +93,7 @@ function cancelApply(id) {
cb: function() {
$.ajax({
type: 'POST',
url: '/home/returns/cancelChange',
url: url,
data: {
id: id
}
... ... @@ -143,7 +143,7 @@ $('#submit-btn').click(function() {
sendExpressCode();
});
$('.cancel-return').on('click', 'a', function() {
active = cancelApply($(this).data('id'));
$('.cancel-return').on('click', '.cancel-trigger', function() {
active = cancelApply($(this).data('id'), $(this).data('url'));
active.show();
})
\ No newline at end of file
... ...
... ... @@ -31,9 +31,12 @@
}
}
.cancel-return{
margin-left: 40px;
height:26px;
height: 26px;
margin: 0 10px;
padding-top: 10px;
padding-left: 10px;
line-height: 26px;
border-top: 1px solid #e0e0e0;
a{
display: inline-block;
padding: 0 10px;
... ...