Commit 1981d103dbad0d58791d9ea89ad43a80716002d3
1 parent
afce059f
【一键订C端:安排包间成功,发送邀请函后,订单未到时间,邀请函显示订座已完成】https://www.tapd.cn/57419716/bugtrace/bug…
…s/view?bug_id=1157419716001002595
Showing
1 changed file
with
2 additions
and
6 deletions
| @@ -3,6 +3,7 @@ var mta = require('mta-wechat-analysis') | @@ -3,6 +3,7 @@ var mta = require('mta-wechat-analysis') | ||
| 3 | import util from '../../utils/util'; | 3 | import util from '../../utils/util'; |
| 4 | import App from '../../utils/api'; | 4 | import App from '../../utils/api'; |
| 5 | import TP from '../../utils/tpls'; | 5 | import TP from '../../utils/tpls'; |
| 6 | +import RS from '../../utils/reserveStatus' | ||
| 6 | const {regeneratorRuntime} = global | 7 | const {regeneratorRuntime} = global |
| 7 | import ST from '../../utils/sms_tpls'; | 8 | import ST from '../../utils/sms_tpls'; |
| 8 | Page({ | 9 | Page({ |
| @@ -150,12 +151,7 @@ Page({ | @@ -150,12 +151,7 @@ Page({ | ||
| 150 | // detail.cusman_phone='15877556369'; | 151 | // detail.cusman_phone='15877556369'; |
| 151 | // detail.cusman_account='wx:vking'; | 152 | // detail.cusman_account='wx:vking'; |
| 152 | // } | 153 | // } |
| 153 | - let ns = new Date() / 1000 | ||
| 154 | - detail.hasCancel = detail.status == 4 | ||
| 155 | - detail.hasOvered = false | ||
| 156 | - if (!detail.hasCancel) { | ||
| 157 | - detail.hasOvered = ns > detail.ddate || detail.status >= 2 | ||
| 158 | - } | 154 | + detail=RS.reserve(detail); |
| 159 | return detail; | 155 | return detail; |
| 160 | }, | 156 | }, |
| 161 | showManager(){ | 157 | showManager(){ |
-
Please register or login to post a comment