<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<script type="text/javascript">
     //渲染日历控件
	layui.use(['layer', 'form','laydate'], function() {
		var layer = layui.layer,
			laydate = layui.laydate,
			form = layui.form;
		    form.render();
		    laydate.render({
		    	elem: '#createDtId',
		    	value:$("#createDtId").val()
		    	});
	});
     
     

	  layui.use('upload', function(){
		  var upload = layui.upload;
		  
		  //执行实例
		  var uploadInst = upload.render({
		    elem: '#test1' //绑定元素
		    ,url: '/upload/uploadFile' //上传接口
		    ,done: function(res){
		      //上传完毕回调
		       
		       console.log(res.fileName);		      
		       console.log(res.url);		       	           	                  
		       console.log(res.result); 
		       $('#imgs').val(res.url);
		       $('#demo1').attr('src', res.url); //图片链接（base64）
		    }
		    ,error: function(){
		      //请求异常回调
		    }
		  });
		});
	var upload = layui.upload; //得到 upload 对象
	 
	//创建一个上传组件
	upload.render({
	  elem: '#id'
	  ,url: 'test1'
	  ,done: function(res, index, upload){ //上传后的回调
		 
	  } 
	  ,accept: 'file' //允许上传的文件类型
	  ,size: 20000 //最大允许上传的文件大小
	  //,……
	})
	 
     
 </script>
<form class="layui-form whitebg pb10 pt10" action="" id="data_form">  
	<div class="tab-pane active">     
		<div class="panel-body">
			<div class="wrapper wrapper-content">
				<div class="panel-form animated fadeInRight wp60 fc">
					<div class="layui-form-item dn	has-error" >   
						<label class="layui-form-label">id</label>  
						<div class="layui-input-block">
							<input type="text" name="id" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${level.id }" >
						</div>  
					</div>
					<%-- <div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">等级</label>  
						<div class="layui-input-block">
							<input type="text" name="level" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${level.level }" >
						</div>  
					</div> --%>
					<div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">交易额</label>  
						<div class="layui-input-block">
							<input type="text" id="tradeMoney" name="tradeMoney" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${level.tradeMoney }" >
						</div>  
					</div>
					<div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">实名认证数</label>  
						<div class="layui-input-block">
							<input type="text" id="authCount" name="authCount" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${level.authCount }" >
						</div>  
					</div>
					<%-- <div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">等级名称</label>  
						<div class="layui-input-block">
							<input type="text" name="levelName" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${level.levelName }" >
						</div>  
					</div> --%>
					<%-- <div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">等级对应费率</label>  
						<div class="layui-input-block">
							<input type="text" id="rate" name="rate" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${rate }" >
						</div>  
					</div> --%>
					
				
				</div>
			</div>
		</div>  
	</div>
</form>

