...
|
...
|
@@ -6,7 +6,9 @@ |
|
|
|
|
|
var $ = require('yoho-jquery'),
|
|
|
lazyLoad = require('yoho-jquery-lazyload'),
|
|
|
tip = require('../plugin/tip'),
|
|
|
cookie = require('yoho-cookie');
|
|
|
|
|
|
var tip = require('../plugin/tip'),
|
|
|
loading = require('../plugin/loading'),
|
|
|
order = require('./order-info'),
|
|
|
richTip = require('../plugin/rich-tip');
|
...
|
...
|
@@ -31,7 +33,7 @@ var $invoice = $('.invoice'), |
|
|
isYohoCoinClick = $coinLi.data('yoho-coin-click') * 1, // 判断有货币是否可以单击
|
|
|
addressTop = $('.address-wrap').outerHeight();
|
|
|
|
|
|
var orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
|
|
|
var orderCont = cookie.get('order-info') && JSON.parse(cookie.get('order-info'));
|
|
|
var invoiceCont = {
|
|
|
7: '服装',
|
|
|
1: '图书',
|
...
|
...
|
@@ -50,7 +52,7 @@ var invoiceCont = { |
|
|
var actCkOpthn = {
|
|
|
expires: 'Session',
|
|
|
path: '/cart/index',
|
|
|
domain: '.m.yohobuy.com'
|
|
|
domain: 'm.yohobuy.com'
|
|
|
};
|
|
|
|
|
|
require('../common');
|
...
|
...
|
@@ -168,7 +170,7 @@ $invoice.on('touchend', '.checkbox', function() { |
|
|
orderInfo('invoiceTitle', null);
|
|
|
}
|
|
|
|
|
|
orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
|
|
|
orderCont = cookie.get('order-info') && JSON.parse(cookie.get('order-info'));
|
|
|
invoiceInit();
|
|
|
});
|
|
|
|
...
|
...
|
@@ -323,7 +325,7 @@ function submitOrder() { |
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_SC_TOPAY_CLICK',
|
|
|
param: JSON.stringify({
|
|
|
C_ID: window._ChannelVary[window.cookie('_Channel')],
|
|
|
C_ID: window._ChannelVary[cookie.get('_Channel')],
|
|
|
ORDER_CODE: res.data.order_code,
|
|
|
PRD_NUM: $('#goods-num').val(),
|
|
|
ORDER_AMOUNT: res.data.order_amount,
|
...
|
...
|
@@ -332,8 +334,8 @@ function submitOrder() { |
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
window.setCookie('order-info', '', actCkOpthn);
|
|
|
window.setCookie('activity-info', '', {
|
|
|
cookie.set('order-info', '', actCkOpthn);
|
|
|
cookie.set('activity-info', '', {
|
|
|
expires: 'Session',
|
|
|
path: '/',
|
|
|
domain: '.m.yohobuy.com'
|
...
|
...
|
|