Authored by 郭成尧

point-about-cart

... ... @@ -196,15 +196,17 @@ $('.btn-balance').on('touchend', function() {
lowStockCount = 0;
if (window._yas && window._yas.sendCustomInfo) {
var productId = '';
var productId = [];
$('.shopping-cart-good').each(function() {
productId = $(this).data('id') + ',';
productId.push($(this).data('id'));
});
window._yas.sendCustomInfo({
op: 'YB_SC_TOBUY_CLICK',
param: JSON.stringify({
C_ID: C_ID,
PRD_ID: productId,
PRD_ID: productId.join(','),
})
}, true);
}
... ...
... ... @@ -25,6 +25,8 @@ var $invoiceNotice = $('.invoice-notice'),
var myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/,
linkUrl = $('.address-more').val() || '/cart/index/orderEnsure?cartType=ordinary';
var C_ID = window._ChannelVary[window.cookie('_Channel')] || 1;
require('../common');
if (window.getUid() !== orderInfo('uid')) {
... ... @@ -165,6 +167,19 @@ $company.on('input', function() {
// 确认及返回事件
$('.confirm-btn, .nav-back').on('touchstart', function(e) {
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_SC_INVOICE_INFO_SAVE',
param: JSON.stringify({
C_ID: C_ID,
INVOICE_TYPE: $invoiceType.find('.on').data('id'),
INVOICE_TITLE: $('.invoice-top').find('.on').text(),
INVOICE_CONTENT: $chooseCont.data('id')
})
}, true);
}
e.preventDefault();
confirmAction();
});
... ...
... ... @@ -45,6 +45,8 @@ var invoiceCont = {
2: '电子'
};
var C_ID = window._ChannelVary[window.cookie('_Channel')] || 1;
require('../common');
lazyLoad();
... ... @@ -161,6 +163,15 @@ $invoice.on('touchend', '.checkbox', function() {
orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
invoiceInit();
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_SC_INVOICE_ISSUE',
param: JSON.stringify({
C_ID: C_ID
})
}, true);
}
});
... ... @@ -559,3 +570,14 @@ $(window).scroll(function() {
$('.address-bottom').hide();
}
});
$(function () {
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_SC_ORDER_ENSURE',
param: JSON.stringify({
C_ID: C_ID
})
}, true);
}
});
... ...