@extends('layouts.advert.member')
@section('title','密码设置')

@section('content')
    <div>
        <div class="fz18 bb-e0e0e0 pb10">支付密码</div>
        <form class="layui-form pt20" action="/advert/member/set/pay/pass" method="post">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
            <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;"><span class="span-dot">*</span>支付密码</label>
                <div class="layui-input-inline">
                    <input type="password" name="pass" lay-verify="required" id="pass" placeholder="请输入支付密码"
                            autocomplete="off" class="layui-input"  minlength="6"   maxlength="6" onkeyup = "value=value.replace(/[^\d]/g,'')">
                </div>
                <div class="layui-form-mid layui-word-aux">请填写6位密码,且只能数字</div>
            </div>
            <div class="layui-form-item pt20">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                </div>
            </div>
        </form>
    </div>
@endsection
@section('script')
    <script>
        layui.use(['form','table'], function () {
            var form = layui.form;
            //监听提交
            form.on('submit(demo1)', function(data){
              /*  if(data.field.pass.length <6)
                {
                    layer.msg('请填写6位数密码');
                    return false;
                }*/
                return true;
            });
        });
    </script>
@endsection

