user_info.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. {include file="public/header"}
  2. <div class="panel panel-primary">
  3. <div class="panel-heading">
  4. <h3 class="panel-title">个人信息</h3>
  5. </div>
  6. <ul class="list-group">
  7. <li class="list-group-item"><b>微信号码:</b>{$user_info.nickname}</li>
  8. <li class="list-group-item">
  9. <b>头像信息:</b>
  10. {if condition = "$user_info.headimgurl eq null"}
  11. 暂无
  12. {else/}
  13. <img src="{$user_info.headimgurl}" alt="微信头像" style="width:30px;border-radius:50%">
  14. {/if}
  15. </li>
  16. <li class="list-group-item">
  17. <b>电话:</b>
  18. {if condition = "$user_info.telephone eq null"}
  19. 暂无
  20. {else/}
  21. {$user_info.telephone}
  22. {/if}
  23. </li>
  24. <li class="list-group-item"><b>用户名:</b>
  25. {if condition = "$user_info.username eq null"}
  26. 暂无
  27. {else/}
  28. {$user_info.username}
  29. {/if}
  30. </li>
  31. <li class="list-group-item"><b>所属组:</b>
  32. {if condition = "$user_info.group eq null"}
  33. 暂无
  34. {else/}
  35. {$user_info.group}
  36. {/if}
  37. </li>
  38. <li class="list-group-item"><b>所属区域:</b>
  39. {if condition = "$user_info.region eq null"}
  40. 暂无
  41. {else/}
  42. {$user_info.region}
  43. {/if}
  44. </li>
  45. <li class="list-group-item"><b>地址信息:</b>
  46. {if condition = "$user_info.address eq null"}
  47. 暂无
  48. {else/}
  49. {$user_info.address}
  50. {/if}
  51. </li>
  52. <li class="list-group-item">
  53. <b>身份信息:</b>
  54. {if condition = "$user_info.identity eq 0"}
  55. 报修者
  56. {elseif condition = "$user_info.identity eq 1" /}
  57. 维修者
  58. {else/}
  59. 暂无
  60. {/if}
  61. </li>
  62. <li class="list-group-item">
  63. <b>是否审核:</b>
  64. {if condition = "$user_info.is_register eq 0"}
  65. <font style="color:red;">未审核</font>
  66. {else /}
  67. <font style="color:green;">已审核</font>
  68. {/if}
  69. </li>
  70. </ul>
  71. </div>
  72. <div class="table-responsive" style="padding-top: 10px;">
  73. <table class="table table-striped" border='1'>
  74. <thead>
  75. <tr>
  76. <th style="text-align: center;">订单号</th>
  77. <th style="text-align: center;">报修人</th>
  78. <th style="text-align: center;">联系电话</th>
  79. <th style="text-align: center;">维修者</th>
  80. <th style="text-align: center;">订单问题</th>
  81. <th style="text-align: center;">创建时间</th>
  82. <th style="text-align: center;">订单状态</th>
  83. <th style="text-align: center;">操作</th>
  84. </tr>
  85. </thead>
  86. <tbody style="text-align: center;">
  87. {volist name="user_order_info" id="vo"}
  88. <tr>
  89. <td><b>{$vo.order_id}</b></td>
  90. <td>{$vo.linkman}</td>
  91. <td>{$vo.linktel}</td>
  92. <td>
  93. {if condition = "$vo.repuser eq null"}
  94. 暂无
  95. {else /}
  96. {$vo.repuser}
  97. {/if}
  98. </td>
  99. <td>{$vo.title}</td>
  100. <td>{$vo.create_time}</td>
  101. <td>
  102. {if condition="$vo.status eq '0'"}
  103. <font color="green">接单中</font>
  104. {elseif condition="$vo.status eq '1'"}
  105. <font color="green">处理中</font>
  106. {else /}
  107. <font color="red">完成</font>
  108. {/if}
  109. </td>
  110. <td>
  111. <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-info buttoninfo">查看</button>
  112. <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-danger buttoneidt">编辑</button>
  113. </td>
  114. </tr>
  115. {/volist}
  116. </tbody>
  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. </table>
  130. </div>
  131. <!-- 分页的渲染 -->
  132. <div style="text-align:center;">
  133. {$user_order_info->render()}
  134. </div>
  135. <script src="__LOGIN__/js/jquery.min.js"></script>
  136. <script>
  137. $(function () {
  138. $('.buttoninfo').click(function () {
  139. //获取到当前订单
  140. var orderid = $(this).attr('data-orderid');
  141. window.location.href = "__URL__/order_info?orderid=" + orderid;
  142. });
  143. //编辑信息
  144. $('.buttoneidt').click(function () {
  145. //获取到当前订单
  146. let orderid = $(this).attr('data-orderid');
  147. window.location.href = "__URL__/edit_user_info?orderid=" + orderid;
  148. });
  149. });
  150. </script>