正在显示
5 个修改的文件
包含
46 行增加
和
5 行删除
@@ -141,8 +141,18 @@ class OrderController extends AdminBaseController | @@ -141,8 +141,18 @@ class OrderController extends AdminBaseController | ||
141 | } | 141 | } |
142 | } | 142 | } |
143 | $list = $this->singleData('order_view',$where,2,[],10); | 143 | $list = $this->singleData('order_view',$where,2,[],10); |
144 | + $orderList = $list->items(); | ||
145 | + foreach ($orderList as $k=>$v) { | ||
146 | + $v['options'] = json_decode($v['options'],true); | ||
147 | + $orderList[$k]['order_price'] = 0; | ||
148 | + foreach ($v['options'] as $ko=>$vo) { | ||
149 | + if($vo['id'] == 64) { | ||
150 | + $orderList[$k]['order_price'] = $vo['user_choose']; | ||
151 | + } | ||
152 | + } | ||
153 | + } | ||
144 | $list->appends($param); | 154 | $list->appends($param); |
145 | - $this->assign('list',$list->items()); | 155 | + $this->assign('list',$orderList); |
146 | $this->assign('page',$list->render()); | 156 | $this->assign('page',$list->render()); |
147 | $this->assign('keyword',isset($param['keyword']) ? $param['keyword'] : ''); | 157 | $this->assign('keyword',isset($param['keyword']) ? $param['keyword'] : ''); |
148 | $this->assign('sort_id',isset($param['sort_id']) ? $param['sort_id'] : ''); | 158 | $this->assign('sort_id',isset($param['sort_id']) ? $param['sort_id'] : ''); |
@@ -210,8 +220,18 @@ class OrderController extends AdminBaseController | @@ -210,8 +220,18 @@ class OrderController extends AdminBaseController | ||
210 | } | 220 | } |
211 | } | 221 | } |
212 | $list = $this->singleData('order_view',$where,2,[],10); | 222 | $list = $this->singleData('order_view',$where,2,[],10); |
223 | + $orderList = $list->items(); | ||
224 | + foreach ($orderList as $k=>$v) { | ||
225 | + $v['options'] = json_decode($v['options'],true); | ||
226 | + $orderList[$k]['order_price'] = 0; | ||
227 | + foreach ($v['options'] as $ko=>$vo) { | ||
228 | + if($vo['id'] == 64) { | ||
229 | + $orderList[$k]['order_price'] = $vo['user_choose']; | ||
230 | + } | ||
231 | + } | ||
232 | + } | ||
213 | $list->appends($param); | 233 | $list->appends($param); |
214 | - $this->assign('list',$list->items()); | 234 | + $this->assign('list',$orderList); |
215 | $this->assign('page',$list->render()); | 235 | $this->assign('page',$list->render()); |
216 | $this->assign('keyword',isset($param['keyword']) ? $param['keyword'] : ''); | 236 | $this->assign('keyword',isset($param['keyword']) ? $param['keyword'] : ''); |
217 | $this->assign('status',isset($param['status']) ? $param['status'] : ''); | 237 | $this->assign('status',isset($param['status']) ? $param['status'] : ''); |
@@ -285,8 +305,18 @@ class OrderController extends AdminBaseController | @@ -285,8 +305,18 @@ class OrderController extends AdminBaseController | ||
285 | } | 305 | } |
286 | } | 306 | } |
287 | $list = $this->singleData('order_view',$where,2,[],10); | 307 | $list = $this->singleData('order_view',$where,2,[],10); |
308 | + $orderList = $list->items(); | ||
309 | + foreach ($orderList as $k=>$v) { | ||
310 | + $v['options'] = json_decode($v['options'],true); | ||
311 | + $orderList[$k]['order_price'] = 0; | ||
312 | + foreach ($v['options'] as $ko=>$vo) { | ||
313 | + if($vo['id'] == 64) { | ||
314 | + $orderList[$k]['order_price'] = $vo['user_choose']; | ||
315 | + } | ||
316 | + } | ||
317 | + } | ||
288 | $list->appends($param); | 318 | $list->appends($param); |
289 | - $this->assign('list',$list->items()); | 319 | + $this->assign('list',$orderList); |
290 | $this->assign('page',$list->render()); | 320 | $this->assign('page',$list->render()); |
291 | $this->assign('keyword',isset($param['keyword']) ? $param['keyword'] : ''); | 321 | $this->assign('keyword',isset($param['keyword']) ? $param['keyword'] : ''); |
292 | $this->assign('sort_id',isset($param['sort_id']) ? $param['sort_id'] : ''); | 322 | $this->assign('sort_id',isset($param['sort_id']) ? $param['sort_id'] : ''); |
@@ -43,11 +43,13 @@ class MemberSalesController extends HomeBaseController | @@ -43,11 +43,13 @@ class MemberSalesController extends HomeBaseController | ||
43 | </div>'; | 43 | </div>'; |
44 | $this->sort_model[2] = '<div class="text_item form_options" data-validate="{validate}" data-type="2"> | 44 | $this->sort_model[2] = '<div class="text_item form_options" data-validate="{validate}" data-type="2"> |
45 | <p class="text_tit"><span class=" _validate">{name}</span>{must}</p> | 45 | <p class="text_tit"><span class=" _validate">{name}</span>{must}</p> |
46 | - <input type="number" name="" id="" value="{value}" class="baby_input" placeholder="请输入{name}" /> | 46 | + <input type="number" name="" onkeyup="this.value=this.value.replace(/\D/g,\'\')" |
47 | +onafterpaste="this.value=this.value.replace(/\D/g,\'\')" id="" value="{value}" class="baby_input" placeholder="请输入{name}" /> | ||
47 | </div>'; | 48 | </div>'; |
48 | $this->sort_model[3] = '<div class="text_item form_options" data-validate="{validate}" data-type="3"> | 49 | $this->sort_model[3] = '<div class="text_item form_options" data-validate="{validate}" data-type="3"> |
49 | <p class="text_tit"><span class=" _validate">{name}</span>{must}</p> | 50 | <p class="text_tit"><span class=" _validate">{name}</span>{must}</p> |
50 | - <input type="number" maxlength="11" name="" id="" value="{value}" class="baby_input" placeholder="请输入{name}" /> | 51 | + <input type="number" maxlength="11" onkeyup="this.value=this.value.replace(/\D/g,\'\')" |
52 | +onafterpaste="this.value=this.value.replace(/\D/g,\'\')" name="" id="" value="{value}" class="baby_input" placeholder="请输入{name}" /> | ||
51 | </div>'; | 53 | </div>'; |
52 | $this->sort_model[4] = '<div class="write_tit form_options" data-validate="{validate}" data-type="4"> | 54 | $this->sort_model[4] = '<div class="write_tit form_options" data-validate="{validate}" data-type="4"> |
53 | <p class="tit"><span class=" _validate">{name}</span></p> | 55 | <p class="tit"><span class=" _validate">{name}</span></p> |
@@ -79,6 +79,7 @@ | @@ -79,6 +79,7 @@ | ||
79 | <th>订单类型</th> | 79 | <th>订单类型</th> |
80 | <th>销售用户名</th> | 80 | <th>销售用户名</th> |
81 | <th>订单确认码</th> | 81 | <th>订单确认码</th> |
82 | + <th>订单价格</th> | ||
82 | <th>订单状态</th> | 83 | <th>订单状态</th> |
83 | <th>支付方式</th> | 84 | <th>支付方式</th> |
84 | <th>收集状态</th> | 85 | <th>收集状态</th> |
@@ -99,6 +100,7 @@ | @@ -99,6 +100,7 @@ | ||
99 | <td>{$vo.sort_name}</td> | 100 | <td>{$vo.sort_name}</td> |
100 | <td>{$vo.user_login}</td> | 101 | <td>{$vo.user_login}</td> |
101 | <td>{$vo.number}</td> | 102 | <td>{$vo.number}</td> |
103 | + <td>{$vo.order_price}</td> | ||
102 | <td><eq name="vo.status" value="0">未支付</eq><eq name="vo.status" value="1">已支付</eq></td> | 104 | <td><eq name="vo.status" value="0">未支付</eq><eq name="vo.status" value="1">已支付</eq></td> |
103 | <td><eq name="vo.pay_type" value="1">微信</eq><eq name="vo.pay_type" value="2">支付宝</eq></td> | 105 | <td><eq name="vo.pay_type" value="1">微信</eq><eq name="vo.pay_type" value="2">支付宝</eq></td> |
104 | <td><eq name="vo.is_stop" value="0">收集中</eq><eq name="vo.is_stop" value="1">已停止</eq></td> | 106 | <td><eq name="vo.is_stop" value="0">收集中</eq><eq name="vo.is_stop" value="1">已停止</eq></td> |
@@ -126,6 +128,7 @@ | @@ -126,6 +128,7 @@ | ||
126 | <th>订单类型</th> | 128 | <th>订单类型</th> |
127 | <th>销售用户名</th> | 129 | <th>销售用户名</th> |
128 | <th>订单确认码</th> | 130 | <th>订单确认码</th> |
131 | + <th>订单价格</th> | ||
129 | <th>订单状态</th> | 132 | <th>订单状态</th> |
130 | <th>支付方式</th> | 133 | <th>支付方式</th> |
131 | <th>收集状态</th> | 134 | <th>收集状态</th> |
@@ -74,6 +74,7 @@ | @@ -74,6 +74,7 @@ | ||
74 | <th>订单类型</th> | 74 | <th>订单类型</th> |
75 | <th>销售用户名</th> | 75 | <th>销售用户名</th> |
76 | <th>订单确认码</th> | 76 | <th>订单确认码</th> |
77 | + <th>订单价格</th> | ||
77 | <th>订单状态</th> | 78 | <th>订单状态</th> |
78 | <th>收集状态</th> | 79 | <th>收集状态</th> |
79 | <th width="130">发布时间</th> | 80 | <th width="130">发布时间</th> |
@@ -91,6 +92,7 @@ | @@ -91,6 +92,7 @@ | ||
91 | <td>{$vo.sort_name}</td> | 92 | <td>{$vo.sort_name}</td> |
92 | <td>{$vo.user_login}</td> | 93 | <td>{$vo.user_login}</td> |
93 | <td>{$vo.number}</td> | 94 | <td>{$vo.number}</td> |
95 | + <td>{$vo.order_price}</td> | ||
94 | <td><eq name="vo.status" value="0">未支付</eq><eq name="vo.status" value="1">已支付</eq></td> | 96 | <td><eq name="vo.status" value="0">未支付</eq><eq name="vo.status" value="1">已支付</eq></td> |
95 | <td><eq name="vo.is_stop" value="0">收集中</eq><eq name="vo.is_stop" value="1">已停止</eq></td> | 97 | <td><eq name="vo.is_stop" value="0">收集中</eq><eq name="vo.is_stop" value="1">已停止</eq></td> |
96 | <td>{:date('Y-m-d H:i',$vo.create_time)}</td> | 98 | <td>{:date('Y-m-d H:i',$vo.create_time)}</td> |
@@ -115,6 +117,7 @@ | @@ -115,6 +117,7 @@ | ||
115 | <th>订单类型</th> | 117 | <th>订单类型</th> |
116 | <th>销售用户名</th> | 118 | <th>销售用户名</th> |
117 | <th>订单确认码</th> | 119 | <th>订单确认码</th> |
120 | + <th>订单价格</th> | ||
118 | <th>订单状态</th> | 121 | <th>订单状态</th> |
119 | <th>收集状态</th> | 122 | <th>收集状态</th> |
120 | <th width="130">发布时间</th> | 123 | <th width="130">发布时间</th> |
@@ -67,6 +67,7 @@ | @@ -67,6 +67,7 @@ | ||
67 | <th>订单类型</th> | 67 | <th>订单类型</th> |
68 | <th>销售用户名</th> | 68 | <th>销售用户名</th> |
69 | <th>订单确认码</th> | 69 | <th>订单确认码</th> |
70 | + <th>订单价格</th> | ||
70 | <th>订单状态</th> | 71 | <th>订单状态</th> |
71 | <th>收集状态</th> | 72 | <th>收集状态</th> |
72 | <th width="130">发布时间</th> | 73 | <th width="130">发布时间</th> |
@@ -84,6 +85,7 @@ | @@ -84,6 +85,7 @@ | ||
84 | <td>{$vo.sort_name}</td> | 85 | <td>{$vo.sort_name}</td> |
85 | <td>{$vo.user_login}</td> | 86 | <td>{$vo.user_login}</td> |
86 | <td>{$vo.number}</td> | 87 | <td>{$vo.number}</td> |
88 | + <td>{$vo.order_price}</td> | ||
87 | <td><eq name="vo.status" value="0">未支付</eq><eq name="vo.status" value="1">已支付</eq></td> | 89 | <td><eq name="vo.status" value="0">未支付</eq><eq name="vo.status" value="1">已支付</eq></td> |
88 | <td><eq name="vo.is_stop" value="0">收集中</eq><eq name="vo.is_stop" value="1">已停止</eq></td> | 90 | <td><eq name="vo.is_stop" value="0">收集中</eq><eq name="vo.is_stop" value="1">已停止</eq></td> |
89 | <td>{:date('Y-m-d H:i',$vo.create_time)}</td> | 91 | <td>{:date('Y-m-d H:i',$vo.create_time)}</td> |
@@ -108,6 +110,7 @@ | @@ -108,6 +110,7 @@ | ||
108 | <th>订单类型</th> | 110 | <th>订单类型</th> |
109 | <th>销售用户名</th> | 111 | <th>销售用户名</th> |
110 | <th>订单确认码</th> | 112 | <th>订单确认码</th> |
113 | + <th>订单价格</th> | ||
111 | <th>订单状态</th> | 114 | <th>订单状态</th> |
112 | <th>收集状态</th> | 115 | <th>收集状态</th> |
113 | <th width="130">发布时间</th> | 116 | <th width="130">发布时间</th> |
-
请 注册 或 登录 后发表评论