Merge remote-tracking branch 'origin/feature/cartPoint' into gray
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -83,7 +83,7 @@ $('#likeBtn').on('touchstart', function() { | @@ -83,7 +83,7 @@ $('#likeBtn').on('touchstart', function() { | ||
83 | }); | 83 | }); |
84 | 84 | ||
85 | // 统计代码:用于统计用户加入或取消商品收藏的动作 | 85 | // 统计代码:用于统计用户加入或取消商品收藏的动作 |
86 | - if (window._yas) { | 86 | + if (window._yas && window._yas.sendCustomInfo) { |
87 | window._yas.sendCustomInfo({ | 87 | window._yas.sendCustomInfo({ |
88 | pd: productId, | 88 | pd: productId, |
89 | fa: favorite | 89 | fa: favorite |
@@ -99,7 +99,7 @@ $('#addtoCart').on('touchstart', function() { | @@ -99,7 +99,7 @@ $('#addtoCart').on('touchstart', function() { | ||
99 | chosePanel.show(); | 99 | chosePanel.show(); |
100 | 100 | ||
101 | // 统计代码:用于统计用户加入购物车的动作 | 101 | // 统计代码:用于统计用户加入购物车的动作 |
102 | - if (window._yas) { | 102 | + if (window._yas && window._yas.sendCustomInfo) { |
103 | window._yas.sendCustomInfo({ | 103 | window._yas.sendCustomInfo({ |
104 | pd: productId, | 104 | pd: productId, |
105 | by: 1 | 105 | by: 1 |
-
Please register or login to post a comment