...
|
...
|
@@ -24,6 +24,7 @@ var orderId = $('#order-detail').data('id'), |
|
|
|
|
|
var $sureClose = $('.btn-cancel'); // 取消订单按钮
|
|
|
var $sureRefund = $('.btn-refund'); // 申请退款按钮
|
|
|
var $addChange = $('.btn-add-change'); // 修改地址
|
|
|
|
|
|
|
|
|
require('home/order-detail-index.page.css');
|
...
|
...
|
@@ -147,19 +148,6 @@ optHammer.on('tap', function(e) { |
|
|
if ($ownerInfo.data('changeable') === true) {
|
|
|
$ownerInfo.find('.rest').show();
|
|
|
$ownerInfo.on('touchend', function() {
|
|
|
/**
|
|
|
* 埋点
|
|
|
*/
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_ORDER_MODIFY_ADDRESS_C',
|
|
|
param: JSON.stringify({
|
|
|
C_ID: window._ChannelVary[window.cookie('_Channel')],
|
|
|
ORD_NUM: orderId
|
|
|
})
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
location.href = $ownerInfo.data('url');
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -352,6 +340,17 @@ $sureClose.on('click', function() { |
|
|
|
|
|
// 弹出申请退款提示框
|
|
|
$sureRefund.on('click', function() {
|
|
|
// 埋点
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_ORDER_REFUND_C',
|
|
|
param: JSON.stringify({
|
|
|
C_ID: window._ChannelVary[window.cookie('_Channel')],
|
|
|
ORD_NUM: orderId
|
|
|
})
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
dialog.showDialog({
|
|
|
dialogText: '申请退款后,本单享有的优惠可能会一并取消,确定申请吗?',
|
|
|
hasFooter: {
|
...
|
...
|
@@ -361,20 +360,24 @@ $sureRefund.on('click', function() { |
|
|
}, function() {
|
|
|
dialog.hideDialog();
|
|
|
$refundReaMask.css('visibility', 'visible');
|
|
|
|
|
|
// 埋点
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_ORDER_REFUND_C',
|
|
|
param: JSON.stringify({
|
|
|
C_ID: window._ChannelVary[window.cookie('_Channel')],
|
|
|
ORD_NUM: orderId
|
|
|
})
|
|
|
}, true);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* 修改地址埋点
|
|
|
*/
|
|
|
$addChange.on('click', function() {
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_ORDER_MODIFY_ADDRESS_C',
|
|
|
param: JSON.stringify({
|
|
|
C_ID: window._ChannelVary[window.cookie('_Channel')],
|
|
|
ORD_NUM: orderId
|
|
|
})
|
|
|
}, true);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
function formatDate(objD) {
|
|
|
var str,
|
|
|
yy = objD.getYear(),
|
...
|
...
|
|