正在显示
2 个修改的文件
包含
16 行增加
和
4 行删除
@@ -90,7 +90,19 @@ class OrderController extends HomeBaseController{ | @@ -90,7 +90,19 @@ class OrderController extends HomeBaseController{ | ||
90 | $interval = Db::name('interval')->where('id',1)->find(); | 90 | $interval = Db::name('interval')->where('id',1)->find(); |
91 | 91 | ||
92 | //判断是否在时间段内 | 92 | //判断是否在时间段内 |
93 | - | 93 | + $interval['start_time']; |
94 | + if ($end_time > $interval['start_time'] && $end_time < $interval['end_time']){ | ||
95 | + if ($start_time > $interval['start_time']){ | ||
96 | + | ||
97 | + }else if ($start_time < $interval['start_time']){ | ||
98 | + | ||
99 | + } | ||
100 | + }elseif ($start_time < $interval['end_time'] && $end_time > $interval['end_time']){ | ||
101 | + | ||
102 | + }else{ | ||
103 | + | ||
104 | + } | ||
105 | + | ||
94 | 106 | ||
95 | $price=1; | 107 | $price=1; |
96 | return $price; | 108 | return $price; |
@@ -79,12 +79,12 @@ | @@ -79,12 +79,12 @@ | ||
79 | </td> | 79 | </td> |
80 | <td> | 80 | <td> |
81 | <switch name="vo.electricity"> | 81 | <switch name="vo.electricity"> |
82 | - <case value="0"><span class="label-success">低电</span></case> | ||
83 | - <case value="1"><span class="label-warning">正常</span></case> | 82 | + <case value="0"><span class="label-danger">低电</span></case> |
83 | + <case value="1"><span class="label-success">正常</span></case> | ||
84 | </switch> | 84 | </switch> |
85 | </td> | 85 | </td> |
86 | <td> | 86 | <td> |
87 | - {$vo.create_time} | 87 | + {:date('Y-m-d H:i:s',$vo.create_time)} |
88 | </td> | 88 | </td> |
89 | <td> | 89 | <td> |
90 | <img src="{:cmf_get_image_preview_url($vo.qr_code)}"> | 90 | <img src="{:cmf_get_image_preview_url($vo.qr_code)}"> |
-
请 注册 或 登录 后发表评论