789d40ce by 任超

feat:预约须知

1 parent b04116e5
......@@ -12,6 +12,7 @@
line-height: 25px;
background: #FAFAFA;
border: 1px solid #E6E6E6;
box-sizing: border-box;
}
.navigation_crumbs .layui-breadcrumb a:hover {
color: #f46143!important;
......
......@@ -9,7 +9,6 @@
height: 100px;
padding: 20px;
box-sizing: border-box;
background-color: #7ed3df;
}
.personal_information img {
width: 60px;
......@@ -56,9 +55,7 @@
height: 100%;
border: 1px solid #E6E6E6;
box-sizing: border-box;
}
.business_module li:nth-child(5n+5) a{
padding-right: 0;
padding-left: 20px;
}
.business_module li a:hover {
color: #f46143;
......
......@@ -63,7 +63,7 @@
</div>
<!-- -----------------------------------个人中心模块---------------------------------------------- -->
<div class="personal_center contentBox">
<div class="personal_information">
<div class="personal_information layui-bg-gray">
<img src="../../staticImages/logo-realestate.png" alt="个人中心">
<ul>
<li>
......@@ -97,7 +97,7 @@
</a>
</li>
<li>
<a href="">
<a href="../wdyy/index.html">
我的预约
</a>
</li>
......
.navigation_crumbs {
height: 45px;
}
.perinfo {
height: 100px;
padding: 20px;
box-sizing: border-box;
}
.perinfo_left{
float: left;
}
.perinfo_left img {
width: 60px;
height: 60px;
float: left;
}
.perinfo_left ul {
float: left;
margin-left: 20px;
margin-top: 5px;
}
.perinfo_left ul li {
margin-bottom: 10px;
font-size: 16px;
}
.perinfo_left ul li p{
display: inline-block;
}
.my_appointment {
color: #5FB878;
border: 2px solid#5FB878;
font-size: 20px;
display: inline-block;
padding: 5px 10px;
border-radius: 5px;
margin-left: 20%;
margin-top: 10px;
}
.my_appointment:hover {
color: #f46143;
border-color: #f46143;
}
.time {
float: right;
margin-top: 20px;
}
/* ----------------预约列表-------------------- */
.appointment_list {
}
\ No newline at end of file
.perinfo_left
\ No newline at end of file
......
......@@ -4,25 +4,25 @@
<head>
<title>个人中心</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="alternate icon" type="image/png" href="../../staticImages/logo-realestate.png">
<link rel='icon' href='favicon.ico' type='image/x-ico'/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<link rel="stylesheet" type="text/css" href="../../staticCss/common.css"/>
<link rel="stylesheet" type="text/css" href="../../staticLib/layui/css/layui.css"/>
<link rel='icon' href='favicon.ico' type='image/x-ico' />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" type="text/css" href="../../staticCss/common.css" />
<link rel="stylesheet" type="text/css" href="../../staticLib/layui/css/layui.css" />
<link rel="stylesheet" type="text/css" href="./css/index.css">
</head>
<body>
<div class="main">
<div class="main">
<div class="subject top-logo">
<div class="top_logo_content">
<h1><a href="index.html"><img src="./../../staticImages/logo.jpg" alt="西安市不动产登记平台"/></a></h1>
<h1><a href="index.html"><img src="./../../staticImages/logo.jpg" alt="西安市不动产登记平台" /></a></h1>
<div class="top_logo_search">
<input type="text" name="title" required lay-verify="required" placeholder="请输入关键字搜索"
autocomplete="off" class="layui-input">
......@@ -57,12 +57,13 @@
<div class="contentBox">
<span class="layui-breadcrumb">
<a href="../../staticIndex.html">首页</a>
<a><cite>个人中心</cite></a>
<a href="../grzx/index.html">个人中心</a>
<a><cite>我的预约</cite></a>
</span>
</div>
</div>
<!-- -----------------个人信息------------------------ -->
<div class="perinfo contentBox">
<div class="perinfo contentBox layui-bg-gray">
<div class="perinfo_left">
<img src="../../staticImages/logo-realestate.png" alt="">
<ul>
......@@ -76,11 +77,15 @@
</li>
</ul>
</div>
<a href="">在线预约</a>
<a class="my_appointment" href="../yyxz/index.html">在线预约</a>
<div class="time">
2088-20-88
登录时间:2088-20-88
</div>
</div>
<!-- -------------预约列表--------------- -->
<div class="appointment_list contentBox">
<table class="layui-hide" id="test" lay-filter="test"></table>
</div>
<div class="footer">
<div class="system_service">
<ul class="">
......@@ -149,7 +154,7 @@
</ol>
</div>
</div>
</div>
</div>
</body>
</html>
......@@ -162,6 +167,8 @@
<script type="text/javascript" src="../../staticLib/raty/jquery.raty.js"></script>
<script type="text/javascript" src="../../staticJs/main.min.js?t=1"></script>
<script type="text/javascript" src="../../staticLib/layui/layui.js"></script>
<!-- ----------------------------静态文件-------------------------------------- -->
<script type="text/javascript" src="./lib/index.json"></script>
<script type="text/javascript">
layui.use('element', function () {
let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
......@@ -171,4 +178,51 @@
layer.msg(elem.text());
});
});
layui.use('table', function () {
var table = layui.table;
table.render({
elem: '#test'
, url: './lib/index.json'
, cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 新增
, cols: [[
{ field: 'zizeng', title: '序号', templet: '#zizeng', align: 'center' }
, { field: 'username', title: '预约号', align: 'center' } //width 支持:数字、百分比和不填写。你还可以通过 minWidth 参数局部定义当前单元格的最小宽度,layui 2.2.1 新增
, { field: 'sex', title: ' 预约人', align: 'center' }
, { field: 'city', title: '办事大厅', align: 'center' }
, { field: 'sign', title: ' 预约业务', align: 'center' }
, { field: 'classify', title: '预约时间', align: 'center' }
, { field: 'state', title: '状态', align: 'center', templet: '#state' }
, { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 150, align: 'center' }
]]
, parseData: function (res) { //将原始数据解析成 table 组件所规定的数据
return {
"code": res.code, //解析接口状态
"data": res.data //解析数据列表
};
}
});
//监听行工具事件
table.on('tool(test)', function (obj) {
var data = obj.data;
console.log(data)
if (obj.event === 'del') {
} else if (obj.event === 'edit') {
}
});
});
</script>
<script type="text/html" id="zizeng">
{{d.LAY_TABLE_INDEX+1}}
</script>
<script type="text/html" id="barDemo">
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<script type="text/html" id="state">
{{# if(d.state=='1'){ }}
{{# } else{}}
{{# } }}
</script>
\ No newline at end of file
......
{
"code": 0,
"msg": "",
"count": 1000,
"data": [
{
"username": "user-0",
"sex": "女",
"city": "城市-0",
"sign": "签名-0",
"experience": 255,
"logins": 24,
"wealth": 82830700,
"classify": "作家",
"score": 57,
"state": 1
},
{
"username": "user-1",
"sex": "男",
"city": "城市-1",
"sign": "签名-1",
"experience": 884,
"logins": 58,
"wealth": 64928690,
"classify": "词人",
"score": 27,
"state": 1
},
{
"username": "user-2",
"sex": "女",
"city": "城市-2",
"sign": "签名-2",
"experience": 650,
"logins": 77,
"wealth": 6298078,
"classify": "酱油",
"score": 31,
"state": 0
}
]
}
\ No newline at end of file
.navigation_crumbs {
height: 45px;
}
.appointment_notice {
margin-top: 30px;
margin-bottom: 30px;
}
.app_progress li {
padding: 0 30px;
line-height: 40px;
background: #eee;
display: inline-block;
color: #fff;
position: relative;
color: black;
}
.app_progress li:after{
content: '';
display: block;
border-top: 20px solid #fff;
border-bottom: 20px solid #fff;
border-left: 12px solid #eee;
position: absolute;
right:0;
top: 0;
}
.active {
background-color: #1E9FFF!important;
color: #fff!important;
}
.app_progress li.active:after {
border-left-color: #1E9FFF;
}
.line {
width: 80px;
height: 0;
display: inline-block;
border-bottom: 2px dotted#dddddd;
margin-bottom: 4px;
}
.clause p {
line-height: 26px;
}
.clause .date {
overflow: hidden;
margin: 20px 0;
}
.clause .date ul {
width: 200px;
text-align: center;
float: right;
}
.confim_input {
text-align: center;
}
.next_button {
text-align: center;
margin: 20px auto;
}
\ No newline at end of file