Showing
1 changed file
with
2 additions
and
0 deletions
@@ -37,10 +37,12 @@ class ActWheelSurfModel extends global.yoho.BaseModel { | @@ -37,10 +37,12 @@ class ActWheelSurfModel extends global.yoho.BaseModel { | ||
37 | nowDate = parseInt(nowDate.getTime() / 1000); | 37 | nowDate = parseInt(nowDate.getTime() / 1000); |
38 | if (act.startTime > nowDate) { | 38 | if (act.startTime > nowDate) { |
39 | data.startType = false; | 39 | data.startType = false; |
40 | + data.errorType = 0; | ||
40 | data.errorMsg = '活动未开始'; | 41 | data.errorMsg = '活动未开始'; |
41 | } | 42 | } |
42 | if (act.endTime < nowDate) { | 43 | if (act.endTime < nowDate) { |
43 | data.startType = false; | 44 | data.startType = false; |
45 | + data.errorType = 1; | ||
44 | data.errorMsg = '活动已过期'; | 46 | data.errorMsg = '活动已过期'; |
45 | } | 47 | } |
46 | 48 |
-
Please register or login to post a comment