瀏覽代碼

修改反馈问题,图替换

zjm
等你 2 月之前
父節點
當前提交
b50af940ef

二進制
dev/static/images/index/aboutbg.png 查看文件


二進制
dev/static/images/index/bannerV.mp4 查看文件


二進制
dev/static/images/index/bannerVm.mp4 查看文件


二進制
dev/static/images/index/his2002.jpg 查看文件


二進制
dev/static/images/index/his2003.jpg 查看文件


二進制
dev/static/images/index/product13.jpg 查看文件


二進制
dev/static/images/product/Industrial1.png 查看文件


二進制
dev/static/images/product/Industrial1m.png 查看文件


二進制
dev/static/images/product/Industrial2.png 查看文件


二進制
dev/static/images/product/Industrial2m.png 查看文件


二進制
dev/static/images/product/Industrial3.png 查看文件


二進制
dev/static/images/product/Industrial3m.png 查看文件


+ 1
- 1
src/pages/common/tpl/header.tpl 查看文件

@@ -56,7 +56,7 @@
56 56
                 </div>
57 57
             </div>
58 58
         </div>
59
-        <div class="language menuOne">
59
+        <div class="language menuOne" style="display:none">
60 60
             <div class="btn2 btnW searchDiv"><span class="iconfont icon-search"></span></div>
61 61
             <!--<span class="line" style="display:none"></span>
62 62
             <a href="./join.html#contactUs" class="aborder">联系我们</a>-->

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

@@ -30,7 +30,11 @@ export default class App {
30 30
             }
31 31
             if (item.nodeName == "VIDEO") {
32 32
                 console.log(item, 'item---2')
33
-                item.setAttribute("src", item.dataset.src);
33
+                if(isMob){item.setAttribute("src", item.dataset.srcm);}
34
+                else{
35
+                    item.setAttribute("src", item.dataset.src);
36
+                }
37
+                // item.setAttribute("src", item.dataset.src);
34 38
                 // item.load();
35 39
             }
36 40
         });
@@ -245,7 +249,6 @@ export default class App {
245 249
                 },
246 250
                 on:{
247 251
                     slideChange: function(){
248
-                        console.log(this.realIndex);
249 252
                         let index0=this.realIndex;
250 253
                         scrollLeft(index0)
251 254
                         productCks.forEach((item,index)=>{
@@ -277,6 +280,9 @@ export default class App {
277 280
         let fillLine = document.querySelector(".fillLine");
278 281
         allNum.textContent=historySlides.length;
279 282
         let historySwiper = null;
283
+        let defaultYear=2020;
284
+        let yearLin=0;
285
+        let hisSlides=[];
280 286
         if(isMob){
281 287
             let rightDiv=document.querySelector(".rightDiv").offsetWidth;
282 288
             let fillLineWidth=parseFloat(rightDiv/historySlides.length);
@@ -311,10 +317,30 @@ export default class App {
311 317
                     nextEl: '.btn-nextH1',
312 318
                     prevEl: '.btn-prevH1',
313 319
                 },
320
+                on:{
321
+                    slideChange: function(e,v){
322
+                      let nowSwiper=e.activeIndex;
323
+                      let year=parseInt(historySlides[nowSwiper].querySelector(".hisTime").textContent);
324
+                      let direction = nowSwiper > yearLin ? 'right' : 'left'; // 判断滑动方向
325
+                      console.log(direction, 'direction', yearLin, nowSwiper);
326
+                      
327
+                      yearLin=nowSwiper;
328
+                      if(direction=='left'&&year<defaultYear){
329
+                        let yearNew=defaultYear-10;
330
+                        defaultYear=yearNew;
331
+                        hisCk2(yearNew)
332
+                      }else if(direction=='right'&&year>defaultYear+10){
333
+                        let yearNew=defaultYear+10;
334
+                        defaultYear=yearNew;
335
+                        hisCk2(yearNew)
336
+                      }
337
+                      
338
+                    },
339
+                  },
314 340
               });
315 341
         }
316 342
         
317
-        let hisSlides=[];
343
+        
318 344
         historyTits.forEach((item,index)=>{
319 345
             item.addEventListener("click", (e) => {
320 346
                 historyTits.forEach(item2=>{
@@ -322,6 +348,7 @@ export default class App {
322 348
                 });
323 349
                 item.classList.add("active");
324 350
                 let year=item.textContent.substring(0,4)*1;
351
+                defaultYear=year;
325 352
                 hisCk(year)
326 353
             });
327 354
         });
@@ -365,7 +392,32 @@ export default class App {
365 392
                 historySwiper.setTransition(1000);//设定过渡的时间
366 393
                 historySwiper.setTranslate(moveN);//设定位移,可以为正数
367 394
             }
368
-            
395
+        }
396
+        function hisCk2(year){
397
+            console.log(year,'year');
398
+            let maxYear = null;
399
+            let num=0;
400
+            let swNum=0;
401
+            hisSlides.forEach((item,index)=>{
402
+                if(item.year>=year&&item.year<year+10){
403
+                    historySlides[index].classList.add("activeShow");
404
+                    swNum++;
405
+                    if (maxYear === null || item.year >= maxYear) {
406
+                        maxYear = item.year;
407
+                        num=item.num;
408
+                    }
409
+                }else{
410
+                    historySlides[index].classList.remove("activeShow");
411
+                }
412
+            });
413
+            historyTits.forEach((item,index)=>{
414
+                let yearT=item.textContent.substring(0,4)*1;
415
+                if(yearT==year){
416
+                    item.classList.add("active");
417
+                }else{
418
+                    item.classList.remove("active");
419
+                }
420
+            });
369 421
             
370 422
         }
371 423
         //企业文化

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

@@ -36,7 +36,7 @@
36 36
               <video
37 37
                 class="lazy"
38 38
                 data-src="./static/images/index/bannerV.mp4"
39
-                data-srcM="./static/images/index/bannerV.mp4"
39
+                data-srcM="./static/images/index/bannerVm.mp4"
40 40
                 autoplay
41 41
                 muted
42 42
                 loop

+ 2
- 2
src/pages/join/index.html 查看文件

@@ -201,9 +201,9 @@
201 201
               <div class="wow fadeInUp inLiCon">
202 202
                 <div class="title">反舞弊举报通道</div>
203 203
                 <div class="liLine"></div>
204
-                <div><span class="iconfont icon-dianhua"></span>举报热线:15642052356</div>
204
+                <div><span class="iconfont icon-dianhua"></span>举报电话:010-65008562转619</div>
205 205
                 <div class="liLine"></div>
206
-                <div><span class="iconfont icon-youjian"></span>举报邮箱:wutao@lnzzgroup.com</div>
206
+                <div><span class="iconfont icon-youjian"></span>举报邮箱:wutao@Inzzgroup.com</div>
207 207
               </div>
208 208
             </div>
209 209
           </div>

Loading…
取消
儲存