Przeglądaj źródła

feat(福利Go)卡券中心 修改自定义轮播图

xing.li 3 lat temu
rodzic
commit
376434ec80

+ 1 - 1
pages/welfareMall/historical/historical.wxss

@@ -111,7 +111,7 @@
 .content-line{
   width: 679rpx;
   height: 1px;
-  background: #A0A0A0;
+  background: #EFEFEF;
 }
 
 .content-lower{

+ 7 - 4
pages/welfareMall/index/index.js

@@ -17,7 +17,7 @@ Page({
       interval: 5000,
       duration: 500,
       currentSwiper:0,
-      indicatorDots:true,
+      // indicatorDots:true,
       grayTheme:false
   },
 
@@ -77,9 +77,12 @@ Page({
 
   },
   swiperChange: function(e) {
-    this.setData({
-      currentSwiper: e.detail.current
-    })
+    if (e.detail.current != this.data.currentSwiper) {
+      this.setData({
+        currentSwiper: e.detail.current
+      })
+    }
+   
   },
 
    //跳转超值券包