Explorar o código

提交走马灯调整

wenmenghao321 %!s(int64=2) %!d(string=hai) anos
pai
achega
8fa08483fa
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      src/web/templates/pc/index.html

+ 5 - 2
src/web/templates/pc/index.html

@@ -606,6 +606,7 @@
         // this.lunBoFn() // banner轮播
         // this.lunBoFn() // banner轮播
         // this.getBuyerSearchPower() // 采购单位搜索权限
         // this.getBuyerSearchPower() // 采购单位搜索权限
         // this.getOnlineDataFn() // 在线数据
         // this.getOnlineDataFn() // 在线数据
+        this.partnersInit() //  合作伙伴走马灯
         this.setCopyRightForBottom() // 设置copyright
         this.setCopyRightForBottom() // 设置copyright
         this.onClickEvent()
         this.onClickEvent()
       },
       },
@@ -625,8 +626,10 @@
             }
             }
           }
           }
         })
         })
-         // 合作伙伴走马灯
-         var partners = new Swiper('.partners-container', {
+      },
+      partnersInit:function(){
+        // 合作伙伴走马灯
+        var partners = new Swiper('.partners-container', {
           slidesPerView: "auto",
           slidesPerView: "auto",
           centeredSlides: true,
           centeredSlides: true,
           speed: 4000,
           speed: 4000,