<extend name="Public/cp_base"/> <block name="body"> <link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" /> <link rel="stylesheet" href="__CSS__/pro_promote.css" type="text/css" /> <link rel="stylesheet" href="__CSS__/black.css" type="text/css" /> <script src="__STATIC__/jquery.form.js"></script> <script src="__STATIC__/layer/layer.js"></script> <script type="text/javascript" src="__JS__/bootstrap.min.js"></script> <script type="text/javascript" src="__JS__/select2.min.js"></script> <style> .select2-container--default .select2-selection--single { color: #000; resize: none; border-width: 1px; border-style: solid; border-color: #a7b5bc #ced9df #ced9df #a7b5bc; box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px; height:28px;border-radius:3px;font-size:12px; } .select2-container--default .select2-selection--single .select2-selection__rendered { line-height:35px; line-height:28px; } .select2-container--default .select2-selection--single .select2-selection__arrow { height:26px; } .select2-container--default .select2-search--dropdown .select2-search__field { height:26px;line-height:26px;font-size:12px; } .select2-results__option[aria-selected] {font-size:12px;} .layui-layer-dialog .layui-layer-content{color:red} .layui-layer-content{ padding-top: 15px; } .layui-layer-title{ text-align: center; } </style> <div class="cf main-place top_nav_list navtab_list"> <h3 class="page_title">万盟天下对账单管理</h3> </div> <!-- 数据列表 --> <div class="data_list"> <div class=""> <table> <!-- 表头 --> <thead> <tr> <th>结算时间</th> <th>结算周期</th> <th>结算类型</th> <th>结算金额</th> <th>结算流水</th> <th>确认状态</th> <th>操作</th> </tr> </thead> <!-- 列表 --> <tbody> <if condition = "empty($list_data)"> <tr> <td colspan="16" class="text-center">aOh! 暂时还没有内容!</td> </tr> </if> <notemtpy name = "list_data"> <volist name="list_data" id="data"> <tr> <td>{$data.valid}</td> <td>{$data.withdraw_type_1}</td> <td>{$data.withdraw_type_2}</td> <td>{$data.statement_money}</td> <td>{$data.platform_amount}</td> <td>{$data.verify_status_str}</td> <td> <a data-id="{$data.id}" class="view">查看</a> <a data-id="{$data.id}" class="export">导出</a> <if condition = "$data['verify_status'] eq 2"> <a data-id="{$data.id}" class="confirm">确认结算单</a> </if> </td> </tr> </volist> </notemtpy> </tbody> </table> </div> </div> <!-- <div class="page"> {$_page|default=''} </div> --> </block> <block name="script"> <script> <volist name=":I('get.')" id="vo"> Think.setValue('{$key}',"{$vo}"); </volist> $(".select_gallery").select2(); </script> <script type="text/javascript"> //导航高亮 highlight_subnav('{:U('Promote/belong')}'); $(".view").click(function () { var id = $(this).data("id"); var url = "{:U('view')}"+"&id="+id layer.open({ type: 2, title: "海南万盟天下科技有限公司对账单详情", shadeClose: true, shade: 0.8, area: ['70%', '80%'], content: url }); }); $(".export").click(function () { var id = $(this).data("id"); var url = "{:U('export')}"+"&id="+id window.location.href = url; }); $(".confirm").click(function(){ var id = $(this).data("id"); var opurl = "{:U('confirm')}"; $.ajax({ type: "POST", url: opurl, dataType: 'json', async: false, data: {id:id}, success:function(data){ if(data.status==1){ layer.msg("<font style='color:white'>" + data.info + "</font>"); setTimeout(function(){ window.location.reload(); },1500); } } }); }); $(function(){ }) </script> </block>