Authored by htoooth

fix trace

... ... @@ -23,6 +23,8 @@ var $addressManage, $province, $city,
var isProvinceChecked = false;
var refundDialogTpl = require('hbs/home/orders/refund-dialog.hbs');
var yas = require('../../common/data-yas');
function cancelFactory(id) {
var options = {
mask: false,
... ... @@ -648,10 +650,13 @@ $('.me-orders, .order-detail').on('click', '.cancel-order', function() {
active = deleteOrder(id, this);
active.show();
}).on('click', '.edit-order', function() {
var orderId = $(this).closest('.order, .order-detail').data('id');
$(this).addClass('edit-order-active');
active = editOrder($(this).closest('.order, .order-detail').data('id'));
active = editOrder(orderId);
active.show();
newAddress(0);
traceChangeAddress(orderId); // eslint-diable-line
}).on('click', '.rebuy', function() {
var id = $(this).closest('.order, .order-detail').data('id');
... ... @@ -681,5 +686,20 @@ $('.check-logistics').click(function() {
});
$('.refund-apply').on('click', function() {
showRefundDialog($(this).closest('.order, .order-detail').data('id'));
var orderId = $(this).closest('.order, .order-detail').data('id');
showRefundDialog(orderId);
traceRefund(orderId); // eslint-disable-line
});
function traceRefund(orderId) {
yas.givePoint('YB_ORDER_REFUND_C', {
ORD_NUM: orderId
});
}
function traceChangeAddress(orderId) {
yas.givePoint('YB_ORDER_MODIFY_ADDRESS_C', {
ORD_NUM: orderId
});
}
... ...