...
|
...
|
@@ -262,16 +262,27 @@ $reaMask.find('.box-cmp').on('touchend', function() { |
|
|
reasonId: reasonId
|
|
|
}
|
|
|
}).then(function(res) {
|
|
|
$reaMask.fadeOut();
|
|
|
$reaMask.css('visibility', 'visible');
|
|
|
if ($.type(res) !== 'object') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
dialog.showDialog({
|
|
|
dialogText: '您的取消订单申请已提交,请耐心等待',
|
|
|
hasFooter: {
|
|
|
leftBtnText: '返回',
|
|
|
rightBtnText: '确定'
|
|
|
}
|
|
|
}, function() {
|
|
|
window.location.href = '/home/orders';
|
|
|
});
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
if (res.message) {
|
|
|
tip.show(res.message);
|
|
|
}
|
|
|
setTimeout(function() {
|
|
|
window.location.href = '/home/orders';
|
|
|
}, 2000);
|
|
|
}).fail(function() {
|
|
|
tip.show('网络错误');
|
|
|
});
|
...
|
...
|
@@ -292,16 +303,27 @@ $refundReaMask.find('.box-cmp').on('touchend', function() { |
|
|
reasonId: reasonId
|
|
|
}
|
|
|
}).then(function(res) {
|
|
|
$refundReaMask.fadeOut();
|
|
|
$refundReaMask.css('visibility', 'visible');
|
|
|
if ($.type(res) !== 'object') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
dialog.showDialog({
|
|
|
dialogText: '您的退款申请已提交,请耐心等待退款',
|
|
|
hasFooter: {
|
|
|
leftBtnText: '返回',
|
|
|
rightBtnText: '确定'
|
|
|
}
|
|
|
}, function() {
|
|
|
window.location.href = '/home/orders';
|
|
|
});
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
if (res.message) {
|
|
|
tip.show(res.message);
|
|
|
}
|
|
|
setTimeout(function() {
|
|
|
window.location.href = '/home/orders';
|
|
|
}, 2000);
|
|
|
}).fail(function() {
|
|
|
tip.show('网络错误');
|
|
|
});
|
...
|
...
|
|