소스 검색

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

wenmenghao321 2 년 전
부모
커밋
1ac16c7816
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  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>
         <!-- 核心产品区域 -->