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

Merge branch 'master' of http://git.dongerkj.com:9095/derkj/NN2020042801

wesmiler 5 лет назад
Родитель
Сommit
4b4e10a13e

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
public/themes/mjmls/index/news/index.html


+ 62 - 6
public/themes/mjmls/index/news/show.html

@@ -4,7 +4,19 @@
 <link rel="stylesheet" href="__TMPL__/static/css/dianzan.css">
 <!-- nav -->
 <include file="block/nav" />
-
+<style>
+    .phlist{
+        background: red; display: block;
+        float: left;
+        width: 14px;
+        height: 14px;
+        line-height: 14px;
+        text-align: center;
+        font-size: 12px;
+        color: #fff;
+        margin: 3px 12px 0 0;
+    }
+</style>
 <!-- content start -->
 <!-- 面包屑 -->
 <div class="container crumbs">当前位置:
@@ -153,10 +165,10 @@
             </ul>
         </div> -->
     </div>
-    <div class="fr right-sidebar mob_none">
+    <div class="fr right-sidebar " id="mobile_tion" >
         <div class="side-box">
-            <h2>最新入驻品牌</h2>
-            <ul class="rqb-list">
+            <h2>最新入驻品牌排行榜</h2>
+            <ul class="rqb-list mj_new">
                 <foreach name="brand_jx" id="v">
                 <li>
                     <i></i>
@@ -168,9 +180,10 @@
         </div>
         <div class="side-box">
             <h2>品牌推荐</h2>
-            <ul class="brand-recome">
+            <ul class="brand-recome mj_sentiment">
                 <foreach name="jx_jm" id="v">
                 <li>
+				
                     <a href="/b{$v.id}/" target="_blank" {$v.title}>
                         <img class="fl" src="{:cmf_get_image_preview_url($v.logo)}" width="93.31" height="70" alt="{$v.title}">
                         <h3 class="nowrap">{$v.title}</h3>
@@ -183,7 +196,7 @@
         </div>
         <div class="side-box">
             <h2>加盟资讯</h2>
-            <ul class="join-information">
+            <ul class="join-information hot-article">
                 <foreach name="jm_news" id="v">
                 <li><a href="/news{$v.id}/" target="" title="{$v.title}">{$v.title}</a></li>
                 </foreach>
@@ -191,7 +204,50 @@
         </div>
     </div>
     <div class="clearfix"></div>
+ <script type="text/javascript">
+
+        $(window).bind("load resize",function() {
+            var result = window.matchMedia('(max-width: 768px)');
+            if (result.matches) {
+
+                $(".hot-article li").each(function(i){
+
+                    if(i>4){
+
+                        $(this).hide();
+                    }
+                });
+                //rqb-list
+                $(".mj_new li").each(function(i){
+
+                    if(i>4){
+
+                        $(this).hide();
+                    }
+                });
+                $(".mj_sentiment li").each(function(i){
 
+                    if(i>4){
+                        $(this).hide();
+                    }
+                });
+                $("#mobile_tion").removeClass("right-sidebar");
+                $("#mobile_tion").removeClass("fr");
+                //side-box
+
+            } else {
+
+
+                $(".hot-article li").show();
+                //rqb-list
+                $(".mj_new li").show();
+                $(".mj_sentiment li").show();
+                $("#mobile_tion").addClass("right-sidebar");
+                $("#mobile_tion").addClass("fr");
+
+            }
+        });
+    </script>
 <script>
     /* 
      * 动态点赞