Explorar o código

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

xing.li %!s(int64=3) %!d(string=hai) anos
pai
achega
e3de8d3eaf
Modificáronse 1 ficheiros con 3 adicións e 6 borrados
  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