Authored by QC-L

添加我的拼团跳转订单详情

... ... @@ -165,7 +165,7 @@ module.exports = class extends global.yoho.BaseModel {
orderBtn.push({
groupInvite: true,
link: helpers.urlFormat('/activity/group/progress', {
groupNo: order.group_no,
groupNo: order.group_no || '',
activityId: order.activity_id,
})
});
... ...
... ... @@ -94,6 +94,7 @@ module.exports = class extends global.yoho.BaseModel {
请在<i class="hours new-hours hide">${countTime}</i>内完成支付,超时订单自动取消`;
}
console.log(order);
_.each(order.links, (val) => {
switch (val) {
case 'refundApply':// 申请退款
... ... @@ -117,8 +118,8 @@ module.exports = class extends global.yoho.BaseModel {
orderBtn.push({
groupInvite: true,
link: helpers.urlFormat('/activity/group/progress', {
groupNo: order.order_extInfo.group_no,
activityId: order.order_extInfo.activity_id,
groupNo: order.orderExtInfo.groupNo || '',
activityId: order.orderExtInfo.activityId || '',
})
});
break;
... ...
... ... @@ -102,8 +102,11 @@ $('#group-order').on('click', function(e) {
// $reaMask.data('orderId', id);
// $refundReaMask.data('orderId', id);
if ($cur.closest('.del').length > 0) {
if ($cur.closest('.list-cell-content').length > 0) {
window.location.href = `/home/orderdetail?order_code=${id}`;
} else if ($cur.closest('.list-cell-footer').length > 0) {
window.location.href = `/home/orderdetail?order_code=${id}`;
} else if ($cur.closest('.del').length > 0) {
// Order delete
dialog.showDialog({
... ...