Selaa lähdekoodia

Merge branch 'dev/v4.9.23_yf' of qmx/jy into feature/v4.9.23

yangfeng 1 vuosi sitten
vanhempi
commit
762b865c5e
1 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. 8 1
      src/web/templates/pc/tags/detail.html

+ 8 - 1
src/web/templates/pc/tags/detail.html

@@ -94,7 +94,7 @@
           <div class="bid-banner">
             {{range $ad := $ad_1}}
             <a target="_blank" {{if $ad.S_link}}href="{{$ad.S_link}}"{{end}}>
-              <img id="login-banner-btn" class="login-node" src='{{$ad.S_pic}}' alt="{{$ad.S_picalt}}" />
+              <img id="login-banner-btn" src='{{$ad.S_pic}}' alt="{{$ad.S_picalt}}" />
             </a>
             {{end}}
           </div>
@@ -401,12 +401,19 @@
               }
           }
       }
+      // 广告位链接如果是登录链接 则阻止a标签默认事件 在当前页打开登录弹框
       $('.advert-bottom-banner-link').click(function(){
         if (this.href.indexOf('?nol=1') > -1) {
           openLoginDig(false, 'reload')
           return false
         }
       })
+      $('.bid-banner > a').click(function(){
+        if (this.href.indexOf('?nol=1') > -1) {
+          openLoginDig(false, 'reload')
+          return false
+        }
+      })
     })
   </script>
   <!--百度统计start-->