代码拉取完成,页面将自动刷新
同步操作将从 大牛学院/X-admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
X-admin v1.0
</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="./css/x-admin.css" media="all">
</head>
<body>
<div class="x-body">
<blockquote class="layui-elem-quote">
<img src="./images/logo.png" class="layui-circle" style="width:50px;float:left">
<dl style="margin-left:80px; color:#019688">
<dt><span >张三</span> <span >余额:40</span></dt>
<dd style="margin-left:0">这家伙很懒,什么也没有留下</dd>
</dl>
</blockquote>
<div class="pd-20">
<table class="layui-table" lay-skin="line">
<tbody>
<tr>
<th width="80">性别:</th>
<td>男</td>
</tr>
<tr>
<th>手机:</th>
<td>13000000000</td>
</tr>
<tr>
<th>邮箱:</th>
<td>admin@mail.com</td>
</tr>
<tr>
<th>地址:</th>
<td>北京市 海淀区</td>
</tr>
<tr>
<th>注册时间:</th>
<td>2017-01-01</td>
</tr>
<tr>
<th>积分:</th>
<td>330</td>
</tr>
</tbody>
</table>
</div>
</div>
<script src="./lib/layui/layui.js" charset="utf-8">
</script>
<script src="./js/x-layui.js" charset="utf-8">
</script>
<script>
layui.use(['form','layer'], function(){
$ = layui.jquery;
var form = layui.form()
,layer = layui.layer;
//自定义验证规则
form.verify({
nikename: function(value){
if(value.length < 5){
return '昵称至少得5个字符啊';
}
}
,pass: [/(.+){6,12}$/, '密码必须6到12位']
,repass: function(value){
if($('#L_pass').val()!=$('#L_repass').val()){
return '两次密码不一致';
}
}
});
console.log(parent);
//监听提交
form.on('submit(add)', function(data){
console.log(data);
//发异步,把数据提交给php
layer.alert("增加成功", {icon: 6},function () {
// 获得frame索引
var index = parent.layer.getFrameIndex(window.name);
//关闭当前frame
parent.layer.close(index);
});
return false;
});
});
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。