0be4a1b74e7ade7cbb200f41dc135c54.php 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:79:"/www/maintain/repairceshi/public/../application/admin/view/index/user_info.html";i:1561513114;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561513114;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="zh-cn">
  4. <head>
  5. <meta charset="utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <title>管理中心</title>
  8. <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
  9. <link rel="stylesheet" href="/static/layui/css/font.css">
  10. <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
  11. <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
  12. <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
  13. <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  14. </head>
  15. <?php
  16. $allow = (new \app\admin\controller\Index())->adminAuthorty();
  17. ?>
  18. <body>
  19. <nav class="navbar navbar-fixed-top navbar-default">
  20. <div class="container">
  21. <div class="navbar-header">
  22. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
  23. aria-expanded="false" aria-controls="navbar">
  24. <span class="sr-only">导航按钮</span>
  25. <span class="icon-bar"></span>
  26. <span class="icon-bar"></span>
  27. <span class="icon-bar"></span>
  28. </button>
  29. <a class="navbar-brand" href="#">管理中心</a>
  30. </div><!-- /.navbar-header -->
  31. <div id="navbar" class="collapse navbar-collapse">
  32. <ul class="nav navbar-nav navbar-right">
  33. <li>
  34. <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
  35. </li>
  36. <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
  37. <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
  38. <?php if($allow['user_type'] === '0'):?>
  39. <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
  40. <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
  41. <li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
  42. <?php endif;?>
  43. <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
  44. </ul>
  45. </div><!-- /.navbar-collapse -->
  46. </div><!-- /.container -->
  47. </nav><!-- /.navbar -->
  48. <div class="container" style="padding-top:70px;">
  49. <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
  50. <div class="panel panel-primary">
  51. <div class="panel-heading">
  52. <h3 class="panel-title">个人信息</h3>
  53. </div>
  54. <ul class="list-group">
  55. <li class="list-group-item"><b>微信号码:</b><?php echo $user_info['nickname']; ?></li>
  56. <li class="list-group-item">
  57. <b>头像信息:</b>
  58. <?php if($user_info['headimgurl'] == null): ?>
  59. 暂无
  60. <?php else: ?>
  61. <img src="<?php echo $user_info['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius:50%">
  62. <?php endif; ?>
  63. </li>
  64. <li class="list-group-item">
  65. <b>电话:</b>
  66. <?php if($user_info['telephone'] == null): ?>
  67. 暂无
  68. <?php else: ?>
  69. <?php echo $user_info['telephone']; endif; ?>
  70. </li>
  71. <li class="list-group-item"><b>用户名:</b>
  72. <?php if($user_info['username'] == null): ?>
  73. 暂无
  74. <?php else: ?>
  75. <?php echo $user_info['username']; endif; ?>
  76. </li>
  77. <li class="list-group-item"><b>所属组:</b>
  78. <?php if($user_info['group'] == null): ?>
  79. 暂无
  80. <?php else: ?>
  81. <?php echo $user_info['group']; endif; ?>
  82. </li>
  83. <li class="list-group-item"><b>所属区域:</b>
  84. <?php if($user_info['region'] == null): ?>
  85. 暂无
  86. <?php else: ?>
  87. <?php echo $user_info['region']; endif; ?>
  88. </li>
  89. <li class="list-group-item"><b>地址信息:</b>
  90. <?php if($user_info['address'] == null): ?>
  91. 暂无
  92. <?php else: ?>
  93. <?php echo $user_info['address']; endif; ?>
  94. </li>
  95. <li class="list-group-item">
  96. <b>身份信息:</b>
  97. <?php if($user_info['identity'] == 0): ?>
  98. 报修者
  99. <?php elseif($user_info['identity'] == 1): ?>
  100. 维修者
  101. <?php else: ?>
  102. 暂无
  103. <?php endif; ?>
  104. </li>
  105. <li class="list-group-item">
  106. <b>是否审核:</b>
  107. <?php if($user_info['is_register'] == 0): ?>
  108. <font style="color:red;">未审核</font>
  109. <?php else: ?>
  110. <font style="color:green;">已审核</font>
  111. <?php endif; ?>
  112. </li>
  113. </ul>
  114. </div>
  115. <div class="table-responsive" style="padding-top: 10px;">
  116. <table class="table table-striped" border='1'>
  117. <thead>
  118. <tr>
  119. <th style="text-align: center;">订单号</th>
  120. <th style="text-align: center;">报修人</th>
  121. <th style="text-align: center;">联系电话</th>
  122. <th style="text-align: center;">维修者</th>
  123. <th style="text-align: center;">订单问题</th>
  124. <th style="text-align: center;">创建时间</th>
  125. <th style="text-align: center;">订单状态</th>
  126. <th style="text-align: center;">操作</th>
  127. </tr>
  128. </thead>
  129. <tbody style="text-align: center;">
  130. <?php if(is_array($user_order_info) || $user_order_info instanceof \think\Collection || $user_order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  131. <tr>
  132. <td><b><?php echo $vo['order_id']; ?></b></td>
  133. <td><?php echo $vo['linkman']; ?></td>
  134. <td><?php echo $vo['linktel']; ?></td>
  135. <td>
  136. <?php if($vo['repuser'] == null): ?>
  137. 暂无
  138. <?php else: ?>
  139. <?php echo $vo['repuser']; endif; ?>
  140. </td>
  141. <td><?php echo $vo['title']; ?></td>
  142. <td><?php echo $vo['create_time']; ?></td>
  143. <td>
  144. <?php if($vo['status'] == '0'): ?>
  145. <font color="green">接单中</font>
  146. <?php elseif($vo['status'] == '1'): ?>
  147. <font color="green">处理中</font>
  148. <?php else: ?>
  149. <font color="red">完成</font>
  150. <?php endif; ?>
  151. </td>
  152. <td>
  153. <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
  154. <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
  155. </td>
  156. </tr>
  157. <?php endforeach; endif; else: echo "" ;endif; ?>
  158. </tbody>
  159. <thead>
  160. <tr>
  161. <th style="text-align: center;">订单号</th>
  162. <th style="text-align: center;">报修人</th>
  163. <th style="text-align: center;">联系电话</th>
  164. <th style="text-align: center;">维修者</th>
  165. <th style="text-align: center;">订单问题</th>
  166. <th style="text-align: center;">创建时间</th>
  167. <th style="text-align: center;">订单状态</th>
  168. <th style="text-align: center;">操作</th>
  169. </tr>
  170. </thead>
  171. </table>
  172. </div>
  173. <!-- 分页的渲染 -->
  174. <div style="text-align:center;">
  175. <?php echo $user_order_info->render(); ?>
  176. </div>
  177. <script src="/static/login/js/jquery.min.js"></script>
  178. <script>
  179. $(function () {
  180. $('.buttoninfo').click(function () {
  181. //获取到当前订单
  182. var orderid = $(this).attr('data-orderid');
  183. window.location.href = "/admin/index/order_info?orderid=" + orderid;
  184. });
  185. //编辑信息
  186. $('.buttoneidt').click(function () {
  187. //获取到当前订单
  188. let orderid = $(this).attr('data-orderid');
  189. window.location.href = "/admin/index/edit_user_info?orderid=" + orderid;
  190. });
  191. });
  192. </script>