修改补链in/out

master
chenzhi 5 years ago
parent 0a7096623b
commit dd22e6d0e9

@ -111,6 +111,7 @@ class MendController extends ThinkController {
{ {
$id = I('id'); $id = I('id');
$info = M("shift_task")->where("id = {$id} and status = 0")->find(); $info = M("shift_task")->where("id = {$id} and status = 0")->find();
if(empty($info)){ if(empty($info)){
$this->error("补链不存在或已处理"); $this->error("补链不存在或已处理");
} }
@ -118,6 +119,8 @@ class MendController extends ThinkController {
$info['user_id'] = json_decode($info['shift_ids'])[0]; $info['user_id'] = json_decode($info['shift_ids'])[0];
$info['order_time'] = date("Y-m-d",$info['order_time']); $info['order_time'] = date("Y-m-d",$info['order_time']);
$userid = $info['user_id'];
$info['account'] = M("User","tab_")->field("account")->where("id = '{$userid}'")->find()['account'];
$this->assign('data',$info); $this->assign('data',$info);
$this->display(); $this->display();
} }

@ -57,7 +57,7 @@
<tr> <tr>
<td class="l noticeinfo">用户账号</td> <td class="l noticeinfo">用户账号</td>
<td class="r table_radio"> <td class="r table_radio">
<input name="account" value="{:get_promote_name($data['promote_id'])}" disabled readonly type="text" class=""> <input name="account" value="{$data['account']}" disabled readonly type="text" class="">
</td> </td>
</tr> </tr>
<tr> <tr>
@ -82,13 +82,13 @@
</td> </td>
</tr> </tr>
<tr> <!-- <tr>
<td class="l noticeinfo">换绑类型</td> <td class="l noticeinfo">换绑类型</td>
<td class="r table_radio"> <td class="r table_radio">
<input name="bind_type" value="1" type="radio">In <input name="bind_type" value="1" type="radio">In
<input name="bind_type" value="2" type="radio">Out <input name="bind_type" value="2" type="radio">Out
</td> </td>
</tr> </tr> -->
<tr> <tr>
<td class="l noticeinfo">备注</td> <td class="l noticeinfo">备注</td>

Loading…
Cancel
Save