Просмотр исходного кода

feat:商务合作、客服工作时间调整为广告位

yangfeng 10 месяцев назад
Родитель
Сommit
a1ec00b6a4

+ 3 - 3
src/web/staticres/public-pc/css/pc-bottom.css

@@ -689,8 +689,8 @@
 
 .silde-float {
   position: absolute;
-  left: -210px;
-  min-width: 200px;
+  left: -300px;
+  min-width: 310px;
   background: #fff;
   border-radius: 8px;
   box-shadow: 0px 0px 28px 0px rgb(0 0 0 / 16%);
@@ -770,7 +770,7 @@
   line-height: 22px;
   /* or 157% */
   /* Font/#1d1d1d */
-  left: -240px;
+  left: -320px;
   color: #1D1D1D;
   padding: 12px 20px;
   background: linear-gradient(180deg, #F1F4F8 0%, #FEFEFF 100%);

+ 17 - 1
src/web/templates/common/pcbottom.html

@@ -165,7 +165,7 @@
             <span class="text-customer text-customer-hover"><img src='{{Msg "seo" "cdn"}}/images/index/new/shangwuhezuo-blue.png?v={{Msg "seo" "version"}}' alt=""></span>
             <p class="desc_text_b">商务合作</p>
             <div class="slidePop">
-                <img src="{{Msg " seo" "cdn" }}/common-module/exhibition/img/qr-code-shichang-new.png?v={{Msg "seo" "version"}}" alt="">
+                <img class="cooperation-code" src="" alt="">
                 <p>微信扫一扫<br>商务合作</p>
             </div>
         </div>
@@ -225,6 +225,22 @@ if(ADList.length>0){
 <script defer src='{{Msg "seo" "cdn"}}/common-module/public/js/automatic-id.min.js?v={{Msg "seo" "version"}}'></script>
 <!--渠道合作商侧边栏、底部配置-->
 <script>
+  {{$kf:=(Ad "jy_pc_sidebar_float" -1 .Host (cookie "SESSIONID"))}}
+  var kfADList={{$kf}}
+  var kfHtml="";
+  console.log(kfADList, 'kfADList')
+  if (kfADList.length > 0) {
+    var workTime = kfADList[0]
+    var cooperationCode = kfADList[1]
+    if(workTime){
+      if(workTime.s_pic){
+        $('.silde-float.kf-phone').html(workTime.s_pic.replace('/n', '<br>'))
+      }
+    }
+    if(cooperationCode) {
+      $('.cooperation-code').attr('src', cooperationCode.s_pic)
+    }
+  }
   // 是渠道合作商则读取侧边栏以及底部配置数据
   $(function() {
     {{if .T.cooperateCode }}