Parcourir la source

Merge branch 'feature/v4.7.32' of http://192.168.3.207:8080/qmx/jy into feature/v4.7.32

wenmenghao321 il y a 2 ans
Parent
commit
1ac16c7816
1 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 4 5
      src/web/templates/pc/index.html

+ 4 - 5
src/web/templates/pc/index.html

@@ -66,12 +66,11 @@
         <!-- 热点事件 -->
         <div class="jy-index-hot">
           <div class="w1200 hot-container">
-            <div class="hot-banner">
-              <img src='{{Msg "seo" "cdn"}}/images/index/hot-banner-1.png?v={{Msg "seo" "version"}}' alt="">
-            </div>
-            <div class="hot-banner">
-              <img src='{{Msg "seo" "cdn"}}/images/index/hot-banner-2.png?v={{Msg "seo" "version"}}' alt="">
+            {{range $i, $v :=Ad "index-hot-list" -1}}
+            <div class="hot-banner" {{if $v.S_link }}onclick="window.location.href='{{$v.S_link}}'"{{end}}>
+              <img src='{{$v.S_pic}}' alt="{{$v.S_remark}}">
             </div>
+            {{end}}
           </div>
         </div>
         <!-- 核心产品区域 -->