owner.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <include file="public@header"/>
  2. </head>
  3. <style>
  4. .form-inline .form-control {
  5. margin: 10px 0;
  6. vertical-align: middle;
  7. }
  8. .form-inline span {
  9. margin-left: 5px;
  10. vertical-align: middle;
  11. }
  12. .margin-left-10 {
  13. margin-left: 10px;
  14. }
  15. .profile em {
  16. font-style: normal;
  17. color: #0b6cbc;
  18. }
  19. .profile em.red {
  20. color: red;
  21. }
  22. span.sort {
  23. color: red;
  24. display: inline-block;
  25. margin-left: 2px;
  26. vertical-align: middle;
  27. }
  28. td .info {
  29. display: flex;
  30. }
  31. td .info a {
  32. position: relative;
  33. display: inline-block;
  34. width: 30px;
  35. height: 30px;
  36. }
  37. td .info span {
  38. vertical-align: top;
  39. padding: 0px 4px;
  40. }
  41. td img.avatar, td img.sex {
  42. width: 30px;
  43. height: 30px;
  44. vertical-align: middle;
  45. border-radius: 100%;
  46. }
  47. td img.sex {
  48. position: absolute;
  49. z-index: 2;
  50. width: 12px;
  51. height: 12px;
  52. left: 0;
  53. right: 0;
  54. bottom: 0;
  55. margin: 0 auto;
  56. }
  57. .form .form-control {
  58. margin-bottom: 20px;
  59. }
  60. .form .control-label {
  61. text-align: center;
  62. }
  63. .form label {
  64. text-align: left;
  65. margin-bottom: 10px;
  66. margin-right: 10px;
  67. }
  68. .radio-inline+.radio-inline, .checkbox-inline+.checkbox-inline {
  69. margin-left: 0;
  70. }
  71. .table-actions span {
  72. margin-right: 10px;
  73. font-weight: bold;
  74. }
  75. .table-actions span em {
  76. font-style: normal;
  77. color: red;
  78. }
  79. .layui-layer-page .layui-layer-content {
  80. overflow: hidden !important;
  81. }
  82. span.expired {
  83. color: red;
  84. }
  85. .js-bootstrap-date {
  86. line-height: 22px !important;
  87. }
  88. .count-label {
  89. font-size: 16px;
  90. color: #0B90C4;
  91. margin-bottom: 10px;
  92. }
  93. </style>
  94. <body>
  95. <div class="wrap js-check-wrap">
  96. <ul class="nav nav-tabs">
  97. <li class="active"><a>我推广的资源列表</a>
  98. </li>
  99. </ul>
  100. <form id="search" class="well form-inline margin-top-20" method="post" action="{:url('admin/medias/owner')}">
  101. <span>会员ID:</span>
  102. <input class="form-control" type="text" name="uid" style="width: 150px;" value="{:input('request.uid')}"
  103. placeholder="会员ID">
  104. <span>用户昵称:</span>
  105. <input class="form-control" type="text" name="user_nickname" style="width: 200px;"
  106. value="{:input('request.user_nickname')}" placeholder="用户昵称"><br>
  107. <span>用户姓名:</span>
  108. <input class="form-control" type="text" name="real_name" style="width: 200px;"
  109. value="{:input('request.real_name')}" placeholder="用户姓名">
  110. <span>手机号:</span>
  111. <input class="form-control" type="text" name="mobile" style="width: 200px;" value="{:input('request.mobile')}"
  112. placeholder="手机号">
  113. <input id="sort" type="hidden" name="sort" value="{$params.sort?$params.sort: 1}">
  114. <input id="sortType" type="hidden" name="sort_type" value="{$params.sort_type?$params.sort_type: 'desc'}">
  115. <input type="submit" class="btn btn-primary margin-left-10 " value="搜索"/>
  116. <a class="btn btn-default margin-left-10" href="{:url('admin/medias/owner')}">清空</a>
  117. </form>
  118. <form class="form-horizontal js-ajax-form margin-top-20" role="form">
  119. <div class="table-actions tags">
  120. <a class="count-label">共计:{$total}人</a>
  121. </div>
  122. <table class="table table-hover table-bordered">
  123. <thead>
  124. <tr>
  125. <th>ID</th>
  126. <th width="150">用户名</th>
  127. <th width="80">基本资料</th>
  128. <th width="100">姓名</th>
  129. <th >手机号</th>
  130. <th width="80">注册情况</th>
  131. <th width="80">关注情况</th>
  132. <th width="70">VIP会员</th>
  133. <th width="70">充值过</th>
  134. <th width="70">消费过</th>
  135. <th width="70">分配过销售</th>
  136. <th width="100">媒体推广账号</th>
  137. <th width="80">实名认证</th>
  138. <th width="80">学历认证</th>
  139. <th width="80">职业认证</th>
  140. <th width="175">注册时间 <span class="row sort join-time" data-status="{$params.sort == 4? $params.sort_type : 'desc'}" onclick="sort(this,4)"><if condition="$params.sort eq 4 && $params.sort_type eq 'asc'">&#8595;<else>&#8593;</if></span></th>
  141. <th width="175">最后登录<span class="row sort last-time" data-status="{$params.sort == 5? $params.sort_type : 'desc'}" onclick="sort(this,5)"><if condition="$params.sort eq 2 && $params.sort_type eq 'asc'">&#8595;<else>&#8593;</if></span></th>
  142. </tr>
  143. </thead>
  144. <tbody>
  145. <foreach name="list" item="vo">
  146. <tr>
  147. <td>{$vo.id}</td>
  148. <td>
  149. <div class="info">
  150. <a href="{:url('admin/medias/info',['id'=> $vo.id])}"><img class="avatar" src="{$vo.avatar}"> <if condition="$vo['sex'] eq 1"><img class="sex" src="/static/images/male.png" alt=""><else><img class="sex" src="/static/images/fmale.png" alt=""></if></a><span>{$vo['user_nickname']}</span>
  151. </div>
  152. </td>
  153. <td>
  154. <p class="profile">{$vo.profile_text?$vo.profile_text:'无'}</p>
  155. </td>
  156. <td>{$vo['real_name']}</td>
  157. <td><span class="expired">{$vo['mobile']? $vo['mobile']:'无'}</span></td>
  158. <td>
  159. <if condition="$vo['is_reg_profile'] eq 1">
  160. <span style="color: green;">已注册</span>
  161. <else>
  162. <span style="color: red;">未注册</span>
  163. </if>
  164. </td>
  165. <td>
  166. <if condition="$vo['is_follow'] eq 1">
  167. <span style="color: green;">已关注</span>
  168. <else>
  169. <span style="color: red;">未关注</span>
  170. </if>
  171. </td>
  172. <td>
  173. <if condition="$vo['is_vip'] eq 1">
  174. <span style="color: green;">是</span>
  175. <else>
  176. <span style="color: red;">否</span>
  177. </if>
  178. </td>
  179. <td>
  180. <if condition="$vo['is_recharge'] eq 1">
  181. <span style="color: green;">是</span>
  182. <else>
  183. <span style="color: red;">否</span>
  184. </if>
  185. </td>
  186. <td>
  187. <if condition="$vo['is_cost'] eq 1">
  188. <span style="color: green;">是</span>
  189. <else>
  190. <span style="color: red;">否</span>
  191. </if>
  192. </td>
  193. <td>
  194. <if condition="$vo['is_pool'] gt 0">
  195. <span style="color: green;">是</span>
  196. <else>
  197. <span style="color: red;">否</span>
  198. </if>
  199. </td>
  200. <td>
  201. <if condition="$vo.parent_id">
  202. <span style="color: #0B90C4;">{$vo['parent_name']}(ID:{$vo['parent_id']})</span>
  203. </if>
  204. </td>
  205. <td>
  206. <if condition="$vo['idcard_check'] eq 2">
  207. <span style="color: green;">是</span>
  208. <else>
  209. <span style="color: red;">否</span>
  210. </if>
  211. </td>
  212. <td>
  213. <if condition="$vo['education_check'] eq 2">
  214. <span style="color: green;">是</span>
  215. <else>
  216. <span style="color: red;">否</span>
  217. </if>
  218. </td>
  219. <td>
  220. <if condition="$vo['position_check'] eq 2">
  221. <span style="color: green;">是</span>
  222. <else>
  223. <span style="color: red;">否</span>
  224. </if>
  225. </td>
  226. <td>{$vo['reg_time']}</td>
  227. <td>{$vo['last_login_time']}</td>
  228. </foreach>
  229. </tbody>
  230. </table>
  231. <div class="pagination">{$page}</div>
  232. </form>
  233. </div>
  234. <script src="__STATIC__/js/admin.js"></script>
  235. <script src="__STATIC__/js/clipboard.min.js"></script>
  236. <script src="__STATIC__/js/layer/layer.js"></script>
  237. <script src="__STATIC__/js/position/position1.js" type="text/javascript"></script>
  238. <script src="__STATIC__/js/height/height.js" type="text/javascript"></script>
  239. <script>
  240. /**
  241. * 排序
  242. * @param type
  243. */
  244. function sort(ele,type){
  245. $("#sort").val(type);
  246. var status = $(ele).attr('data-status');
  247. $("#sortType").val(status=='desc'? 'asc': 'desc');
  248. $(ele).html(status == 'desc'? '&#8595;' : '&#8593;');
  249. $(ele).attr('data-status', status=='desc'? 'asc': 'desc');
  250. $("#search").submit();
  251. }
  252. </script>
  253. </body>
  254. </html>