@page
@model Waste.Web.Entry.Pages.User.ChangePwdModel
@{
    ViewData["Title"] = "修改密码";
}
<div class="layui-card">
    <div class="layui-card-body">
        <div class="form-horizontal layui-form">
            <div class="layui-form-item row">
                <label class="layui-form-label col-md-2" for="Name">旧密码</label>
                <div class="col-md-4">
                    <input type="password" class="layui-input" id="OldPwd" name="OldPwd" placeholder="请输入旧密码" lay-verify="required" />
                </div>

            </div>
            <div class="layui-form-item row">
                <label class="layui-form-label col-md-2" for="Phone">新密码</label>
                <div class="col-md-4">
                    <input type="password" class="layui-input" id="NewPwd" name="NewPwd" placeholder="请输入新密码" lay-verify="required" />
                </div>
            </div>
            <div class="layui-form-item row">
                <label class="layui-form-label col-md-2" for="Phone">确认密码</label>
                <div class="col-md-4">
                    <input type="password" class="layui-input" id="ReNewPwd" name="ReNewPwd" placeholder="请再次输入新密码" lay-verify="required" />
                </div>
            </div>
            <div class="text-center col-md-7">
                <button class="btn btn-primary btn-lg" lay-submit lay-filter="submit" type="button">提交</button>
            </div>
        </div>
    </div>
</div>
@section Scripts
{
    <script type="text/javascript">
        layui.use(['form', 'common'], function () {
            var form = layui.form,
                common = layui.common;
            form.on("submit(submit)", function (data) {
                common.ajax({
                    url: "/api/business/changepwd",
                    type: "post",
                    data: data.field
                });
            })
        });
    </script>
} 