Sfoglia il codice sorgente

修改移动端新问题

master
等你 1 mese fa
parent
commit
3eabac80c1

+ 1
- 0
src/pages/common/css/common.less Vedi File

@@ -556,6 +556,7 @@ header{
556 556
             position: absolute;
557 557
             top: -60px;
558 558
             left: 0px;
559
+            display: none;
559 560
             background-color: #ffffff;
560 561
             background-image: url("../images/logoB.png");
561 562
             background-size: 89px 22px;

+ 22
- 1
src/pages/common/js/Common.js Vedi File

@@ -298,6 +298,7 @@ export default class Common {
298 298
     let navFlag = document.querySelector(".headerMobile .navFlag");
299 299
     let navMenus = document.querySelectorAll(".headerMobile .navMenu>div");
300 300
     let logo = document.querySelector(".headerMobile .logo");
301
+    let aClick=document.querySelectorAll(".headerMobile .navMenu>div .menuSon a");
301 302
     logo.addEventListener("click", (e) => {
302 303
       window.location.href = "/index.html"
303 304
     });
@@ -310,7 +311,27 @@ export default class Common {
310 311
         }
311 312
       });
312 313
     })
313
-
314
+    aClick.forEach(function (item) {
315
+      item.addEventListener("click", (e) => {
316
+        navFlagBtn.dataset.flag = 0;
317
+        navFlagBtn
318
+          .querySelector(".lineTop")
319
+          .classList.remove("arrowDirectionDown");
320
+        navFlagBtn
321
+          .querySelector(".lineBottom")
322
+          .classList.remove("arrowDirectionUp");
323
+        navFlagBtn
324
+          .querySelector(".lineCenter")
325
+          .classList.remove("arrowDirectionCenter");
326
+        gsap.to(navFlag, {
327
+          xPercent: 100, opacity: 0,
328
+          onComplete: () => {
329
+            navFlag.classList.remove("FlagOpen");
330
+          }
331
+        });
332
+        navFlagBtn.classList.remove("btnOpen");
333
+      })
334
+    })
314 335
 
315 336
     //0-关闭状态、1-为打开状态
316 337
     navFlagBtn.addEventListener("click", (e) => {

+ 1
- 1
src/pages/index/App.js Vedi File

@@ -405,7 +405,7 @@ export default class App {
405 405
             //     console.log(e,'dddd',maxYear,num,historySwiper.getTranslate());
406 406
             // });
407 407
             if(isMob){
408
-                // historySwiper.slideTo(num);
408
+                historySwiper.slideTo(num);
409 409
                 historyTits.forEach((item,index)=>{
410 410
                     let yearT=item.textContent.substring(0,4)*1;
411 411
                     if(yearT==year){

+ 1
- 1
src/pages/news/index.less Vedi File

@@ -1226,7 +1226,7 @@ img{
1226 1226
                             width: auto;
1227 1227
                             height: auto;
1228 1228
                             overflow: unset;
1229
-                            line-height: 18px;
1229
+                            line-height: 16px;
1230 1230
                             font-size: 14px;
1231 1231
                             color: #A7A5A5;
1232 1232
                             padding: 0;

+ 1
- 1
src/pages/socialResponsibility/index.less Vedi File

@@ -581,7 +581,7 @@ a{
581 581
                             width: auto;
582 582
                             height: auto;
583 583
                             overflow: unset;
584
-                            line-height: 18px;
584
+                            line-height: 16px;
585 585
                             font-size: 14px;
586 586
                             color: #A7A5A5;
587 587
                             padding: 0;

Loading…
Annulla
Salva