Browse Source

feat:行业展会头部改为广告位

zhangsiya 1 year ago
parent
commit
8f88d59d7b

+ 16 - 9
src/web/staticres/common-module/exhibition/css/index_pc.css

@@ -11,17 +11,24 @@
   #vm_exhibition .head {
     width: 100%;
     height: 360px;
-    background: url('/common-module/exhibition/img/bannerBG.png?v=1') center center no-repeat;
-    background-size: cover;
-
+    /*background: url('/common-module/exhibition/img/bannerBG.png?v=1') center center no-repeat;*/
+    /*background-size: cover;*/
   }
+#vm_exhibition .exhibition-head{
+    width: 100%;
+    height:100%;
+}
+#vm_exhibition .head img {
+    width: 100%;
+    height:100%;
+}
 
-  #vm_exhibition .head .content {
-    width: 1200px;
-    height: 360px;
-    margin: auto;
-    position: relative;
-  }
+  /*#vm_exhibition .head content {*/
+  /*  width: 1200px;*/
+  /*  height: 360px;*/
+  /*  margin: auto;*/
+  /*  position: relative;*/
+  /*}*/
 
   #vm_exhibition .qr {
     width: 192px;

+ 11 - 6
src/web/templates/exhibition/pc/index.html

@@ -35,12 +35,17 @@
   <div id="vm_exhibition">
     <div class="box">
       <div class="head">
-        <div class="content">
-          <div class="qr">
-            <img src="{{Msg " seo" "cdn" }}/common-module/exhibition/img/qr-code-shichang.png?v={{Msg "seo" "version"}}" alt="">
-            <p class="text">扫码咨询 展会合作</p>
-          </div>
-        </div>
+          {{range $k,$v:=Ad "pc-exhibition-index-head" -1 .Host (cookie "SESSIONID")}}
+              <div class="exhibition-head" >
+                  <img src="{{Msg "seo" "cdn"}}{{$v.S_pic}}" alt="">
+              </div>
+          {{end}}
+<!--        <div class="content">-->
+<!--          <div class="qr">-->
+<!--            <img src="{{Msg " seo" "cdn" }}/common-module/exhibition/img/qr-code-shichang.png?v={{Msg "seo" "version"}}" alt="">-->
+<!--            <p class="text">扫码咨询 展会合作</p>-->
+<!--          </div>-->
+<!--        </div>-->
       </div>
       <h2 class="title pc_hide">热门展会</h2>
       <div class="content bannerSwiper">