marketlogout.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active">
  7. <a> 分销注销</a>
  8. </if>
  9. </li>
  10. </ul>
  11. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>1))}">
  12. <!-- 用户ID:
  13. <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
  14. placeholder="请输入用户ID"> -->
  15. 关键字:
  16. <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}" placeholder="昵称/真实姓名/手机">
  17. <input type="submit" class="btn btn-primary" value="搜索"/>
  18. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  19. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>2))}">清空</a>
  20. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  21. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>3))}">清空</a>
  22. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  23. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>4))}">清空</a>
  24. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  25. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>5))}">清空</a>
  26. <else/>
  27. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>1))}">清空</a>
  28. </if>
  29. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  30. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>2))}">导出</a>
  31. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  32. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>3))}">导出</a>
  33. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  34. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>4))}">导出</a>
  35. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  36. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>5))}">导出</a>
  37. <else/>
  38. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>1))}">导出</a>
  39. </if>
  40. <a class="btn btn-danger" onclick="doDelete()">批量删除</a>
  41. <!-- <a class="btn btn-danger" href="{:url('user/adminIndex/index')}" style="border-color:#7349B8;background-color:#7349B8">已冻结的用户</a> -->
  42. <!--
  43. <a class="btn btn-danger" id="showcho" style="border-color:#7349B8;background-color:#7349B8">条件筛选</a> -->
  44. <div id="showchoice" style="display: none; margin-top: 10px;">
  45. <php>$educationarray=array(1=>'大专',2=>'本科',3=>'硕士',4=>'博士');</php>
  46. <php>$marriedarray=array(1=>'未婚',2=>'离异',3=>'离异有孩子');</php>
  47. <php>$propertyarray=array(0=>'无',1=>'有房',2=>'有车',3=>'有房有车');</php>
  48. <php>$agearray=array('1980','1981','1982','1983','1984','1985','1986','1987','1988','1989','1990','1991','1992','1993','1994','1995','1996','1997','1998','1999','2000');</php>
  49. <php>$sexarray=array(1=>'男',2=>'女');</php>
  50. <div>
  51. <div style="margin-top: 10px;">
  52. <!-- 年龄: <input class="form-control js-bootstrap-datetime" type="text" name="age1" style="width: 150px;margin-right:10px;" value="" placeholder="请选择年龄">
  53. <font style="color: red">至</font> &nbsp;
  54. <input class="form-control js-bootstrap-datetime" type="text" name="age2" style="width: 150px;margin-right:25px;" value="" placeholder="请选择年龄"> -->
  55. 年龄: <select class="form-control" name="age1" id="age1" style="width: 150px;margin-right:10px;">
  56. <option value="none">--请选择年龄--</option>
  57. <volist name="$agearray" id="vo">
  58. <option value="{$vo}">{$vo}</option>
  59. </volist>
  60. </select>
  61. <font style="color: red">至</font> &nbsp;
  62. <select class="form-control" name="age2" id="age2" style="width: 150px;margin-right:10px;">
  63. <option value="none">--请选择年龄--</option>
  64. <volist name="$agearray" id="vo">
  65. <option value="{$vo}">{$vo}</option>
  66. </volist>
  67. </select>
  68. 身高: <select class="form-control" name="height" id="height" style="width: 150px;margin-right:10px;">
  69. <option value="none">--请选择身高--</option>
  70. </select>
  71. <font style="color: red">至</font> &nbsp;
  72. <select class="form-control" name="heightt" id="heightt" style="width: 150px;margin-right:10px;">
  73. <option value="none">--请选择身高--</option>
  74. </select>
  75. </div>
  76. <div style="margin-top: 10px;">
  77. 学历: <select class="form-control" name="education" id="education" style="width: 150px;margin-right:10px;">
  78. <option value="none">--请选择学历--</option>
  79. <volist name="$educationarray" id="vo">
  80. <option value="{$key}">{$vo}</option>
  81. </volist>
  82. </select>
  83. 职业:
  84. <select class="form-control" name="occupation" style="margin-right: 15px;width: 150px;" id="position1">
  85. <option value="none">--请选择职位--</option>
  86. </select>
  87. 收入: <select class="form-control" name="salary" id="salary" style="width: 150px;margin-right:10px;">
  88. <option value="none">--请选择收入--</option>
  89. <option value="1">5-10w</option>
  90. <option value="2">10-20w</option>
  91. <option value="3">20-35w</option>
  92. <option value="4">35-55w</option>
  93. <option value="5">100w以上</option>
  94. </select>
  95. 资产: <select class="form-control" name="property" id="property" style="width: 150px;margin-right:10px;">
  96. <option value="none">--请选择资产--</option>
  97. <volist name="$propertyarray" id="vo">
  98. <option value="{$key}">{$vo}</option>
  99. </volist>
  100. </select>
  101. </div>
  102. <div style="margin-top: 10px;">
  103. 家乡: <input class="form-control" type="text" name="home_city" style="width: 150px;margin-right:10px;" value="" placeholder="请输入省/市">
  104. 居住地: <input class="form-control" type="text" name="city" style="width: 150px;margin-right:10px;" value="" placeholder="请输入市">
  105. 婚姻状况: <select class="form-control" name="married" id="married" style="width: 150px;margin-right:10px;">
  106. <option value="none">--请选择婚姻--</option>
  107. <volist name="$marriedarray" id="vo">
  108. <option value="{$key}">{$vo}</option>
  109. </volist>
  110. </select>
  111. 性别: <select class="form-control" name="sex" id="sex" style="width: 150px;margin-right:10px;">
  112. <option value="none">--请选择性别--</option>
  113. <volist name="$sexarray" id="vo">
  114. <option value="{$key}">{$vo}</option>
  115. </volist>
  116. </select>
  117. <a class="btn btn-warning" style=" padding: 3px 10px; border-color:#ca1883;background-color:#ca1883;color: #fff" id="nonecho">隐藏</a>
  118. </div>
  119. </div>
  120. </div>
  121. </form>
  122. <form method="post" class="js-ajax-form">
  123. <div class="table-actions">
  124. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  125. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
  126. data-action="{:url('AdminIndex/tozhuxiao',array('yes'=>1))}" onclick="return confirm('确定要成为注销吗?')" data-subcheck="true">
  127. </button>
  128. </if>
  129. </div>
  130. <table class="table table-hover table-bordered">
  131. <thead>
  132. <tr>
  133. <th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">全选</th>
  134. <th>ID</th>
  135. <th>账号</th>
  136. <th>{:lang('NICENAME')}</th>
  137. <th>真实姓名</th>
  138. <th>爱心</th>
  139. <th style="text-align: center;">是否推荐</th>
  140. <th style="text-align: center;">推荐人</th>
  141. <th style="text-align: center;">下级分销员数</th>
  142. <th style="text-align: center;">下级普通会员数</th>
  143. <th style="text-align: center;">可提佣金</th>
  144. <!-- <th>等级</th> -->
  145. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  146. <th>冻结原因</th>
  147. <else/>
  148. <th>手机</th>
  149. </if>
  150. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2 || $Request.param.u eq 4">
  151. <th>网址</th>
  152. </if>
  153. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  154. <th>冻结时间</th>
  155. <else/>
  156. <th>{:lang('REGISTRATION_TIME')}</th>
  157. </if>
  158. <!-- <th>登录时间</th> -->
  159. <th>{:lang('STATUS')}</th>
  160. <th>{:lang('ACTIONS')}</th>
  161. </tr>
  162. </thead>
  163. <tbody>
  164. <php>
  165. $user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));
  166. </php>
  167. <foreach name="list" item="vo">
  168. <tr>
  169. <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
  170. value="{$vo.id}" title="ID:{$vo.id}"></td>
  171. <td>{$vo.id}</td>
  172. <td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:lang('THIRD_PARTY_USER'))}
  173. </td>
  174. <td>{$vo['user_nickname']?$vo['user_nickname']:lang('NOT_FILLED')}</td>
  175. <td>{$vo['real_name']?$vo['real_name']:lang('NOT_FILLED')}</td>
  176. <td>{$vo['redheart']}</td>
  177. <td style="text-align: center;">
  178. <switch name="vo.is_tuijian">
  179. <case value="1">
  180. <span style="color: blue">是</span>
  181. </case>
  182. <case value="0">
  183. <span style="color: red">否</span>
  184. </case>
  185. </switch>
  186. </td>
  187. <td style="text-align: center;">
  188. <if condition="$vo.marketusername.user_nickname eq ''">
  189. <span style="color: red">无</span>
  190. <else/>
  191. <span style="color: blue">{$vo.marketusername.user_nickname}</span>
  192. </if>
  193. </td>
  194. <td style="text-align: center;">
  195. <if condition="$vo.marketcount eq 0">
  196. <a href="#">{$vo.marketcount}</a>
  197. <else/>
  198. <a href="{:url('Market/marketoneuser',array('id'=>$vo.id,'user_nickname'=>$vo.user_nickname,'agent_type'=>1))}">{$vo.marketcount}</a>
  199. </if>
  200. </td>
  201. <td style="text-align: center;">
  202. <if condition="$vo.marketusercount eq 0">
  203. <a href="#">{$vo.marketusercount}</a>
  204. <else/>
  205. <a href="{:url('Market/marketoneuser',array('id'=>$vo.id,'user_nickname'=>$vo.user_nickname,'agent_type'=>0))}">{$vo.marketusercount}</a>
  206. </if>
  207. </td>
  208. <td style="text-align: center;">
  209. {$vo.balance}
  210. </td>
  211. <!-- <td>{$vo.level}</td> -->
  212. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  213. <td><span style="color:red">{$vo.freezing}</span></td>
  214. <else/>
  215. <td>{$vo.mobile}</td>
  216. </if>
  217. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2 || $Request.param.u eq 4">
  218. <td>
  219. <span class="label label-primary copy-btn copy" data-url="{:url('/weixin/member/home?id=','','',true)}{$vo.id}">复制</span>
  220. </td>
  221. </if>
  222. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  223. <td>{$vo.updated_at}</td>
  224. <else/>
  225. <td>{:date('Y-m-d H:i',$vo['create_time'])}</td>
  226. </if>
  227. <!-- <td>{:date('Y-m-d H:i',$vo['last_login_time'])}</td> -->
  228. <!-- <td>
  229. <switch name="vo.idcard_check">
  230. <case value="1">
  231. <span style="color:red">未审</span>
  232. </case>
  233. <case value="2">
  234. <span style="color:green">已审</span>
  235. </case>
  236. <case value="3">
  237. <span style="color:#ef9413">驳回</span>
  238. </case>
  239. <case value="">
  240. <span style="color:blue">未填</span>
  241. </case>
  242. </switch>
  243. </td>
  244. <td>
  245. <switch name="vo.position_check">
  246. <case value="0">
  247. <span style="color:blue">未填</span>
  248. </case>
  249. <case value="1">
  250. <span style="color:red">未审</span>
  251. </case>
  252. <case value="2">
  253. <span style="color:green">已审</span>
  254. </case>
  255. <case value="3">
  256. <span style="color:#ef9413">驳回</span>
  257. </case>
  258. <case value="">
  259. <span style="color:blue">未填</span>
  260. </case>
  261. </switch>
  262. </td>
  263. <td>
  264. <switch name="vo.education_check">
  265. <case value="0">
  266. <span style="color:blue">未填</span>
  267. </case>
  268. <case value="1">
  269. <span style="color:red">未审</span>
  270. </case>
  271. <case value="2">
  272. <span style="color:green">已审</span>
  273. </case>
  274. <case value="3">
  275. <span style="color:#ef9413">驳回</span>
  276. </case>
  277. <case value="">
  278. <span style="color:blue">未填</span>
  279. </case>
  280. </switch>
  281. </td> -->
  282. <td>
  283. <if condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  284. <if condition="$vo.idcard eq '' || $vo.idcard eq null">
  285. <span style="color:green">身份已清除</span>
  286. <else/>
  287. <span style="color:red">身份未清除</span>
  288. </if>
  289. <else/>
  290. <switch name="vo.user_status">
  291. <case value="0">
  292. <span class="label label-danger">已冻结</span>
  293. </case>
  294. <case value="1">
  295. <span class="label label-success">{$user_statuses[$vo['user_status']]}</span>
  296. </case>
  297. <case value="2">
  298. <span class="label label-warning">{$user_statuses[$vo['user_status']]}</span>
  299. </case>
  300. </switch>
  301. </if>
  302. </td>
  303. <td>
  304. <if condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  305. <a class="btn btn-xs btn-primary" href="{:url('user/adminIndex/edit',array('id'=>$vo['id']))}">编辑</a>
  306. <a class="btn btn-xs btn-warning js-ajax-dialog-btn" style="background-color: #d00a81;border-color:#d00a81" href="{:url('adminIndex/touserlogout',array('yes'=>1,'ids'=>$vo['id']))}" data-msg="确认清理该用户身份证信息?">清除身份证信息</a>
  307. <else/>
  308. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  309. <a class="btn btn-xs btn-primary" href="{:url('user/adminIndex/edit',array('id'=>$vo['id'],'u'=>2))}">编辑</a>
  310. <else/>
  311. <a class="btn btn-xs btn-primary" href="{:url('user/adminIndex/edit',array('id'=>$vo['id']))}">编辑</a>
  312. </if>
  313. <neq name="vo.id" value="1">
  314. <empty name="vo.user_status">
  315. <a class="btn btn-xs btn-success js-ajax-dialog-btn"
  316. href="{:url('adminIndex/cancelban',array('id'=>$vo['id']))}"
  317. data-msg="{:lang('ACTIVATE_USER_CONFIRM_MESSAGE')}">{:lang('ACTIVATE_USER')}</a>
  318. <else/>
  319. <!-- <a class="btn btn-xs btn-warning js-ajax-dialog-btn"
  320. href="{:url('adminIndex/ban',array('id'=>$vo['id']))}"
  321. data-msg="确认冻结该用户?">冻结</a> -->
  322. <!-- <a class="btn btn-xs btn-warning" onclick="getPaike({$vo['id']})"
  323. >冻结</a> -->
  324. </empty>
  325. <else/>
  326. <!-- <a class="btn btn-xs btn-warning disabled">冻结</a> -->
  327. </neq>
  328. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  329. <else/>
  330. <php> $adminId = cmf_get_current_admin_id(); </php>
  331. <!-- <if condition="$adminId eq 1">
  332. <a class="btn btn-xs btn-danger" href="{:url('adminIndex/accountadd',array('id'=>$vo['id']))}">爱心充值</a>
  333. </if> -->
  334. </if>
  335. <a class="btn btn-xs btn-danger" style="background-color: #5c0d8e;border-color:#5c0d8e" onclick="getPaike2({$vo['id']})">奖励充值</a>
  336. <if condition="$Request.action eq 'screen' || $Request.param.u eq 2">
  337. <a class="btn btn-xs btn-danger" style="background-color: #e807b8;border-color:#e807b8" onclick="getPaike2({$vo['id']})">备注</a>
  338. </if>
  339. </if>
  340. </td>
  341. </tr>
  342. </foreach>
  343. </tbody>
  344. </table>
  345. <div class="pagination">{$page}</div>
  346. </form>
  347. </div>
  348. <script src="__STATIC__/js/admin.js"></script>
  349. <script src="__STATIC__/js/clipboard.min.js"></script>
  350. <script src="__STATIC__/js/layer/layer.js"></script>
  351. <script>
  352. function doDelete() {
  353. // Wind.use('artDialog', function () {
  354. var ids = [];
  355. $(".js-check:checked").each(function () {
  356. var id = $(this).val();
  357. if (id > 0) {
  358. ids.push(id);
  359. }
  360. });
  361. if (ids.length <= 0) {
  362. showMsg('请先选择操作项');
  363. return false;
  364. }
  365. if(confirm('确定批量删除选择项?不可恢复')){
  366. $.post('/user/admin_index/del',{id:ids},function(res){
  367. if(res.code == 1){
  368. showMsg(res.msg);
  369. setTimeout(function () {
  370. location.reload();
  371. }, 800)
  372. }else{
  373. showMsg(res.msg);
  374. }
  375. },"json")
  376. }
  377. // });
  378. }
  379. function getPaike(id){
  380. var addUrl = "{:url('AdminIndex/ban')}?id="+id;
  381. layer.open({
  382. type: 2, //1:页面层,2:iframe层,3:加载层,4:tips层。
  383. title: '条件筛选',
  384. shadeClose: false, //不开启遮罩关闭,也就是说,点击弹出层其它地方不会关闭弹出框
  385. shade: 0.8, //遮罩
  386. area: ['480px', '360px'],
  387. content: addUrl,
  388. end: function () { //最后执行reload
  389. location.reload();
  390. }
  391. });
  392. }
  393. $("#showcho").click(function(){
  394. $("#showchoice").show();
  395. });
  396. $("#nonecho").click(function(){
  397. $("#showchoice").hide();
  398. });
  399. /* function showMsg(msg, time){
  400. time = time? time : 1000;
  401. art.dialog({
  402. content: msg,
  403. icon: 'warning'
  404. });
  405. setTimeout(function () {
  406. }, time)
  407. }*/
  408. </script>
  409. <script >
  410. function getPaike2(id){
  411. openIframeLayer("{:url('market/marketshowreward')}?id=" + id , "", {
  412. area: ['600px', '300px'],
  413. // btn: ['确定', '取消'],
  414. })
  415. }
  416. </script>
  417. </body>
  418. </html>