index.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. <!-- <script src="../../../../public/static/js/admin/modal.js"></script> -->
  2. {extend name="layout/base" /}
  3. {block name="detail_css"}
  4. <link rel="stylesheet" href="__STATIC__/css/admin/bootstrap.min.css?v={$Think.STATIC_VERSION}">
  5. <link rel="stylesheet" href="__STATIC__/css/admin/bootstrap-table.css?v={$Think.STATIC_VERSION}">
  6. <title>推广账号管理</title>
  7. <style>
  8. label {
  9. padding-top: 10px;
  10. margin-left: 10px;
  11. }
  12. .x-so {
  13. text-align: unset;
  14. margin-bottom: 20px;
  15. }
  16. section {
  17. float: right;
  18. }
  19. .layui-icon {
  20. vertical-align: bottom;
  21. }
  22. .operation {
  23. border: 0;
  24. padding: 5px;
  25. color: #fff;
  26. border-radius: 5px;
  27. }
  28. .hide{
  29. display: none;
  30. }
  31. .table>tbody>tr>td,
  32. .table>tbody>tr>th,
  33. .table>tfoot>tr>td,
  34. .table>tfoot>tr>th,
  35. .table>thead>tr>td,
  36. .table>thead>tr>th {
  37. padding: 8px;
  38. line-height: 1.42857143;
  39. vertical-align: middle;
  40. border-top: 1px solid #ddd;
  41. }
  42. table td,
  43. table th {
  44. text-align: center;
  45. }
  46. .detail-view td,
  47. .detail-view th {
  48. text-align: left;
  49. }
  50. .detail-view td p a:hover{
  51. cursor: pointer;
  52. }
  53. </style>
  54. <link rel="stylesheet" href="__STATIC__/css/admin/paginator.css?v={$Think.STATIC_VERSION}">
  55. {/block}
  56. {block name="content"}
  57. <div class="x-body">
  58. <form class="layui-form " method="get" action="{:url('index')}">
  59. <div style="float: right;" class="layui-form-item" >
  60. <div class="layui-input-inline layui-form">
  61. <select name="business_type" lay-filter="business_type" id="business_type" lay-search>
  62. <option value="">请选择商务</option>
  63. </select>
  64. </div>
  65. <div class="layui-input-inline">
  66. <select name="president_type" lay-filter="president_type" id="president_type" lay-search>
  67. <option value="">请选择会长</option>
  68. </select>
  69. </div>
  70. <div class="layui-input-inline">
  71. <select name="president_type_son" lay-filter="president_type_son" id="president_type_son" lay-search>
  72. <option value="">请选择子会长</option>
  73. </select>
  74. </div>
  75. <div class="layui-inline">
  76. <div class="layui-input-inline">
  77. <input class="layui-input" name="username" placeholder="账号名" value="{:input('request.username', '')}">
  78. </div>
  79. </div>
  80. <div class="layui-inline">
  81. <div class="layui-input-inline">
  82. <select name="channel_status" lay-filter="level" value="{:input('request.channel_status')}">
  83. <option value="">状态</option>
  84. <option value="0" {if condition="$Request.get.channel_status eq '0' " }selected="selected" {/if}>冻结</option>
  85. <option value="1" {if condition="$Request.get.channel_status eq 1 " }selected="selected" {/if}>开启</option>
  86. </select>
  87. </div>
  88. </div>
  89. <div class="layui-inline">
  90. <div class="layui-input-inline">
  91. <select name="status" lay-filter="level" value="{:input('request.status')}">
  92. <option value="">个人身份认证状态</option>
  93. <option value="0" {if condition="$Request.get.status eq '0' " }selected="selected" {/if}>待审核</option>
  94. <option value="1" {if condition="$Request.get.status eq 1 " }selected="selected" {/if}>已身份认证</option>
  95. <option value="2" {if condition="$Request.get.status eq 2 " }selected="selected" {/if}>未身份认证</option>
  96. </select>
  97. </div>
  98. </div>
  99. <div class="layui-inline">
  100. <input class="layui-input" placeholder="开始时间" name="start_time" id="J_start" value="{:input('request.start_time')}" autocomplete="off" style="width:130px;display:inline-block">
  101. <span>-</span>
  102. <input class="layui-input" placeholder="结束时间" name="end_time" id="J_end" value="{:input('request.end_time',date('Y-m-d'))}" autocomplete="off" style="width:130px;display:inline-block">
  103. </div>
  104. <div class="layui-inline">
  105. <div class="layui-input-inline">
  106. <select name="level" lay-filter="level" value="{:input('request.level', '')}">
  107. <option value="0">账号类型</option>
  108. <option value="1" {if condition="$Request.get.level eq '1'" }selected="selected" {/if}>会长(B)</option>
  109. <option value="2" {if condition="$Request.get.level eq '2'" }selected="selected" {/if}>子会长(B-)</option>
  110. <option value="3" {if condition="$Request.get.level eq '3'" }selected="selected" {/if}>推广员(C)</option>
  111. </select>
  112. </div>
  113. </div>
  114. <div class="layui-inline">
  115. <div class="layui-input-inline">
  116. <select name="gh_status" lay-filter="level" value="{:input('request.gh_status')}">
  117. <option value="">是否聚合用户</option>
  118. <option value="1" {if condition="$Request.get.gh_status eq 1 " }selected="selected" {/if}>是</option>
  119. <option value="0" {if condition="$Request.get.gh_status eq '0' " }selected="selected" {/if}>否</option>
  120. </select>
  121. </div>
  122. </div>
  123. <div class="layui-inline" style="margin-left:10px;">
  124. <button class="layui-btn" lay-submit id="J_search_submit">搜索</button>
  125. <a class="layui-btn" href="{:url('index')}">清空</a>
  126. <a class="layui-btn layui-btn-normal download" href="javascript:;">下载报表</a>
  127. </div>
  128. <div class="layui-inline">
  129. <div class="layui-input-inline">
  130. <div class="layui-inline">
  131. <a href="{:url('add')}" class="layui-btn layui-btn-radius"><i class="layui-icon">&#xe654;</i>添加会长账号</a>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <hr>
  137. <div style="clear:both;"></div>
  138. <table data-toggle="table" data-detail-view="true" data-detail-formatter="detailFormatter">
  139. <thead>
  140. <tr>
  141. <th>渠道号</th>
  142. <th>账号名</th>
  143. <th>登录验证</th>
  144. <th>手机号</th>
  145. <th>保证金(元)</th>
  146. <th>账号类型</th>
  147. <th>子会长</th>
  148. <th>会长账号</th>
  149. <th>商务账号</th>
  150. <th>创建时间</th>
  151. <th>状态</th>
  152. <th>个人身份认证状态</th>
  153. <th>身份认证历史记录</th>
  154. <th>祈盟聚合用户</th>
  155. <th>176 ID</th>
  156. <th>操作</th>
  157. <th class="hide">姓名</th>
  158. <th class="hide">身份证号码</th>
  159. <th class="hide">企业名称</th>
  160. <th class="hide">社会信用码</th>
  161. <th class="hide">法人姓名</th>
  162. <th class="hide">法人身份证</th>
  163. <th class="hide">手机号</th>
  164. <th class="hide">邮箱</th>
  165. <th class="hide">联系地址</th>
  166. </tr>
  167. </thead>
  168. <tbody>
  169. {volist name="channles" id="vo"}
  170. <tr>
  171. <td>{$vo.channelid}</td>
  172. <td>{$vo.username}</td>
  173. <td>{$vo.login_check ? '开启' : '关闭'}</td>
  174. <td>
  175. <a class="showMobile" data-id="{$vo.adminid}" data-field="mobile">
  176. {$vo.mobile != '' ? stringObfuscation($vo.mobile,3) : '' }
  177. </a>
  178. </td>
  179. <td>
  180. {switch name="$vo.level"}
  181. {case value="1" }
  182. {$vo.deposit_amt|floatval}
  183. {/case}
  184. {default /}--
  185. {/switch}
  186. </td>
  187. <td>
  188. {switch name="$vo.level"}
  189. {case value="1" }
  190. 会长
  191. {/case}
  192. {case value="2"}
  193. 子会长
  194. {/case}
  195. {default /}推广员
  196. {/switch}
  197. </td>
  198. <td>
  199. {php} echo get_top_second_channel_name($vo['channelid'])['second_name']; {/php}
  200. </td>
  201. <td>
  202. {php} echo get_top_channel($vo['channelid'])['name']; {/php}
  203. </td>
  204. <td>
  205. {$vo.top_name}
  206. </td>
  207. <!--
  208. <td>{$vo.show_full_account ? '明文' : '密文'}</td>
  209. -->
  210. <td>{$vo.created_time|date="Y-m-d H:i:s",###}</td>
  211. <td>{$vo.status ? '开启' : '冻结'}</td>
  212. <td>
  213. {if condition="($vo['id']) AND ($vo['info_status'] eq 1)"}
  214. {switch name=$vo['apply_status']}
  215. {case value="0"}待审核{/case}
  216. {default /}已身份认证
  217. {/switch}
  218. {else /}
  219. {switch name=$vo['apply_status']}
  220. {case value="0"}待审核{/case}
  221. {default /}未身份认证
  222. {/switch}
  223. {/if}
  224. </td>
  225. <td><a href="#" class ="checklog" id="{$vo.id}" channelid="{$vo.channel_id}">查看历史记录</a></td>
  226. <td>
  227. <input type="checkbox" name="yyy" lay-skin="switch" lay-filter="gh_status" value="{$vo.gh_status}" lay-text="是|否" {$vo.gh_status==1?'checked':''} data-channelid="{$vo.channelid}">
  228. </td>
  229. <td>{$vo.yql_id>0 ?$vo.yql_id:'-'}</td>
  230. <td><a href="{:url('edit', array('id'=>$vo['adminid'],'type'=>0))}" class="layui-btn">
  231. <i class="layui-icon">&#xe642;</i>编辑</a>
  232. {if condition="$vo['status'] eq 1"}
  233. <a href="{:url('ban', array('id'=>$vo['adminid']))}" class="layui-btn layui-btn-warm">冻结</a>
  234. <a target="_blank" href="{$Think.config.self_cps_url}/prod-api/login/checklogin?username={$vo.username}" class="layui-btn layui-btn-normal" pad="{$vo['apply_status']}">进入渠道后台</a>
  235. {else /}
  236. <a href="{:url('cancelBan', array('id'=>$vo['adminid']))}" class="layui-btn layui-btn-normal" pad="{$vo['apply_status']}">开启</a>
  237. {/if}
  238. {if condition="($vo['id']) AND ($vo['info_status'] neq 0)"}
  239. <a class="layui-btn layui-btn-normal toCheck" apply_status='{$vo.apply_status}' data-id='{$vo.channelid}'><i class="icon-edit"></i>查看身份信息</a>
  240. {/if}
  241. {switch name=$vo['apply_status']}
  242. {case value="0"}<a class="layui-btn layui-btn-normal toGameEnter" apply_status='{$vo.apply_status}' data-id='{$vo.channelid}' cid="{$vo.applyId}"><i class="icon-edit"></i>审核身份信息</a>&nbsp;&nbsp;{/case}
  243. {default /}
  244. {/switch}
  245. {if condition="$vo['level'] eq 1"}
  246. <a class="layui-btn layui-btn-normal toSetDeposit" data-id='{$vo.channelid}' "><i class="icon-edit"></i>设置保证金</a>
  247. {/if}
  248. </td>
  249. <td>{$vo['real_name']}</td>
  250. <td>{$vo['person_id']}</td>
  251. <td>{$vo['company_name']}</td>
  252. <td>{$vo['us_code']}</td>
  253. <td>{$vo['leson_name']}</td>
  254. <td>{$vo['leson_person_id']}</td>
  255. <td>{$vo['linkman_email']}</td>
  256. <td>{$vo['linkman_mobile']}</td>
  257. <td>{$vo['address']}</td>
  258. </tr>
  259. {/volist}
  260. </tbody>
  261. </table>
  262. <div class="pager-container">
  263. <span>
  264. {$channles->total()}条记录
  265. </span>
  266. {$page}
  267. <div class="layui-inline" style="margin-left:10px;width:80px;">
  268. <input type="text" style="height: 30px;" class="layui-input" placeholder="跳转至" name="page" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
  269. </div>
  270. </div>
  271. </form>
  272. </div>
  273. {/block}
  274. {block name="detail_js"}
  275. <!-- <script type="text/javascript" src="__STATIC__/js/jquery-2.1.4.min.js?v={$Think.STATIC_VERSION}"></script> -->
  276. <!-- <script src="__STATIC__/js/admin/modal.js?v={$Think.STATIC_VERSION}"></script> -->
  277. <!-- <script type="text/javascript" src="__STATIC__/js/admin/bootstrap-table.js?v={$Think.STATIC_VERSION}"></script> -->
  278. <script>
  279. var $table = $('#objTable');
  280. $table.bootstrapTable({});
  281. layui.use(['laydate', 'form', 'layCascader'], function () {
  282. var laydate = layui.laydate, form = layui.form, layCascader = layui.layCascader;
  283. //执行一个laydate实例
  284. laydate.render({
  285. elem: '#J_start', //指定元素
  286. type: 'date'
  287. });
  288. //执行一个laydate实例
  289. laydate.render({
  290. elem: '#J_end', //指定元素
  291. type: 'date'
  292. });
  293. $(document).on('mouseenter', '.tips', function(event) {
  294. var id = $(this).attr('data_id');
  295. var str = "驳回原因:"+$(this).attr('var');
  296. layer.tips(str, '.tps'+id, {
  297. tips: [1, '#0FA6D8'] //还可配置颜色
  298. });
  299. });
  300. form.on('switch(gh_status)', function(data){
  301. var channelid = $(data.elem).attr("data-channelid");
  302. if (!channelid){
  303. layer.alert("操作有误!获取当前用户ID失败!");
  304. return false;
  305. }
  306. var gh_status = 0;
  307. if (data.elem.checked == true){
  308. gh_status = 1
  309. }
  310. $.ajax({
  311. type: "post",
  312. url: "{:url('editGhStatus')}",
  313. data: {'channelid':channelid,'gh_status':gh_status},
  314. dataType: 'json',
  315. success: function (data) {
  316. var icon = 5;
  317. if (data['code'] == 1){
  318. icon = 1;
  319. }
  320. layer.alert(data['msg'], {
  321. icon: icon
  322. });
  323. },
  324. error: function () {
  325. layer.alert('网络错误,请重试');
  326. },
  327. });
  328. });
  329. var businessType = getQueryVariable("business_type"), president_type = getQueryVariable("president_type"), president_type_son = getQueryVariable("president_type_son")
  330. /**
  331. * 获取下拉数据
  332. * @param type sw=商务/hz=会长/zhz=子会长
  333. * @param pid 上级ID
  334. */
  335. function getChannelSelectData(type = 'sw', pid = ''){
  336. $.ajax({
  337. type: "GET",
  338. url: '{:url("Channel/getSelectList")}',
  339. dataType: "json",
  340. async: false,
  341. data: {'type': type,'pid': pid},
  342. success: function (res) {
  343. listData = res.data
  344. // console.log("## getChannelSelectData: ", listData)
  345. if (type === 'sw'){
  346. $("#business_type").empty();
  347. $("#business_type").append("<option value=''>请选择商务</option>")
  348. businessType = getQueryVariable("business_type");
  349. $.each(listData, function (i, item) {
  350. if (item.id == businessType){
  351. $("#business_type").append("<option value='" + item.id + "' selected>" + item.name + "</option>")
  352. }else{
  353. $("#business_type").append("<option value='" + item.id + "'>" + item.name + "</option>")
  354. }
  355. })
  356. }else if (type === 'hz'){
  357. $("#president_type").empty();
  358. $("#president_type").append("<option value=''>请选择会长</option>")
  359. president_type = getQueryVariable("president_type");
  360. $.each(listData, function (i, item) {
  361. if (item.id == president_type){
  362. $("#president_type").append("<option value='" + item.id + "' selected>" + item.name + "</option>")
  363. }else{
  364. $("#president_type").append("<option value='" + item.id + "'>" + item.name + "</option>")
  365. }
  366. })
  367. }else if (type === 'zhz'){
  368. $("#president_type_son").empty();
  369. $("#president_type_son").append("<option value=''>请选择子会长</option>")
  370. president_type_son = getQueryVariable("president_type_son");
  371. $.each(listData, function (i, item) {
  372. if (item.id == president_type_son){
  373. $("#president_type_son").append("<option value='" + item.id + "' selected>" + item.name + "</option>")
  374. }else{
  375. $("#president_type_son").append("<option value='" + item.id + "'>" + item.name + "</option>")
  376. }
  377. })
  378. }
  379. form.render('select')
  380. },
  381. });
  382. }
  383. // 初始化下拉
  384. getChannelSelectData('sw');
  385. getChannelSelectData('hz', businessType);
  386. getChannelSelectData('zhz', president_type);
  387. // 获取指定URL的参数值
  388. function getQueryVariable(name) {
  389. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
  390. var r = window.location.search.substr(1).match(reg);
  391. if (r != null) return unescape(r[2]);
  392. return null;
  393. }
  394. form.on('select(business_type)', function (data) {
  395. if (data.value > 0){
  396. getChannelSelectData('hz', data.value);
  397. }else{
  398. getChannelSelectData('hz', businessType);
  399. getChannelSelectData('zhz', president_type);
  400. }
  401. });
  402. form.on('select(president_type)', function (data) {
  403. if (data.value > 0){
  404. getChannelSelectData('zhz', data.value);
  405. }else{
  406. getChannelSelectData('zhz', president_type);
  407. }
  408. });
  409. });
  410. //表格的
  411. function detailFormatter(index, row) {
  412. var html = [];
  413. var obj = {
  414. 0: "ID",
  415. 1: "账号名",
  416. 2: "登录验证",
  417. 3: "手机号",
  418. 4: "保证金(元)",
  419. 5: "账号类型",
  420. 6: "会长账号",
  421. 7: "会长账号",
  422. 8: "商务账号",
  423. 9: "创建时间",
  424. 10: "状态",
  425. 11: "个人身份认证状态",
  426. 12: "身份认证历史记录",
  427. 13: "操作",
  428. 14: "姓名",
  429. 15: "身份证号码",
  430. 16: "企业名称",
  431. 17: "社会信用码",
  432. 18: "法人姓名",
  433. 19: "法人身份证",
  434. 20: "邮箱",
  435. 21: "手机号",
  436. 22: "联系地址",
  437. }
  438. $.each(row, function (key, value) {
  439. if (key >= 14 && key<=32) {
  440. html.push('<p><b>' + obj[key] + ':</b> ' + value + '</p>');
  441. } else {
  442. html.push('<p class="hide"><b>' + obj[key] + ':</b> ' + value + '</p>');
  443. }
  444. });
  445. return html.join('');
  446. }
  447. $('.download').on('click', function () {
  448. $.ajax({
  449. type: "post",
  450. url: "{:url('download')}",
  451. async: false,
  452. data: $('.layui-form').serialize(),
  453. dataType: 'json',
  454. timeout: 5000,
  455. success: function (data) {
  456. if (data['code']) {
  457. layer.alert(data['msg']);
  458. } else {
  459. layer.alert(data['msg']);
  460. }
  461. },
  462. error: function () {
  463. layer.alert('网络错误,请重试');
  464. },
  465. });
  466. });
  467. // 查看明文
  468. $("tbody").on("click",".detail-view td p a,.showMobile",function () {
  469. var id = $(this).data('id');
  470. var file = $(this).data('field');
  471. var _that=$(this);
  472. if(file=='account_qq' || file=='account_wechat' || file=='mobile'){
  473. $.ajax({
  474. type: "post",
  475. url: "{:url('viewlinkinfo')}",
  476. /*async: false,*/
  477. data: {'id':id,'file':file},
  478. dataType: 'json',
  479. /*timeout: 5000,*/
  480. success: function (data) {
  481. if (data['code']) {
  482. _that.text(data['data']);
  483. } else {
  484. layer.alert(data['msg']);
  485. }
  486. },
  487. error: function () {
  488. layer.alert('网络错误,请重试');
  489. },
  490. });
  491. }
  492. else{
  493. $.ajax({
  494. type: "post",
  495. url: "{:url('viewpayinfo')}",
  496. /*async: false,*/
  497. data: {'id':id,'file':file},
  498. dataType: 'json',
  499. /*timeout: 5000,*/
  500. success: function (data) {
  501. if (data['code']) {
  502. _that.text(data['data']);
  503. } else {
  504. layer.alert(data['msg']);
  505. }
  506. },
  507. error: function () {
  508. layer.alert('网络错误,请重试');
  509. },
  510. });
  511. }
  512. });
  513. $(document).on('click', '.toGameEnter', function(event) {
  514. var channelid = $(this).attr('data-id');
  515. var cid = $(this).attr('cid');
  516. var apply_status = $(this).attr('apply_status');
  517. layer.open({
  518. name:channelid,
  519. type: 2,
  520. area: ['50%', '95%'],
  521. shadeClose: true,
  522. fixed: false, //不固定
  523. maxmin: true,
  524. content: 'examine?channelid='+channelid+'&apply_status='+apply_status+'&cid='+cid
  525. });
  526. });
  527. $(document).on('click', '.toSetDeposit', function(event) {
  528. var channelid = $(this).attr('data-id');
  529. layer.open({
  530. name:channelid,
  531. type: 2,
  532. area: ['30%', '50%'],
  533. shadeClose: true,
  534. fixed: false, //不固定
  535. maxmin: true,
  536. content: 'deposit?channelid='+channelid
  537. });
  538. });
  539. $(document).on('click', '.toLogCont', function(event) {
  540. var id = $(this).attr('data-id');
  541. var cid = $(this).attr('cid');
  542. var apply_status = $(this).attr('apply_status');
  543. layer.open({
  544. name:id,
  545. type: 2,
  546. area: ['60%', '90%'],
  547. shadeClose: true,
  548. fixed: false, //不固定
  549. maxmin: true,
  550. content: 'examine?channelid='+id+'&&apply_status='+apply_status+'&log=1'+'&cid='+cid
  551. });
  552. });
  553. $(document).on('click', '.toCheck', function(event) {
  554. var id = $(this).attr('data-id');
  555. layer.open({
  556. name:id,
  557. type: 2,
  558. area: ['60%', '90%'],
  559. shadeClose: true,
  560. fixed: false, //不固定
  561. maxmin: true,
  562. content: 'checkInfo?channelid='+id
  563. });
  564. });
  565. $(document).on('click', '.checklog', function(event) {
  566. var channelid = $(this).attr('channelid');
  567. $.ajax({
  568. type: "POST",
  569. url: "{:url('checklog')}",
  570. data: {"channelid":channelid},
  571. dataType: "json",
  572. success: function(res) {
  573. var list ='';
  574. if (res.code == 1) {
  575. console.log(res.data)
  576. $.each(res.data, function(index, val) {
  577. list += '<tr><td>'+val.id+'</td><td>'+val.apply_time+'</td><td><a href="#" class="toLogCont" apply_status='+val.apply_status+' data-id="'+val.channel_id+'" cid="'+val.id+'">查看内容</a></td><td>'+val.status+'</td><td>'+val.check_time+'</td><td>'+val.check_admin_name+'</td></tr>'
  578. });
  579. }else{
  580. list = '<tr><td colspan=6>暂无记录</td></tr>';
  581. }
  582. layer.open({
  583. title: '记录',
  584. type: 1,
  585. skin: 'layui-layer-rim', //加上边框
  586. area: ['840px', '480px'], //宽高
  587. content: '<table class="layui-table"><thead><tr><th>ID</th><th>创建时间</th><th>操作</th><th>状态</th><th>审核时间</th><th>审核人员</th></tr></thead><tbody>'+list+'</tbody></table>'
  588. });
  589. },
  590. });
  591. });
  592. </script>
  593. {/block}