2e86acd6 by 焦小希

在线预约数据渲染

1 parent e9f6566e
...@@ -382,6 +382,7 @@ ...@@ -382,6 +382,7 @@
382 } */ 382 } */
383 .isAppoint { 383 .isAppoint {
384 cursor:not-allowed!important; 384 cursor:not-allowed!important;
385 background-color: #ccc;
385 } 386 }
386 .business_item ul li h3 { 387 .business_item ul li h3 {
387 margin-bottom: 5px; 388 margin-bottom: 5px;
......
1 <!DOCTYPE html 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head> 3 <head>
5 <style> 4 <style></style>
6 </style>
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8 <title>我的预约-预约时间</title> 6 <title>我的预约-预约时间</title>
9 <script type="text/javascript" src="../staticJs/head.js"></script> 7 <script type="text/javascript" src="../staticJs/head.js"></script>
10 <link rel="stylesheet" href="../staticCss/swiper-bundle.min.css"> 8 <link rel="stylesheet" href="../staticCss/swiper-bundle.min.css" />
11 <link rel="stylesheet" type="text/css" href="../staticCss/progressBar.css"> 9 <link
12 <link rel="stylesheet" type="text/css" href="../staticCss/yysj.css"> 10 rel="stylesheet"
13 <link rel="stylesheet" type="text/css" href="../staticCss/layuiDialog.css"> 11 type="text/css"
14 </head> 12 href="../staticCss/progressBar.css"
13 />
14 <link rel="stylesheet" type="text/css" href="../staticCss/yysj.css" />
15 <link
16 rel="stylesheet"
17 type="text/css"
18 href="../staticCss/layuiDialog.css"
19 />
20 </head>
15 21
16 22 <body>
17 <body>
18 <div class="yysj_main"> 23 <div class="yysj_main">
19 <div class="navigation_crumbs"> 24 <div class="navigation_crumbs">
20 <div class="contentBox"> 25 <div class="contentBox">
...@@ -31,36 +36,28 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD ...@@ -31,36 +36,28 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
31 <ul class="app_progress"> 36 <ul class="app_progress">
32 <li> 37 <li>
33 <p class="active"></p> 38 <p class="active"></p>
34 <h5> 39 <h5>预约须知</h5>
35 预约须知
36 </h5>
37 </li> 40 </li>
38 <div class="layui-progress"> 41 <div class="layui-progress">
39 <div class="layui-progress-bar" lay-percent="100%"></div> 42 <div class="layui-progress-bar" lay-percent="100%"></div>
40 </div> 43 </div>
41 <li> 44 <li>
42 <p class="active"></p> 45 <p class="active"></p>
43 <h5> 46 <h5>选择区域</h5>
44 选择区域
45 </h5>
46 </li> 47 </li>
47 <div class="layui-progress"> 48 <div class="layui-progress">
48 <div class="layui-progress-bar" lay-percent="100%"></div> 49 <div class="layui-progress-bar" lay-percent="100%"></div>
49 </div> 50 </div>
50 <li> 51 <li>
51 <p class="activeing"></p> 52 <p class="activeing"></p>
52 <h5 class="activeingtext"> 53 <h5 class="activeingtext">预约时间</h5>
53 预约时间
54 </h5>
55 </li> 54 </li>
56 <div class="layui-progress"> 55 <div class="layui-progress">
57 <div class="layui-progress-bar" lay-percent="50%"></div> 56 <div class="layui-progress-bar" lay-percent="50%"></div>
58 </div> 57 </div>
59 <li> 58 <li>
60 <p></p> 59 <p></p>
61 <h5> 60 <h5>预约结果</h5>
62 预约结果
63 </h5>
64 </li> 61 </li>
65 </ul> 62 </ul>
66 </div> 63 </div>
...@@ -77,14 +74,11 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD ...@@ -77,14 +74,11 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
77 <div class="site-title"> 74 <div class="site-title">
78 <fieldset> 75 <fieldset>
79 <legend> 76 <legend>
80 <a href="" name="fieldset"> 77 <a href="" name="fieldset"> 业务预约 </a>
81 业务预约
82 </a>
83 </legend> 78 </legend>
84 </fieldset> 79 </fieldset>
85 </div> 80 </div>
86 <div id="business_list"> 81 <div id="business_list"></div>
87 </div>
88 </div> 82 </div>
89 83
90 <div class="next_button"> 84 <div class="next_button">
...@@ -92,15 +86,12 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD ...@@ -92,15 +86,12 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
92 <!-- <a href="./yyxz.html" title="上一步"> 86 <!-- <a href="./yyxz.html" title="上一步">
93 上一步 87 上一步
94 </a> --> 88 </a> -->
95 <a href="./xzqy.html" title="上一步"> 89 <a href="./xzqy.html" title="上一步"> 上一步 </a>
96 上一步
97 </a>
98 </button> 90 </button>
99 </div> 91 </div>
100 </div> 92 </div>
101 </div> 93 </div>
102 </body> 94 </body>
103
104 </html> 95 </html>
105 <script type="text/javascript" src="../staticJs/common.js"></script> 96 <script type="text/javascript" src="../staticJs/common.js"></script>
106 <script type="text/javascript" src="../staticJs/down.js"></script> 97 <script type="text/javascript" src="../staticJs/down.js"></script>
...@@ -108,8 +99,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD ...@@ -108,8 +99,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
108 <script type="text/javascript" src="../staticJs/yysj.js"></script> 99 <script type="text/javascript" src="../staticJs/yysj.js"></script>
109 100
110 <script id="date" type="text/html"> 101 <script id="date" type="text/html">
111 {{# layui.each(d.dateList, function(index, item){ }} 102 {{# layui.each(d.dateList, function(index, item){ }} {{# if(item.isSelect){ }}
112 {{# if(item.isSelect){ }}
113 <ul class="swiper-slide layui-bg-gray active1"> 103 <ul class="swiper-slide layui-bg-gray active1">
114 <li>{{item.week}}</li> 104 <li>{{item.week}}</li>
115 <li>{{item.jyjh}}</li> 105 <li>{{item.jyjh}}</li>
...@@ -120,8 +110,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD ...@@ -120,8 +110,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
120 <li>{{item.week}}</li> 110 <li>{{item.week}}</li>
121 <li>{{item.jyjh}}</li> 111 <li>{{item.jyjh}}</li>
122 </ul> 112 </ul>
123 {{# } }} 113 {{# } }} {{# }); }}
124 {{# }); }}
125 </script> 114 </script>
126 115
127 <script id="business_item" type="text/html"> 116 <script id="business_item" type="text/html">
...@@ -133,14 +122,53 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD ...@@ -133,14 +122,53 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
133 <span>-</span> 122 <span>-</span>
134 <span>{{item.endTime}}</span> 123 <span>{{item.endTime}}</span>
135 </div> 124 </div>
136 <ul > 125 <ul>
137 {{# layui.each(item.orgBusinessList, function(index1, item1){ }} 126 {{# layui.each(item.orgBusinessList, function(index1, item1){ }}
138 <li class="item_appoint" data-id='{{item1.periodRulesId}}'> 127 {{# if(!item.choosePeriodRulesId && item1.residueNumber==0){ }}
139 <h3> 128 <li class="isAppoint" data-id="{{item1.periodRulesId}}">
140 {{item1.shortName}} 129 <h3>{{item1.shortName}}</h3>
141 </h3>
142 <p style="color:#5FB878">({{item1.residueNumber}})</p> 130 <p style="color:#5FB878">({{item1.residueNumber}})</p>
143 </li> 131 </li>
132 {{# } }}
133
134 {{# if(!item.choosePeriodRulesId && item1.residueNumber!=0){ }}
135 <li class="item_appoint" data-id="{{item1.periodRulesId}}">
136 <h3>{{item1.shortName}}</h3>
137 <p style="color:#5FB878">({{item1.residueNumber}})</p>
138 </li>
139 {{# } }}
140 <!-- 表示预约的是该时间段 且是最后一个号 -->
141 {{# if(item.choosePeriodRulesId && item1.periodRulesId ==item.choosePeriodRulesId && item1.residueNumber==0){ }}
142 <li class="isAppoint" data-id="{{item1.periodRulesId}}">
143 <h3>{{item1.shortName}}</h3>
144 <input type="button" value='取消预约'>
145 <input type="button" value='查看详情'>
146 <p style="color:#5FB878">({{item1.residueNumber}})</p>
147 </li>
148 {{# } }}
149 <!-- 表示预约的是该时间段,且该时间段的号不为0 -->
150 {{# if(item.choosePeriodRulesId && item1.periodRulesId ==item.choosePeriodRulesId && item1.residueNumber!=0){ }}
151 <li class="isAppoint" data-id="{{item1.periodRulesId}}">
152 <h3>{{item1.shortName}}</h3>
153 <input type="button" value='取消预约'>
154 <input type="button" value='查看详情'>
155 <p style="color:#5FB878">({{item1.residueNumber}})</p>
156 </li>
157 {{# } }}
158 <!-- 表示预约的不是该时间段且剩余号为0 -->
159 {{# if(item.choosePeriodRulesId && item1.periodRulesId !=item.choosePeriodRulesId && item1.residueNumber==0){ }}
160 <li class="isAppoint" data-id="{{item1.periodRulesId}}">
161 <h3>{{item1.shortName}}</h3>
162 <p style="color:#5FB878">({{item1.residueNumber}})</p>
163 </li>
164 {{# } }}
165 <!-- 表示预约的不是该时间段且剩余数不为0-->
166 {{# if(item.choosePeriodRulesId && item1.periodRulesId !=item.choosePeriodRulesId && item1.residueNumbe!=0){ }}
167 <li class="isAppoint" data-id="{{item1.periodRulesId}}">
168 <h3>{{item1.shortName}}</h3>
169 <p style="color:#5FB878">({{item1.residueNumber}})</p>
170 </li>
171 {{# } }}
144 {{# }) }} 172 {{# }) }}
145 </ul> 173 </ul>
146 </div> 174 </div>
......