user_info.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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.address eq null"}
  40. 暂无
  41. {else/}
  42. {$user_info.address}
  43. {/if}
  44. </li>
  45. <li class="list-group-item">
  46. <b>身份信息:</b>
  47. {if condition = "$user_info.identity eq 0"}
  48. 报修者
  49. {elseif condition = "$user_info.identity eq 1" /}
  50. 维修者
  51. {else/}
  52. 暂无
  53. {/if}
  54. </li>
  55. <li class="list-group-item">
  56. <b>是否审核:</b>
  57. {if condition = "$user_info.is_register eq 0"}
  58. <font style="color:red;">未审核</font>
  59. {else /}
  60. <font style="color:green;">已审核</font>
  61. {/if}
  62. </li>
  63. </ul>
  64. </div>
  65. <div class="table-responsive" style="padding-top: 10px;">
  66. <table class="table table-striped" border='1'>
  67. <thead>
  68. <tr>
  69. <th style="text-align: center;">订单号</th>
  70. <th style="text-align: center;">报修人</th>
  71. <th style="text-align: center;">联系电话</th>
  72. <th style="text-align: center;">维修者</th>
  73. <th style="text-align: center;">订单问题</th>
  74. <th style="text-align: center;">创建时间</th>
  75. <th style="text-align: center;">订单状态</th>
  76. <th style="text-align: center;">操作</th>
  77. </tr>
  78. </thead>
  79. <tbody style="text-align: center;">
  80. {volist name="user_order_info" id="vo"}
  81. <tr>
  82. <td><b>{$vo.order_id}</b></td>
  83. <td>{$vo.linkman}</td>
  84. <td>{$vo.linktel}</td>
  85. <td>
  86. {if condition = "$vo.repuser eq null"}
  87. 暂无
  88. {else /}
  89. {$vo.repuser}
  90. {/if}
  91. </td>
  92. <td>{$vo.title}</td>
  93. <td>{$vo.create_time}</td>
  94. <td>
  95. {if condition="$vo.status eq '0'"}
  96. <font color="green">接单中</font>
  97. {elseif condition="$vo.status eq '1'"}
  98. <font color="green">处理中</font>
  99. {else /}
  100. <font color="red">完成</font>
  101. {/if}
  102. </td>
  103. <td>
  104. <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-info buttoninfo">查看</button>
  105. <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-danger buttoneidt">编辑</button>
  106. </td>
  107. </tr>
  108. {/volist}
  109. </tbody>
  110. <thead>
  111. <tr>
  112. <th style="text-align: center;">订单号</th>
  113. <th style="text-align: center;">报修人</th>
  114. <th style="text-align: center;">联系电话</th>
  115. <th style="text-align: center;">维修者</th>
  116. <th style="text-align: center;">订单问题</th>
  117. <th style="text-align: center;">创建时间</th>
  118. <th style="text-align: center;">订单状态</th>
  119. <th style="text-align: center;">操作</th>
  120. </tr>
  121. </thead>
  122. </table>
  123. </div>
  124. <!-- 分页的渲染 -->
  125. <div style="text-align:center;">
  126. {$user_order_info->render()}
  127. </div>
  128. <script src="__LOGIN__/js/jquery.min.js"></script>
  129. <script>
  130. $(function () {
  131. $('.buttoninfo').click(function () {
  132. //获取到当前订单
  133. var orderid = $(this).attr('data-orderid');
  134. window.location.href = "__URL__/order_info?orderid=" + orderid;
  135. });
  136. //编辑信息
  137. $('.buttoneidt').click(function () {
  138. //获取到当前订单
  139. let orderid = $(this).attr('data-orderid');
  140. window.location.href = "__URL__/edit_user_info?orderid=" + orderid;
  141. });
  142. });
  143. </script>