Authored by htoooth

add lib

... ... @@ -103,13 +103,14 @@
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1",
"webpack-stream": "^3.1.0",
"yoho-eventproxy": "^0.3.6",
"yoho-handlebars": "^4.0.5",
"yoho-jquery": "^1.12.4",
"yoho-jquery-dotdotdot": "0.0.1",
"yoho-jquery-lazyload": "^1.9.7",
"yoho-jquery-pjax": "0.0.1",
"yoho-jquery-placeholder": "^2.3.1",
"yoho-slider": "0.0.2",
"yoho-jquery-dotdotdot": "0.0.1",
"yoho-jquery-qrcode": "^0.14.0"
"yoho-jquery-qrcode": "^0.14.0",
"yoho-slider": "0.0.2"
}
}
... ...
... ... @@ -10,6 +10,7 @@
*/
var $ = require('yoho-jquery');
var EventProxy = require('yoho-eventproxy');
var lazyLoad = require('yoho-jquery-lazyload');
var yas = require('../common/data-yas');
... ... @@ -743,7 +744,7 @@ bindEvent.add(function() {
if (maxStock === -1) {
showSizeWarn();
return;
}
}
// 加入购物车埋点
yas.givePoint('YB_GDS_DT_ADD_TO_SC', {
... ... @@ -752,7 +753,7 @@ bindEvent.add(function() {
PRD_SKN: +$('.basic li:nth-child(1) .valueSpace').text(),
PRD_SKU: getSku()
});
$.ajax({
type: 'POST',
url: '/cart/index/add',
... ... @@ -1540,10 +1541,10 @@ $('.package-box').on('click', '#buy-detail', function() {
pkgDialog.show();
pkgDialog.$el.on('click', '#pay-pkg', function(){
var product = pkgDialog.$el.find('.pkgDg-prodetal .pkg-product');
var idArr = [];
product.each(function(){
var $this = $(this);
var id = $this.find('.pkg-proImg').attr('href').split('_')[1];
... ... @@ -1552,8 +1553,8 @@ $('.package-box').on('click', '#buy-detail', function() {
var option = {
PRD_ID : +$('.main').data('id'),
PACKAGE_GOODS : idArr.join(',')
};
};
yas.givePoint('YB_GDS_NUMBER_C', option);
});
... ... @@ -1563,13 +1564,13 @@ $('.package-box').on('click', '#buy-detail', function() {
var product = pkgDialog.$el.find('.pkgDg-prodetal .pkg-product');
var idArr = [];
product.each(function(){
var $this = $(this);
var id = $this.find('.pkg-proImg').attr('href').split('_')[1];
idArr.push(id);
});
var option = {
PRD_ID : +$('.main').data('id'),
PACKAGE_INDEX : $index,
... ... @@ -1844,7 +1845,7 @@ $(function() {
yasAtBottom.yasBottom();
// 数据懒加载
dataLazyLoad.init({cls: '.datalazyload', threshold: 0});
... ...