index.html 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  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"><a> <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">付费会员
  7. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  8. 冻结用户
  9. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  10. 筛选用户
  11. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  12. 注销用户
  13. <elseif condition="$Request.action eq 'viprechange'">
  14. vip用户
  15. <else/>
  16. 用户列表
  17. </if>
  18. </a>
  19. </li>
  20. </ul>
  21. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2 || $Request.param.u eq 4">
  22. <div class="qrcode">
  23. <form class="well form-inline margin-top-20" method="post" onsubmit="return false;">
  24. <span>生成参数</span>
  25. <input class="form-control" id="url" type="text" name="url" style="width: 400px;" placeholder="请填写生成参数:如用户地址">
  26. &nbsp;
  27. <input type="button" class="btn btn-primary" onclick="makeQrcode()" value="生成二维码"/>
  28. <span class="qrcode">
  29. <a title="点击放大" data-href="">
  30. </a>
  31. </span>
  32. </form>
  33. </div>
  34. </if>
  35. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  36. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>2))}">
  37. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  38. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>3))}">
  39. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  40. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>4))}">
  41. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  42. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>5))}">
  43. <else/>
  44. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>1))}">
  45. </if>
  46. <!-- 用户ID:
  47. <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
  48. placeholder="请输入用户ID"> -->
  49. 关键字:
  50. <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}" placeholder="昵称/真实姓名/手机">
  51. <input type="submit" class="btn btn-primary" value="搜索"/>
  52. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  53. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>2))}">清空</a>
  54. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  55. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>3))}">清空</a>
  56. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  57. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>4))}">清空</a>
  58. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  59. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>5))}">清空</a>
  60. <else/>
  61. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>1))}">清空</a>
  62. </if>
  63. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  64. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>2))}">导出</a>
  65. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  66. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>3))}">导出</a>
  67. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  68. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>4))}">导出</a>
  69. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  70. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>5))}">导出</a>
  71. <else/>
  72. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>1))}">导出</a>
  73. </if>
  74. <a class="btn btn-danger" onclick="doDelete()">批量删除</a>
  75. <!-- <a class="btn btn-danger" href="{:url('user/adminIndex/index')}" style="border-color:#7349B8;background-color:#7349B8">已冻结的用户</a> -->
  76. <a class="btn btn-danger" id="showcho" style="border-color:#7349B8;background-color:#7349B8">条件筛选</a>
  77. <div id="showchoice" style="display: none; margin-top: 10px;">
  78. <php>$educationarray=array(1=>'大专',2=>'本科',3=>'硕士',4=>'博士');</php>
  79. <php>$marriedarray=array(1=>'未婚',2=>'离异',3=>'离异有孩子');</php>
  80. <php>$propertyarray=array(0=>'无',1=>'有房',2=>'有车',3=>'有房有车');</php>
  81. <php>$agearray=array('1975','1976','1977','1978','1979','1980','1981','1982','1983','1984','1985','1986','1987','1988','1989','1990','1991','1992','1993','1994','1995','1996','1997','1998','1999','2000');</php>
  82. <php>$sexarray=array(1=>'男',2=>'女');</php>
  83. <div>
  84. <div style="margin-top: 10px;">
  85. <!-- 年龄: <input class="form-control js-bootstrap-datetime" type="text" name="age1" style="width: 150px;margin-right:10px;" value="" placeholder="请选择年龄">
  86. <font style="color: red">至</font> &nbsp;
  87. <input class="form-control js-bootstrap-datetime" type="text" name="age2" style="width: 150px;margin-right:25px;" value="" placeholder="请选择年龄"> -->
  88. 年龄: <select class="form-control" name="age1" id="age1" style="width: 150px;margin-right:10px;">
  89. <option value="none">--请选择年龄--</option>
  90. <volist name="$agearray" id="vo">
  91. <option value="{$vo}">{$vo}</option>
  92. </volist>
  93. </select>
  94. <font style="color: red">至</font> &nbsp;
  95. <select class="form-control" name="age2" id="age2" style="width: 150px;margin-right:10px;">
  96. <option value="none">--请选择年龄--</option>
  97. <volist name="$agearray" id="vo">
  98. <option value="{$vo}">{$vo}</option>
  99. </volist>
  100. </select>
  101. 身高: <select class="form-control" name="height" id="height" style="width: 150px;margin-right:10px;">
  102. <option value="none">--请选择身高--</option>
  103. </select>
  104. <font style="color: red">至</font> &nbsp;
  105. <select class="form-control" name="heightt" id="heightt" style="width: 150px;margin-right:10px;">
  106. <option value="none">--请选择身高--</option>
  107. </select>
  108. </div>
  109. <div style="margin-top: 10px;">
  110. 学历: <select class="form-control" name="education" id="education" style="width: 150px;margin-right:10px;">
  111. <option value="none">--请选择学历--</option>
  112. <volist name="$educationarray" id="vo">
  113. <option value="{$key}">{$vo}</option>
  114. </volist>
  115. </select>
  116. 职业:
  117. <select class="form-control" name="occupation" style="margin-right: 15px;width: 150px;" id="position1">
  118. <option value="none">--请选择职位--</option>
  119. </select>
  120. 收入: <select class="form-control" name="salary" id="salary" style="width: 150px;margin-right:10px;">
  121. <option value="none">--请选择收入--</option>
  122. <option value="1">5-10w</option>
  123. <option value="2">10-20w</option>
  124. <option value="3">20-35w</option>
  125. <option value="4">35-55w</option>
  126. <option value="5">100w以上</option>
  127. </select>
  128. 资产: <select class="form-control" name="property" id="property" style="width: 150px;margin-right:10px;">
  129. <option value="none">--请选择资产--</option>
  130. <volist name="$propertyarray" id="vo">
  131. <option value="{$key}">{$vo}</option>
  132. </volist>
  133. </select>
  134. </div>
  135. <div style="margin-top: 10px;">
  136. 家乡: <input class="form-control" type="text" name="home_city" style="width: 150px;margin-right:10px;" value="" placeholder="请输入省/市">
  137. 居住地: <input class="form-control" type="text" name="city" style="width: 150px;margin-right:10px;" value="" placeholder="请输入市">
  138. 婚姻状况: <select class="form-control" name="married" id="married" style="width: 150px;margin-right:10px;">
  139. <option value="none">--请选择婚姻--</option>
  140. <volist name="$marriedarray" id="vo">
  141. <option value="{$key}">{$vo}</option>
  142. </volist>
  143. </select>
  144. 性别: <select class="form-control" name="sex" id="sex" style="width: 150px;margin-right:10px;">
  145. <option value="none">--请选择性别--</option>
  146. <volist name="$sexarray" id="vo">
  147. <option value="{$key}">{$vo}</option>
  148. </volist>
  149. </select>
  150. <a class="btn btn-warning" style=" padding: 3px 10px; border-color:#ca1883;background-color:#ca1883;color: #fff" id="nonecho">隐藏</a>
  151. </div>
  152. </div>
  153. </div>
  154. </form>
  155. <form method="post" class="js-ajax-form">
  156. <div class="table-actions">
  157. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  158. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
  159. data-action="{:url('AdminIndex/tovip',array('no'=>0))}" data-subcheck="true">取消VIP
  160. </button>
  161. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  162. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  163. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
  164. data-action="{:url('AdminIndex/toscreen',array('no'=>0))}" data-subcheck="true">取消筛选用户
  165. </button>
  166. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  167. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
  168. data-action="{:url('AdminIndex/touserlogout',array('yes'=>1))}" data-subcheck="true">清除身份信息
  169. </button>
  170. <else/>
  171. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
  172. data-action="{:url('AdminIndex/tovip',array('yes'=>1))}" data-subcheck="true">成为VIP
  173. </button>
  174. <button class="btn btn-primary btn-sm js-ajax-submit" style="" type="submit" data-action="{:url('AdminIndex/totuijian',array('yes'=>1))}" onclick="return confirm('确定要成为单身推荐吗?')" data-subcheck="true">成为单身推荐
  175. </button>
  176. <button class="btn btn-primary btn-sm js-ajax-submit" style="" type="submit" data-action="{:url('AdminIndex/toscreen',array('yes'=>1))}" onclick="return confirm('确定要成为筛选用户吗?')" data-subcheck="true">成为筛选用户
  177. </button>
  178. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
  179. data-action="{:url('AdminIndex/tozhuxiao',array('yes'=>1))}" onclick="return confirm('确定要成为注销吗?')" data-subcheck="true">
  180. 注销
  181. </button>
  182. </if>
  183. </div>
  184. <table class="table table-hover table-bordered">
  185. <thead>
  186. <tr>
  187. <th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">全选</th>
  188. <th>ID</th>
  189. <th>账号</th>
  190. <th>{:lang('NICENAME')}</th>
  191. <th>真实姓名</th>
  192. <th>爱心</th>
  193. <if condition="$Request.action eq 'viprechange'">
  194. <th>充值金额</th>
  195. <th>是否vip</th>
  196. <th style="text-align: center;">是否过期</th>
  197. <else/>
  198. <th style="text-align: center;">是否推荐</th>
  199. <th style="text-align: center;">是否置顶</th>
  200. </if>
  201. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  202. <th>冻结原因</th>
  203. <else/>
  204. <th>手机</th>
  205. </if>
  206. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2 || $Request.param.u eq 4">
  207. <th>网址</th>
  208. </if>
  209. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  210. <th>冻结时间</th>
  211. <elseif condition=" $Request.action eq 'userlogout' ">
  212. <th>注销时间</th>
  213. <elseif condition=" $Request.action eq 'viprechange' ">
  214. <th>开通时间</th>
  215. <else/>
  216. <th>{:lang('REGISTRATION_TIME')}</th>
  217. </if>
  218. <th>登录时间</th>
  219. <th>身份证</th>
  220. <th>职位</th>
  221. <th>学历</th>
  222. <th>{:lang('STATUS')}</th>
  223. <th>{:lang('ACTIONS')}</th>
  224. </tr>
  225. </thead>
  226. <tbody>
  227. <php>
  228. $user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));
  229. </php>
  230. <foreach name="list" item="vo">
  231. <tr>
  232. <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
  233. value="{$vo.id}" title="ID:{$vo.id}"></td>
  234. <td>{$vo.id}</td>
  235. <td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:lang('THIRD_PARTY_USER'))}
  236. </td>
  237. <td>{$vo['user_nickname']?$vo['user_nickname']:lang('NOT_FILLED')}</td>
  238. <td>{$vo['real_name']?$vo['real_name']:lang('NOT_FILLED')}</td>
  239. <td>{$vo['redheart']}</td>
  240. <if condition="$Request.action eq 'viprechange'">
  241. <td>{$vo['pay_money']}</td>
  242. <td>
  243. <switch name="vo.vip_auth">
  244. <case value="1">
  245. <span style="color: blue">是</span>
  246. </case>
  247. <case value="0">
  248. <span style="color: red">否</span>
  249. </case>
  250. </switch>
  251. </td>
  252. <td>
  253. <if condition="$vo.vip_expire gt time()">
  254. <span style="color: blue" title="{:date('Y-m-d H:i',$vo['vip_expire'])}到期">未过期</span>
  255. <else/>
  256. <span style="color: red">已过期</span>
  257. </if>
  258. </td>
  259. <else/>
  260. <td style="text-align: center;">
  261. <switch name="vo.is_tuijian">
  262. <case value="1">
  263. <span style="color: blue">是</span>
  264. </case>
  265. <case value="0">
  266. <span style="color: red">否</span>
  267. </case>
  268. </switch>
  269. </td>
  270. <td style="text-align: center;">
  271. <switch name="vo.is_top">
  272. <case value="1">
  273. <span style="color: blue" title="到期时间{$vo.top_expire}">是</span>
  274. </case>
  275. <case value="0">
  276. <span style="color: red" title="到期时间{$vo.top_expire}">否</span>
  277. </case>
  278. </switch>
  279. </td>
  280. </if>
  281. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  282. <td><span style="color:red">{$vo.freezing}</span></td>
  283. <else/>
  284. <td>{$vo.mobile}</td>
  285. </if>
  286. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2 || $Request.param.u eq 4">
  287. <td>
  288. <span class="label label-primary copy-btn copy" data-url="{:url('/weixin/member/home?id=','','',true)}{$vo.id}">复制</span>
  289. </td>
  290. </if>
  291. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  292. <td>{$vo.updated_at}</td>
  293. <elseif condition=" $Request.action eq 'userlogout' ">
  294. <td>{$vo.updated_at}</td>
  295. <elseif condition=" $Request.action eq 'viprechange' ">
  296. <td>{$vo.updated_at}</td>
  297. <else/>
  298. <td>{:date('Y-m-d H:i',$vo['create_time'])}</td>
  299. </if>
  300. <td>{:date('Y-m-d H:i',$vo['last_login_time'])}</td>
  301. <td>
  302. <switch name="vo.idcard_check">
  303. <case value="1">
  304. <span style="color:red">未审</span>
  305. </case>
  306. <case value="2">
  307. <span style="color:green">已审</span>
  308. </case>
  309. <case value="3">
  310. <span style="color:#ef9413">驳回</span>
  311. </case>
  312. <case value="">
  313. <span style="color:blue">未填</span>
  314. </case>
  315. </switch>
  316. </td>
  317. <td>
  318. <switch name="vo.position_check">
  319. <case value="0">
  320. <span style="color:blue">未填</span>
  321. </case>
  322. <case value="1">
  323. <span style="color:red">未审</span>
  324. </case>
  325. <case value="2">
  326. <span style="color:green">已审</span>
  327. </case>
  328. <case value="3">
  329. <span style="color:#ef9413">驳回</span>
  330. </case>
  331. <case value="">
  332. <span style="color:blue">未填</span>
  333. </case>
  334. </switch>
  335. </td>
  336. <td>
  337. <switch name="vo.education_check">
  338. <case value="0">
  339. <span style="color:blue">未填</span>
  340. </case>
  341. <case value="1">
  342. <span style="color:red">未审</span>
  343. </case>
  344. <case value="2">
  345. <span style="color:green">已审</span>
  346. </case>
  347. <case value="3">
  348. <span style="color:#ef9413">驳回</span>
  349. </case>
  350. <case value="">
  351. <span style="color:blue">未填</span>
  352. </case>
  353. </switch>
  354. </td>
  355. <td>
  356. <if condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  357. <if condition="$vo.idcard eq '' || $vo.idcard eq null">
  358. <span style="color:green">身份已清除</span>
  359. <else/>
  360. <span style="color:red">身份未清除</span>
  361. </if>
  362. <else/>
  363. <switch name="vo.user_status">
  364. <case value="0">
  365. <span class="label label-danger">已冻结</span>
  366. </case>
  367. <case value="1">
  368. <span class="label label-success">{$user_statuses[$vo['user_status']]}</span>
  369. </case>
  370. <case value="2">
  371. <span class="label label-warning">{$user_statuses[$vo['user_status']]}</span>
  372. </case>
  373. </switch>
  374. </if>
  375. </td>
  376. <td>
  377. <if condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  378. <a class="btn btn-xs btn-primary" href="{:url('adminIndex/edit',array('id'=>$vo['id']))}">编辑</a>
  379. <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>
  380. <else/>
  381. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  382. <a class="btn btn-xs btn-primary" href="{:url('adminIndex/edit',array('id'=>$vo['id'],'u'=>2))}">编辑</a>
  383. <else/>
  384. <a class="btn btn-xs btn-primary" href="{:url('adminIndex/edit',array('id'=>$vo['id']))}">编辑</a>
  385. </if>
  386. <neq name="vo.id" value="1">
  387. <empty name="vo.user_status">
  388. <a class="btn btn-xs btn-success js-ajax-dialog-btn"
  389. href="{:url('adminIndex/cancelban',array('id'=>$vo['id']))}"
  390. data-msg="{:lang('ACTIVATE_USER_CONFIRM_MESSAGE')}">{:lang('ACTIVATE_USER')}</a>
  391. <else/>
  392. <!-- <a class="btn btn-xs btn-warning js-ajax-dialog-btn"
  393. href="{:url('adminIndex/ban',array('id'=>$vo['id']))}"
  394. data-msg="确认冻结该用户?">冻结</a> -->
  395. <a class="btn btn-xs btn-warning" onclick="getPaike({$vo['id']})"
  396. >冻结</a>
  397. </empty>
  398. <else/>
  399. <a class="btn btn-xs btn-warning disabled">冻结</a>
  400. </neq>
  401. <if condition="$Request.action neq 'userlogout' || $Request.param.u neq 5">
  402. <a class="btn btn-xs btn-warning" style="background-color: #5c0d8e;border-color:#5c0d8e" onclick="checkLogout({$vo['id']});">注销</a>
  403. <!-- <a class="btn btn-xs btn-warning js-ajax-dialog-btn" style="background-color: #5c0d8e;border-color:#5c0d8e" onclick="checkLogout()" href="{:url('adminIndex/tozhuxiao',array('yes'=>1,'ids'=>$vo['id']))}" data-msg="确认注销该用户?">注销</a>-->
  404. </if>
  405. <if condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  406. <else/>
  407. <a class="btn btn-xs btn-danger" href="{:url('adminIndex/accountadd',array('id'=>$vo['id']))}">爱心充值</a>
  408. </if>
  409. <if condition="$Request.action eq 'screen' || $Request.param.u eq 2">
  410. <a class="btn btn-xs btn-danger" style="background-color: #e807b8;border-color:#e807b8" onclick="getPaike2({$vo['id']})">备注</a>
  411. </if>
  412. </if>
  413. </td>
  414. </tr>
  415. </foreach>
  416. </tbody>
  417. </table>
  418. <div class="pagination">{$page}</div>
  419. </form>
  420. </div>
  421. <script src="__STATIC__/js/admin.js"></script>
  422. <script src="__STATIC__/js/clipboard.min.js"></script>
  423. <script src="__STATIC__/js/layer/layer.js"></script>
  424. <script src="__STATIC__/js/position/position1.js" type="text/javascript"></script>
  425. <script src="__STATIC__/js/height/height.js" type="text/javascript"></script>
  426. <script>
  427. function reloadPage(win) {
  428. win.location.reload();
  429. }
  430. /**
  431. * 生成二维啊
  432. * @returns {boolean}
  433. */
  434. function makeQrcode() {
  435. var url = $("#url").val();
  436. if(url == '' || url == null){
  437. showMsg('请填写生成参数');
  438. return false;
  439. }
  440. // 生成处理
  441. $(".qrcode a").html("二维码生成中...");
  442. $.post('/user/recommend/makeQrcode', {url: url}, function(res){
  443. if(res.code == 'success'){
  444. showMsg(res.message);
  445. $(".qrcode a").attr('data-href', res.data.qrcode);
  446. $(".qrcode a").html('<img src="'+res.data.qrcode+'" width="48" height="48"/>');
  447. }else{
  448. $(".qrcode a").html("");
  449. showMsg(res.message);
  450. }
  451. },'json');
  452. }
  453. $(function () {
  454. var copyText = '';
  455. var copyBox = new ClipboardJS('.copy',{
  456. text: function (e) {
  457. if(copyText=='' || copyText == null){
  458. showMsg('暂无复制内容');
  459. return false;
  460. }
  461. return copyText;
  462. }
  463. });
  464. copyBox.on("success",function(e){
  465. console.log(e);
  466. showMsg('复制成功');
  467. });
  468. copyBox.on("error",function(e){
  469. showMsg('复制失败');
  470. });
  471. $(".copy-btn").click(function(){
  472. copyText = $(this).attr('data-url');
  473. });
  474. $(".qrcode a").click(function(){
  475. var url = $(this).attr('data-href');
  476. if(url){
  477. imagePreviewDialog(url);
  478. }
  479. })
  480. setCookie("refersh_time", 3);
  481. Wind.use('ajaxForm', 'artDialog', 'iframeTools', function () {
  482. //批量冻结
  483. $('#js-batch-delete').click(function (e) {
  484. var ids = [];
  485. $("input[name='ids[]']").each(function () {
  486. if ($(this).is(':checked')) {
  487. ids.push($(this).val());
  488. }
  489. });
  490. if (ids.length == 0) {
  491. return false;
  492. }
  493. ids = ids.join(',');
  494. /*art.dialog.open("/user/admin_index/del.html?ids="+ids, {
  495. title: "批量冻结",
  496. width: "300px",
  497. close : function () {
  498. art.dialog.open.origin.location.reload();
  499. }
  500. });*/
  501. });
  502. //end
  503. });
  504. });
  505. </script>
  506. <script type="text/javascript" >
  507. //获得大职位下拉框对象
  508. var province = document.getElementById("position1");
  509. //遍历大职位数据,并把里面大职位的数据追加到option选项中
  510. for (var i=0; i<positions.length; i++) {
  511. var option = document.createElement("option");
  512. option.value = positions[i].p_name;
  513. option.innerHTML = positions[i].p_name;
  514. province.appendChild(option);
  515. }
  516. // function abc(){
  517. // alert(document.getElementById('position1').value);
  518. // var proindex= document.getElementById('position1').selectedIndex;
  519. // var cityindex= document.getElementById('position2').selectedIndex;
  520. // alert(document.getElementById('position1').options[proindex].text+document.getElementById('position2').options[cityindex].text);
  521. // }
  522. </script>
  523. <script type="text/javascript" >
  524. //获得身高下拉框对象
  525. var province = document.getElementById("height");
  526. //遍历身高数据,并把里面身高的数据追加到option选项中
  527. for (var i=0; i<heights.length; i++) {
  528. var option = document.createElement("option");
  529. option.value = heights[i].p_id;
  530. option.innerHTML = heights[i].p_name;
  531. province.appendChild(option);
  532. }
  533. </script>
  534. <script type="text/javascript" >
  535. //获得身高下拉框对象
  536. var provincet = document.getElementById("heightt");
  537. //遍历身高数据,并把里面身高的数据追加到option选项中
  538. for (var i=0; i<heights.length; i++) {
  539. var option = document.createElement("option");
  540. option.value = heights[i].p_id;
  541. option.innerHTML = heights[i].p_name;
  542. provincet.appendChild(option);
  543. }
  544. provincet.onchange = function() {
  545. var heightval=this.value;
  546. if($('#height').val()!='none'){
  547. if($('#height').val()>this.value){
  548. alert('开始升高不能大于结束身高!');
  549. }
  550. }
  551. }
  552. </script>
  553. <script>
  554. function reloadPage(win) {
  555. win.location.reload();
  556. }
  557. $(function () {
  558. setCookie("refersh_time", 3);
  559. Wind.use('ajaxForm', 'artDialog', 'iframeTools', function () {
  560. //批量冻结
  561. $('#js-batch-delete').click(function (e) {
  562. var ids = [];
  563. $("input[name='ids[]']").each(function () {
  564. if ($(this).is(':checked')) {
  565. ids.push($(this).val());
  566. }
  567. });
  568. if (ids.length == 0) {
  569. return false;
  570. }
  571. ids = ids.join(',');
  572. /*art.dialog.open("/user/admin_index/del.html?ids="+ids, {
  573. title: "批量冻结",
  574. width: "300px",
  575. close : function () {
  576. art.dialog.open.origin.location.reload();
  577. }
  578. });*/
  579. });
  580. //end
  581. });
  582. });
  583. </script>
  584. <script>
  585. function doDelete() {
  586. // Wind.use('artDialog', function () {
  587. var ids = [];
  588. $(".js-check:checked").each(function () {
  589. var id = $(this).val();
  590. if (id > 0) {
  591. ids.push(id);
  592. }
  593. });
  594. if (ids.length <= 0) {
  595. showMsg('请先选择操作项');
  596. return false;
  597. }
  598. if(confirm('确定批量删除选择项?不可恢复')){
  599. $.post('/user/admin_index/del',{id:ids},function(res){
  600. if(res.code == 1){
  601. showMsg(res.msg);
  602. setTimeout(function () {
  603. location.reload();
  604. }, 800)
  605. }else{
  606. showMsg(res.msg);
  607. }
  608. },"json")
  609. }
  610. // });
  611. }
  612. function getPaike(id){
  613. var addUrl = "{:url('AdminIndex/ban')}?id="+id;
  614. layer.open({
  615. type: 2, //1:页面层,2:iframe层,3:加载层,4:tips层。
  616. title: '条件筛选',
  617. shadeClose: false, //不开启遮罩关闭,也就是说,点击弹出层其它地方不会关闭弹出框
  618. shade: 0.8, //遮罩
  619. area: ['480px', '360px'],
  620. content: addUrl,
  621. end: function () { //最后执行reload
  622. location.reload();
  623. }
  624. });
  625. }
  626. function checkLogout(id){
  627. var addUrl = "{:url('AdminIndex/logout')}?id="+id;
  628. layer.open({
  629. type: 2, //1:页面层,2:iframe层,3:加载层,4:tips层。
  630. title: '注销确认',
  631. shadeClose: false, //不开启遮罩关闭,也就是说,点击弹出层其它地方不会关闭弹出框
  632. shade: 0.8, //遮罩
  633. area: ['360px', '280px'],
  634. content: addUrl,
  635. end: function () { //最后执行reload
  636. location.reload();
  637. }
  638. });
  639. return false;
  640. }
  641. $("#showcho").click(function(){
  642. $("#showchoice").show();
  643. });
  644. $("#nonecho").click(function(){
  645. $("#showchoice").hide();
  646. });
  647. /* function showMsg(msg, time){
  648. time = time? time : 1000;
  649. art.dialog({
  650. content: msg,
  651. icon: 'warning'
  652. });
  653. setTimeout(function () {
  654. }, time)
  655. }*/
  656. </script>
  657. <script >
  658. function getPaike2(id){
  659. openIframeLayer("{:url('AdminIndex/showbeizhu')}?id=" + id , "", {
  660. area: ['600px', '300px'],
  661. // btn: ['确定', '取消'],
  662. })
  663. }
  664. </script>
  665. </body>
  666. </html>