Merge branch 'feature/detail-link' into 'release/6.9.2'
Feature/detail link See merge request !433
Showing
1 changed file
with
9 additions
and
0 deletions
@@ -24,6 +24,15 @@ function _getDetailDataBySizeInfo(intro) { | @@ -24,6 +24,15 @@ function _getDetailDataBySizeInfo(intro) { | ||
24 | // 视频链接处理 | 24 | // 视频链接处理 |
25 | $intro = $(intro); | 25 | $intro = $(intro); |
26 | 26 | ||
27 | + $intro.find('a[href]').each(function() { | ||
28 | + const $el = $(this); | ||
29 | + | ||
30 | + $el.attr('href', 'javascript:;') //eslint-disable-line | ||
31 | + .attr('target', '') | ||
32 | + .attr('title', '') | ||
33 | + .css('cursor', 'initial'); | ||
34 | + }); | ||
35 | + | ||
27 | $intro.find('.video-placeholder').each(function(idx, ele) { | 36 | $intro.find('.video-placeholder').each(function(idx, ele) { |
28 | var $this = $(ele); | 37 | var $this = $(ele); |
29 | var videoSrc = $this.find('source').attr('src'); | 38 | var videoSrc = $this.find('source').attr('src'); |
-
Please register or login to post a comment