Parcourir la source

Merge remote-tracking branch 'origin/jeffrey/feat/coupon-center' into jeffrey/feat/coupon-center

xing.li il y a 3 ans
Parent
commit
e3de8d3eaf
1 fichiers modifiés avec 3 ajouts et 6 suppressions
  1. 3 6
      pages/luckDraw/index.js

+ 3 - 6
pages/luckDraw/index.js

@@ -21,8 +21,6 @@ Page({
      */
     onLoad: function (options) {
         Object.assign(this, Common)
-        this.getActivityList();
-        this.startCountdownTimer()
     },
 
     /**
@@ -35,7 +33,8 @@ Page({
      * 生命周期函数--监听页面显示
      */
     onShow: function () {
-
+        this.getActivityList();
+        this.startCountdownTimer()
     },
 
     /**
@@ -148,9 +147,7 @@ Page({
         }
         const now = new Date();
         this.data.activityList.forEach(v => {
-            if (v.status == 1 || v.status == 4 || v.status == 5) {
-                this.setActivityCountdownTime(now, v)
-            }
+            this.setActivityCountdownTime(now, v)
         })
         this.setData({
             activityList: this.data.activityList