<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="renderer" content="webkit">
    <!-- 移动设备 viewport -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <jsp:include page="../../common.jsp"/>
    <script type="text/javascript">
        require("cash/cashList.js");
    </script>

    <style>
        .layui-table th {
            text-align: center;
        }

        .layui-dropdown {
            min-width: 0px !important;
        }

        /*.layui-dropdown-item*/
        .layui-dropdown-item .layui-menu {background-color: #fff; border: none;}
        .layui-dropdown-item .layui-menu li{
            color: #fff;
            padding: 0;
        }

        .layui-menu {
            margin: 5px;
        }

        .layui-menu li, .layui-menu-body-title a {
            padding: 0;
        }

        .layui-menu-body-title a {
            display: block;
            margin: 0 !important;
            color: rgba(255,255,255,.8);
        }
    </style>
</head>
<body>
<form class="layui-form" action="" style="margin-top: 35px; width: 80%;">
    <input name="id" value="${entity.id}" class="layui-hide"/>
    <div class="layui-form-item">
        <label class="layui-form-label">真实名称</label>
        <div class="layui-input-block">
            <input type="text" name="accountName" value="${entity.accountName}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">支付宝账号</label>
        <div class="layui-input-block">
            <input type="text" name="accountNo" value="${entity.accountNo}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input type="text" name="remark" value="${entity.remark}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="auditPassForm">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>

<script>
    layui.use(['form'], function() {
        var form = layui.form;

        form.on("submit(auditPassForm)", function(data) {
            var index = layer.load(1, {shade: [0.1, '#000']});
            var formData = data.field;
            $.ajax({
                url: ctx + "/cash/realAuditPass"
                , type: 'post'
                , data: formData
                , success: function(d) {
                    layer.close(index);
                    layer.msg(d.message);
                    if (d.code == 200) {
                        parent.layer.closeAll()
                        parent.queryCash2()
                    }
                }
            })

            return false;
        });
    });
</script>
</body>
</html>