Showing
1 changed file
with
15 additions
and
1 deletions
@@ -907,6 +907,20 @@ $('.btn_account').on('click', function() { | @@ -907,6 +907,20 @@ $('.btn_account').on('click', function() { | ||
907 | new Alert('您有赠品没有选择,请选择完再结算!').show(); | 907 | new Alert('您有赠品没有选择,请选择完再结算!').show(); |
908 | } else { | 908 | } else { |
909 | if ($('input:checked').length > 0) { | 909 | if ($('input:checked').length > 0) { |
910 | + | ||
911 | + // 添加埋点 | ||
912 | + var productId = []; | ||
913 | + $('.pay-wapper input:checked').parents('tr').each(function() { | ||
914 | + if ($(this).attr('data-pid')) { | ||
915 | + productId.push($(this).attr('data-pid')); | ||
916 | + } | ||
917 | + }); | ||
918 | + | ||
919 | + // 结算点击埋点 | ||
920 | + window.addPoint('YB_SC_TOBUY_CLICK', {PRD_ID: productId}); | ||
921 | + return false; | ||
922 | + | ||
923 | + | ||
910 | if ($('.pre-sell-box input:checked').length > 0) { | 924 | if ($('.pre-sell-box input:checked').length > 0) { |
911 | window.location.href = '/cart/index/orderEnsure?type=2'; | 925 | window.location.href = '/cart/index/orderEnsure?type=2'; |
912 | } else { | 926 | } else { |
@@ -928,5 +942,5 @@ $goodsDetail.on('selectstart', function() { | @@ -928,5 +942,5 @@ $goodsDetail.on('selectstart', function() { | ||
928 | 942 | ||
929 | scrollToFirst(); | 943 | scrollToFirst(); |
930 | 944 | ||
931 | -// 购物车埋点 | 945 | +// 购物车默认埋点 |
932 | window.addPoint('YB_SC'); | 946 | window.addPoint('YB_SC'); |
-
Please register or login to post a comment