promotion.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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/promotion')}">
  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. <span>新媒账号:</span>
  112. <input class="form-control" type="text" name="media_name" style="width: 200px;"
  113. value="{:input('request.media_name')}" placeholder="新媒账号昵称/手机号"><br>
  114. <input class="form-control" type="text" name="mobile" style="width: 200px;" value="{:input('request.mobile')}"
  115. placeholder="手机号">
  116. <input id="sort" type="hidden" name="sort" value="{$params.sort?$params.sort: 1}">
  117. <input id="sortType" type="hidden" name="sort_type" value="{$params.sort_type?$params.sort_type: 'desc'}">
  118. <input type="submit" class="btn btn-primary margin-left-10 " value="搜索"/>
  119. <a class="btn btn-default margin-left-10" href="{:url('admin/medias/promotion')}">清空</a>
  120. </form>
  121. <form class="form-horizontal js-ajax-form margin-top-20" role="form">
  122. <div class="table-actions tags">
  123. <a class="count-label">共计:{$total}人</a>
  124. </div>
  125. <table class="table table-hover table-bordered">
  126. <thead>
  127. <tr>
  128. <th>ID</th>
  129. <th width="150">用户名</th>
  130. <th width="80">基本资料</th>
  131. <th width="100">姓名</th>
  132. <th >手机号</th>
  133. <th width="80">注册情况</th>
  134. <th width="80">关注情况</th>
  135. <th width="70">VIP会员</th>
  136. <th width="70">充值过</th>
  137. <th width="70">消费过</th>
  138. <th width="70">分配过销售</th>
  139. <th width="90">媒体推广账号</th>
  140. <th width="80">实名认证</th>
  141. <th width="80">学历认证</th>
  142. <th width="80">职业认证</th>
  143. <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>
  144. <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>
  145. </tr>
  146. </thead>
  147. <tbody>
  148. <foreach name="list" item="vo">
  149. <tr>
  150. <td>{$vo.id}</td>
  151. <td>
  152. <div class="info">
  153. <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>
  154. </div>
  155. </td>
  156. <td>
  157. <p class="profile">{$vo.profile_text?$vo.profile_text:'无'}</p>
  158. </td>
  159. <td>{$vo['real_name']}</td>
  160. <td><span class="expired">{$vo['mobile']? $vo['mobile']:'无'}</span></td>
  161. <td>
  162. <if condition="$vo['is_reg_profile'] eq 1">
  163. <span style="color: green;">已注册</span>
  164. <else>
  165. <span style="color: red;">未注册</span>
  166. </if>
  167. </td>
  168. <td>
  169. <if condition="$vo['is_follow'] eq 1">
  170. <span style="color: green;">已关注</span>
  171. <else>
  172. <span style="color: red;">未关注</span>
  173. </if>
  174. </td>
  175. <td>
  176. <if condition="$vo['is_vip'] eq 1">
  177. <span style="color: green;">是</span>
  178. <else>
  179. <span style="color: red;">否</span>
  180. </if>
  181. </td>
  182. <td>
  183. <if condition="$vo['is_recharge'] eq 1">
  184. <span style="color: green;">是</span>
  185. <else>
  186. <span style="color: red;">否</span>
  187. </if>
  188. </td>
  189. <td>
  190. <if condition="$vo['is_cost'] eq 1">
  191. <span style="color: green;">是</span>
  192. <else>
  193. <span style="color: red;">否</span>
  194. </if>
  195. </td>
  196. <td>
  197. <if condition="$vo['is_pool'] gt 0">
  198. <span style="color: green;">是</span>
  199. <else>
  200. <span style="color: red;">否</span>
  201. </if>
  202. </td>
  203. <td>
  204. <if condition="$vo.parent_id">
  205. <span style="color: #0B90C4;">{$vo['parent_name']}(ID:{$vo['parent_id']})</span>
  206. </if>
  207. </td>
  208. <td>
  209. <if condition="$vo['idcard_check'] eq 2">
  210. <span style="color: green;">是</span>
  211. <else>
  212. <span style="color: red;">否</span>
  213. </if>
  214. </td>
  215. <td>
  216. <if condition="$vo['education_check'] eq 2">
  217. <span style="color: green;">是</span>
  218. <else>
  219. <span style="color: red;">否</span>
  220. </if>
  221. </td>
  222. <td>
  223. <if condition="$vo['position_check'] eq 2">
  224. <span style="color: green;">是</span>
  225. <else>
  226. <span style="color: red;">否</span>
  227. </if>
  228. </td>
  229. <td>{$vo['reg_time']}</td>
  230. <td>{$vo['last_login_time']}</td>
  231. </foreach>
  232. </tbody>
  233. </table>
  234. <div class="pagination">{$page}</div>
  235. </form>
  236. </div>
  237. <script src="__STATIC__/js/admin.js"></script>
  238. <script src="__STATIC__/js/clipboard.min.js"></script>
  239. <script src="__STATIC__/js/layer/layer.js"></script>
  240. <script src="__STATIC__/js/position/position1.js" type="text/javascript"></script>
  241. <script src="__STATIC__/js/height/height.js" type="text/javascript"></script>
  242. <script>
  243. /**
  244. * 排序
  245. * @param type
  246. */
  247. function sort(ele,type){
  248. $("#sort").val(type);
  249. var status = $(ele).attr('data-status');
  250. $("#sortType").val(status=='desc'? 'asc': 'desc');
  251. $(ele).html(status == 'desc'? '&#8595;' : '&#8593;');
  252. $(ele).attr('data-status', status=='desc'? 'asc': 'desc');
  253. $("#search").submit();
  254. }
  255. </script>
  256. </body>
  257. </html>