Răsfoiți Sursa

feat:三级页翻页按钮样式调整

tsz 2 ani în urmă
părinte
comite
456b44de04

+ 7 - 2
src/web/staticres/site/page/industryInfo/css/industry_content.css

@@ -193,8 +193,13 @@
   font-size: 16px;
   color: #fff;
 }
-.btn_next>button:last-child{
-  margin-left: 52px;
+.btn_next .before_btn {
+  margin-right: 52px;
+}
+.btn_next .before_btn.only_btn{
+  margin-right: 0;
+}
+.btn_next .next_btn{
   color: #686868;
   background: #fff;
   border: 1px solid #E0E0E0;

+ 0 - 2
src/web/templates/site/page/jySchool/strategy.html

@@ -12,7 +12,6 @@
   {{include "/common/pnc.html"}}
   <link rel="stylesheet" type="text/css" href='{{Msg "seo" "cdn"}}/pccss/reset_pc.css?v={{Msg "seo" "version"}}' />
   <link rel="stylesheet" type="text/css" href='{{Msg "seo" "cdn"}}/pccss/public-nav-1200.css?v={{Msg "seo" "version"}}' />
-  <link href="//cdn-common.jianyu360.com/cdn/lib/element-ui/2.15.7/lib/theme-chalk/index.css" rel="stylesheet" />
   <link href='{{Msg "seo" "cdn"}}/css/pc.css?v={{Msg "seo" "version"}}' rel="stylesheet">
   <link href='{{Msg "seo" "cdn"}}/site/page/jySchool/css/introduction.css?v={{Msg "seo" "version"}}' rel="stylesheet">
   </head>
@@ -68,7 +67,6 @@
     </section>
   </body>
   <script type="text/javascript" src='{{Msg "seo" "cdn"}}/js/public-nav.js?v={{Msg "seo" "version"}}'></script>
-  <script src="//cdn-common.jianyu360.com/cdn/lib/element-ui/2.15.7/lib/index.js"></script>
   <script>
     haslogin({{.T.logid}})
   </script>

+ 6 - 2
src/web/templates/site/page/jyblogdetail.html

@@ -90,8 +90,8 @@
             <div class="jyb_ddetail">{{.T.data.s_content}}</div>
           </div>
           <div class="btn_next">
-            {{if .T.lastId}}<button  onclick="window.location.href='/jySite/{{.T.lastId}}.html'" >上一篇</button>{{end}}
-            {{if .T.nextId}}<button  onclick="window.location.href='/jySite/{{.T.nextId}}.html'" >下一篇</button>{{end}}
+            {{if .T.lastId}}<button class="before_btn"  onclick="window.location.href='/jySite/{{.T.lastId}}.html'" >上一篇</button>{{end}}
+            {{if .T.nextId}}<button class="next_btn"  onclick="window.location.href='/jySite/{{.T.nextId}}.html'" >下一篇</button>{{end}}
           </div>
         </div>
         <div class="recommend_title">
@@ -319,6 +319,10 @@
       }
     });
     }
+    var nextId = {{.T.nextId}}
+    if (nextId == '') {
+      $('.before_btn').addClass('only_btn')
+    }
   })
 
 </script>