Authored by QC-L

修复返回提示申请退款的问题

... ... @@ -68,7 +68,7 @@
<a href={{this.link}} class="invite-btn">立即付款</a>
{{/if}}
{{#if this.modifyAddress }}
<a href={{this.link}} class="btn cancel">修改地址</a>
<a href={{this.link}} class="btn">修改地址</a>
{{/if}}
{{#if this.groupInvite }}
<a href={{this.link}} class="invite-btn">查看拼团详情</a>
... ...
... ... @@ -89,8 +89,7 @@ class GroupOrder extends Page {
$('#group-order').on('click', function(e) {
let $cur = $(e.target),
$order,
id,
selectIndex;
id;
if ($cur.closest('.locHref').length > 0) {
return;
... ... @@ -98,7 +97,6 @@ $('#group-order').on('click', function(e) {
$order = $cur.closest('.group-order-list-cell');
id = $order.data('id');
selectIndex = $order.data('selectIndex');
// $reaMask.data('orderId', id);
// $refundReaMask.data('orderId', id);
... ... @@ -139,10 +137,10 @@ $('#group-order').on('click', function(e) {
} else if ($cur.closest('.cancel').length > 0) {
// 取消订单
dialog.showDialog({
dialogText: selectIndex === 1 ? '确认取消该订单吗?' : '确认申请退货该订单吗?',
dialogText: '确认取消该订单吗?',
hasFooter: {
leftBtnText: '返回',
rightBtnText: selectIndex === 1 ? '取消订单' : '申请退款'
rightBtnText: '取消订单'
}
}, function() {
$.ajax({
... ...