...
|
...
|
@@ -13,9 +13,8 @@ var $ = require('yoho-jquery'), |
|
|
var $navLi = $('#order-nav > li'),
|
|
|
$orderContainer = $('#order-container');
|
|
|
|
|
|
var $sureClose = $('#sureClose'); // 确定删除订单
|
|
|
var $sureRefund = $('#sureRefund'); // 确定申请退款
|
|
|
var $disMissBtn = $('.dis-miss-btn'); // 返回
|
|
|
var $sureClose = $('.cancel'); // 删除订单按钮
|
|
|
var $sureRefund = $('.refund'); // 申请退款按钮
|
|
|
|
|
|
var $curContainer = $orderContainer.children('.orders:not(.hide)');// 保存当前显示的order-container
|
|
|
|
...
|
...
|
@@ -468,14 +467,30 @@ $reaMask.on('touchend', function(event) { |
|
|
|
|
|
// 弹出取消订单提示框
|
|
|
$sureClose.on('click', function() {
|
|
|
$disMissBtn.trigger('click');
|
|
|
dialog.showDialog({
|
|
|
dialogText: '取消订单后,本单享有的优惠可能会一并取消,确定申请吗?',
|
|
|
hasFooter: {
|
|
|
leftBtnText: '返回',
|
|
|
rightBtnText: '确定'
|
|
|
}
|
|
|
}, function() {
|
|
|
dialog.hideDialog();
|
|
|
$reaMask.css('visibility', 'visible');
|
|
|
});
|
|
|
});
|
|
|
|
|
|
// 弹出申请退款提示框
|
|
|
$sureRefund.on('click', function() {
|
|
|
$disMissBtn.trigger('click');
|
|
|
dialog.showDialog({
|
|
|
dialogText: '申请退款后,本单享有的优惠可能会一并取消,确定申请吗?',
|
|
|
hasFooter: {
|
|
|
leftBtnText: '返回',
|
|
|
rightBtnText: '确定'
|
|
|
}
|
|
|
}, function() {
|
|
|
dialog.hideDialog();
|
|
|
$refundReaMask.css('visibility', 'visible');
|
|
|
});
|
|
|
});
|
|
|
|
|
|
// 申请退款
|
...
|
...
|
|