正在显示
2 个修改的文件
包含
70 行增加
和
0 行删除
@@ -116,6 +116,22 @@ class AdminLightOrderController extends AdminBaseController | @@ -116,6 +116,22 @@ class AdminLightOrderController extends AdminBaseController | ||
116 | $this->assign('list',$data); | 116 | $this->assign('list',$data); |
117 | return $this->fetch(); | 117 | return $this->fetch(); |
118 | } | 118 | } |
119 | + public function index3(){ | ||
120 | + $id=$this->request->param('id'); | ||
121 | + $data = Db::name('light_order') | ||
122 | + ->alias('lo') | ||
123 | + ->join('light l','lo.light_id=l.id') | ||
124 | + ->join('users u','lo.users_id=u.id') | ||
125 | + ->join('temple t','l.temple_id=t.id') | ||
126 | + ->where('t.id',$id) | ||
127 | + ->field('lo.*,u.*') | ||
128 | + ->order('lo.create_time','desc') | ||
129 | + ->paginate('10'); | ||
130 | + $this->assign('page',$data->render()); | ||
131 | + $this->assign('list',$data); | ||
132 | + return $this->fetch(); | ||
133 | + } | ||
134 | + | ||
119 | /** | 135 | /** |
120 | * 编辑订单 | 136 | * 编辑订单 |
121 | * @adminMenu( | 137 | * @adminMenu( |
1 | +<include file="public@header"/> | ||
2 | +</head> | ||
3 | +<body> | ||
4 | +<div class="wrap"> | ||
5 | + <ul class="nav nav-tabs"> | ||
6 | + <li class="active"><a href="javascript:;">订单列表</a></li> | ||
7 | + </ul> | ||
8 | + <form method="post" class="js-ajax-form margin-top-20"> | ||
9 | + <div class="table-actions"> | ||
10 | + <!--<button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>--> | ||
11 | + </div> | ||
12 | + <table class="table table-hover table-bordered table-list"> | ||
13 | + <thead> | ||
14 | + <tr> | ||
15 | + <th width="50">ID</th> | ||
16 | + <th>下单时间</th> | ||
17 | + <th>用户姓名</th> | ||
18 | + <th>微信昵称</th> | ||
19 | + <th>手机号</th> | ||
20 | + <th>支付金额</th> | ||
21 | + </tr> | ||
22 | + </thead> | ||
23 | + <tbody> | ||
24 | + <foreach name="list" item="vo"> | ||
25 | + <tr> | ||
26 | + <td>{$vo.id}</td> | ||
27 | + <td>{:date('Y-m-d',$vo.pay_time);}</td> | ||
28 | + <td>{$vo.user_name}</td> | ||
29 | + <td>{$vo.nickname}</td> | ||
30 | + <td>{$vo.mobile}</td> | ||
31 | + <td>{$vo.money}</td> | ||
32 | + </tr> | ||
33 | + </foreach> | ||
34 | + </tbody> | ||
35 | + <tfoot> | ||
36 | + <tr> | ||
37 | + <th width="50">ID</th> | ||
38 | + <th>下单时间</th> | ||
39 | + <th>用户姓名</th> | ||
40 | + <th>微信昵称</th> | ||
41 | + <th>手机号</th> | ||
42 | + <th>支付金额</th> | ||
43 | + </tr> | ||
44 | + </tfoot> | ||
45 | + </table> | ||
46 | + <div class="table-actions"> | ||
47 | + <!--<button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>--> | ||
48 | + </div> | ||
49 | + </form> | ||
50 | + <ul class="pagination">{$page|default=''}</ul> | ||
51 | +</div> | ||
52 | +<script src="__STATIC__/js/admin.js"></script> | ||
53 | +</body> | ||
54 | +</html> |
-
请 注册 或 登录 后发表评论