浏览代码

绝地求生20180915修改,版面

Eechon 6 年之前
父节点
当前提交
ef231f9d2b

+ 6 - 6
2017专区/绝地求生/src/_index_new.html

@@ -439,7 +439,7 @@
                         </h2>
                     </div>
                     <div class="fengshen-bd">
-                        <a href="">
+                        <a target="_self" href="#weapon">
                             <img src="/src/img/fengshen-bg.png" />
                         </a>
                     </div>
@@ -596,7 +596,7 @@
                                                     <span class="gItem-vdIcon"></span>
                                                     <span class="gItem-vdTime">07:40</span>
                                                 </div>
-                                                <h3 class="gItem-title" title="守望先锋午时已到第23期:这期又是大锤">守望先锋午时已到第23期:这期又是大锤</h3>
+                                                <h3 class="gItem-title" title="守望先锋午时已到第23期:这期又是大锤">1111守望先锋午时已到第23期:这期又是大锤</h3>
                                             </a>
                                         </li>
                                         <li class="g-col-gItem">
@@ -716,7 +716,7 @@
                                                     <span class="gItem-vdIcon"></span>
                                                     <span class="gItem-vdTime">07:40</span>
                                                 </div>
-                                                <h3 class="gItem-title" title="守望先锋午时已到第23期:这期又是大锤">守望先锋午时已到第23期:这期又是大锤</h3>
+                                                <h3 class="gItem-title" title="守望先锋午时已到第23期:这期又是大锤">2222守望先锋午时已到第23期:这期又是大锤</h3>
                                             </a>
                                         </li>
                                         <li class="g-col-gItem">
@@ -836,7 +836,7 @@
                                                     <span class="gItem-vdIcon"></span>
                                                     <span class="gItem-vdTime">07:40</span>
                                                 </div>
-                                                <h3 class="gItem-title" title="守望先锋午时已到第23期:这期又是大锤">守望先锋午时已到第23期:这期又是大锤</h3>
+                                                <h3 class="gItem-title" title="守望先锋午时已到第23期:这期又是大锤">33333333守望先锋午时已到第23期:这期又是大锤</h3>
                                             </a>
                                         </li>
                                         <li class="g-col-gItem">
@@ -956,7 +956,7 @@
                                                     <span class="gItem-vdIcon"></span>
                                                     <span class="gItem-vdTime">07:40</span>
                                                 </div>
-                                                <h3 class="gItem-title" title="守望先锋午时已到第23期:这期又是大锤">守望先锋午时已到第23期:这期又是大锤</h3>
+                                                <h3 class="gItem-title" title="守望先锋午时已到第23期:这期又是大锤">444444守望先锋午时已到第23期:这期又是大锤</h3>
                                             </a>
                                         </li>
                                         <li class="g-col-gItem">
@@ -1437,7 +1437,7 @@
                 <!-- 攻略中心 e-->
 
                 <!--机械库 s-->
-                <div class="g-zq-inner dw-mod-repertory">
+                <div class="g-zq-inner dw-mod-repertory" id="weapon">
                     <div class="mod-large-title white-skin">
                         <h2>
                             <i class="icon-repertory"></i>枪械库</h2>

+ 15 - 2
2017专区/绝地求生/src/modules/index-new.js

@@ -161,12 +161,12 @@ seaLoader(function (seajs) {
 
         if ($('[data-role="tab-comlist"]').length) {
             //排行榜
-            new Tabs({
+            /* new Tabs({
                 element: '[data-role="tab-rank"]',
                 classPrefix: null,
                 activeTriggerClass: 'is-active'
             })
-
+ */
             new Tabs({
                 element: '[data-role="tab-comlist"]',
                 triggers: '.one-level>.g-tab__trigger',
@@ -345,6 +345,19 @@ var C = {
 
         var channel = $("body").attr("data-id")
         $('.dw-mod-nav .mod-hd .nav-fl td[data-id=' + channel + ']').addClass("active")
+
+
+        $(".fengshen-bd").on("click","a",function(e){
+            var $this = $(this);
+            var srcollId = $this.attr("href");
+
+            if(!/http/.test(srcollId)) {
+                var top = $(srcollId).offset().top-50;
+                
+                $("html,body").animate({scrollTop:top},400);
+                return false;
+            }
+        })
     }
 }
 

+ 9 - 1
2017专区/绝地求生/src/sass/global-new.scss

@@ -1133,7 +1133,8 @@ hot-cate;
 
 .dw-mod-video {
     .mod-large-title {
-        margin-bottom: 7px;
+        margin-bottom: 8px;
+        border-bottom: none;
         h2{
             position: absolute;
         }
@@ -2050,6 +2051,13 @@ hot-cate;
 
 .dw-mod-abvideo {
     padding-top: 40px;
+    .mod-large-title {
+        margin-bottom: 8px;
+        border-bottom: none;
+        h2{
+            position: absolute;
+        }
+    }
     .dw-mod-fl {
         .mod-title {
             border-bottom: $baseBorder;