浏览代码

修改移动端新问题

master
等你 1 个月前
父节点
当前提交
3eabac80c1

+ 1
- 0
src/pages/common/css/common.less 查看文件

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

+ 22
- 1
src/pages/common/js/Common.js 查看文件

298
     let navFlag = document.querySelector(".headerMobile .navFlag");
298
     let navFlag = document.querySelector(".headerMobile .navFlag");
299
     let navMenus = document.querySelectorAll(".headerMobile .navMenu>div");
299
     let navMenus = document.querySelectorAll(".headerMobile .navMenu>div");
300
     let logo = document.querySelector(".headerMobile .logo");
300
     let logo = document.querySelector(".headerMobile .logo");
301
+    let aClick=document.querySelectorAll(".headerMobile .navMenu>div .menuSon a");
301
     logo.addEventListener("click", (e) => {
302
     logo.addEventListener("click", (e) => {
302
       window.location.href = "/index.html"
303
       window.location.href = "/index.html"
303
     });
304
     });
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
     //0-关闭状态、1-为打开状态
336
     //0-关闭状态、1-为打开状态
316
     navFlagBtn.addEventListener("click", (e) => {
337
     navFlagBtn.addEventListener("click", (e) => {

+ 1
- 1
src/pages/index/App.js 查看文件

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

+ 1
- 1
src/pages/news/index.less 查看文件

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

+ 1
- 1
src/pages/socialResponsibility/index.less 查看文件

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

正在加载...
取消
保存