Ver código fonte

时间问题

bobo 3 anos atrás
pai
commit
956ec0b755
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      pages/luckDraw/common.js

+ 2 - 0
pages/luckDraw/common.js

@@ -13,6 +13,7 @@ export default {
         if (this.isEmpty(v)) {
             return null
         }
+        ymd = ymd.replace(/-/g, '/')     
         if (ymd) {
             v = ymd + " " + v
         }
@@ -65,6 +66,7 @@ export default {
             activity.statusText = "即将开始"
             return
         } 
+        
         if (nowTime > dayEndTime) {
             diffSec = dayBeginTime + 86400 - nowTime
             activity.status = 5