Merge branch 'refs/heads/master' into feature/coupon
Showing
3 changed files
with
5 additions
and
9 deletions
1 | { | 1 | { |
2 | "name": "yohobuywap-node-activity", | 2 | "name": "yohobuywap-node-activity", |
3 | - "version": "6.9.18", | 3 | + "version": "6.9.20", |
4 | "private": true, | 4 | "private": true, |
5 | "description": "A New Yohobuy Project With Express", | 5 | "description": "A New Yohobuy Project With Express", |
6 | "repository": { | 6 | "repository": { |
@@ -88,7 +88,7 @@ class GoodsShowYasRpter { | @@ -88,7 +88,7 @@ class GoodsShowYasRpter { | ||
88 | if ($.inviewport($theA, { threshold: 0 })) { | 88 | if ($.inviewport($theA, { threshold: 0 })) { |
89 | // 是商品并且可见 | 89 | // 是商品并且可见 |
90 | goodsRawArr.push({ | 90 | goodsRawArr.push({ |
91 | - I_INDEX: aIndex + 1, | 91 | + I_INDEX: i + 1, |
92 | PRD_SKN: $theA.attr('skn'), | 92 | PRD_SKN: $theA.attr('skn'), |
93 | ARTICLE_ID: $theA.attr('articleId'), | 93 | ARTICLE_ID: $theA.attr('articleId'), |
94 | AUTHOR_ID: $theA.attr('authorUid'), | 94 | AUTHOR_ID: $theA.attr('authorUid'), |
@@ -6,11 +6,8 @@ function XianyuLinkHandle() { | @@ -6,11 +6,8 @@ function XianyuLinkHandle() { | ||
6 | 'click', | 6 | 'click', |
7 | event => { | 7 | event => { |
8 | let currentTarget = $(event.currentTarget); | 8 | let currentTarget = $(event.currentTarget); |
9 | - | ||
10 | - | ||
11 | - let href = currentTarget.attr('href').replace(/[?|&]openby:yohobuy=.*/, ''); | ||
12 | - | ||
13 | - | 9 | + let href = currentTarget.attr('href') ? |
10 | + currentTarget.attr('href').replace(/[?|&]openby:yohobuy=.*/, '') : 'javascript:void(0)'; | ||
14 | let tag = href.indexOf('?') >= 0 ? '&' : '?'; | 11 | let tag = href.indexOf('?') >= 0 ? '&' : '?'; |
15 | 12 | ||
16 | href = href + tag + 'isNeedRefresh=false'; | 13 | href = href + tag + 'isNeedRefresh=false'; |
@@ -32,9 +29,8 @@ function XianyuLinkHandle() { | @@ -32,9 +29,8 @@ function XianyuLinkHandle() { | ||
32 | } else { | 29 | } else { |
33 | window.open(args.url, '_blank'); | 30 | window.open(args.url, '_blank'); |
34 | } | 31 | } |
32 | + event.preventDefault(); | ||
35 | } | 33 | } |
36 | - | ||
37 | - event.preventDefault(); | ||
38 | }); | 34 | }); |
39 | } | 35 | } |
40 | 36 |
-
Please register or login to post a comment