feat:预约时间页面的完成
Showing
3 changed files
with
90 additions
and
10 deletions
... | @@ -54,12 +54,11 @@ $(function () { | ... | @@ -54,12 +54,11 @@ $(function () { |
54 | }; | 54 | }; |
55 | 55 | ||
56 | // 获取当前选中的日期 | 56 | // 获取当前选中的日期 |
57 | // for (var i = 0; i < data.dateList.length; i++) { | 57 | for (var i = 0; i < data.dateList.length; i++) { |
58 | // if (data.dateList[i].isSelect) { | 58 | if (data.dateList[i].isSelect) { |
59 | // Date = data.dateList[i].date | 59 | Date = data.dateList[i].date |
60 | // break | 60 | } |
61 | // } | 61 | }; |
62 | // }; | ||
63 | 62 | ||
64 | layui.use('element', function () { | 63 | layui.use('element', function () { |
65 | let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 | 64 | let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 |
... | @@ -76,7 +75,7 @@ $(function () { | ... | @@ -76,7 +75,7 @@ $(function () { |
76 | $('.business_list li').click(function () { | 75 | $('.business_list li').click(function () { |
77 | // 获取元素 | 76 | // 获取元素 |
78 | appuintText = $(this).find('a').text() | 77 | appuintText = $(this).find('a').text() |
79 | 78 | ||
80 | 79 | ||
81 | $('.layui_anim_list').removeClass('disnone') | 80 | $('.layui_anim_list').removeClass('disnone') |
82 | $('.layui_anim_content').show() | 81 | $('.layui_anim_content').show() |
... | @@ -176,9 +175,52 @@ $(function () { | ... | @@ -176,9 +175,52 @@ $(function () { |
176 | $('.layui_anim_list').addClass('disnone') | 175 | $('.layui_anim_list').addClass('disnone') |
177 | modleClose() | 176 | modleClose() |
178 | }); | 177 | }); |
178 | |||
179 | // 下一步确认 | ||
180 | $('.nextButton').click(function () { | ||
181 | if ($('.business_list li').has('.reserved').length) { | ||
182 | layui.use('layer', function () { | ||
183 | layer.open({ | ||
184 | type: 1, | ||
185 | title: '请确认以下信息', | ||
186 | shadeClose: true, | ||
187 | area: ['500px', '320px'], | ||
188 | scrollbar: false, | ||
189 | skin: 'confimInfo', | ||
190 | content: '<div class="infoContent">' | ||
191 | + '<ul>' | ||
192 | + '<li><span>姓名</span>:任超</li>' | ||
193 | + '<li><span>身份证号</span>:610124193335522</li>' | ||
194 | + '<li><span>联系电话</span>:18740677386</li>' | ||
195 | + '</ul>' | ||
196 | + '<div class="listItem"><h3>大厅名称:</h3>碑林区不动产办事中心</div>' | ||
197 | + '<div class="listItem"><h3>预约业务:</h3>' + appuintText + '</div>' | ||
198 | + '<div class="listItem"><h3>预约时间:</h3>' + Date +' '+bustime+'</div>' | ||
199 | + '<div class="confimButton"><button type="button" class="layui-btn cancel layui-btn-primary">取消</button><button type="button" class="layui-btn confim layui-btn-normal">确定</button></div>' | ||
200 | + '</div>' | ||
201 | }); | ||
202 | }) | ||
203 | } else { | ||
204 | layui.use('layer', function () { | ||
205 | layer.alert('请先选择相应业务', { | ||
206 | skin: 'layui-layer-molv' //样式类名 | ||
207 | , closeBtn: 0 | ||
208 | }, function () { | ||
209 | layer.closeAll() | ||
210 | }); | ||
211 | }) | ||
212 | } | ||
213 | |||
214 | }) | ||
215 | $(document).on('click', '.cancel', function () { | ||
216 | layer.closeAll() | ||
217 | }) | ||
218 | $(document).on('click', '.confim', function () { | ||
219 | window.location.href = "../yyjg/index.html" | ||
220 | }) | ||
179 | }); | 221 | }); |
180 | function modleClose() { | 222 | function modleClose() { |
181 | $('.layui_anim_content').hide() | 223 | $('.layui_anim_content').hide() |
182 | $('.layui-anim').hide() | 224 | $('.layui-anim').hide() |
183 | $('html,body').removeClass('ovfHiden'); | 225 | $('html,body').removeClass('ovfHiden'); |
184 | } | 226 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -291,4 +291,42 @@ | ... | @@ -291,4 +291,42 @@ |
291 | } | 291 | } |
292 | .next_button a { | 292 | .next_button a { |
293 | color: #fff; | 293 | color: #fff; |
294 | } | ||
295 | .layui-layer-title { | ||
296 | background-color: #1E9FFF!important; | ||
297 | color: #fff!important; | ||
298 | } | ||
299 | /* ---------------------信息确认弹框样式------------------------------- */ | ||
300 | |||
301 | .infoContent { | ||
302 | padding: 15px 50px; | ||
303 | } | ||
304 | .infoContent ul { | ||
305 | margin-bottom: 15px; | ||
306 | } | ||
307 | .infoContent ul li { | ||
308 | color: rgb(44, 41, 41); | ||
309 | margin-bottom: 10px; | ||
310 | } | ||
311 | .infoContent ul li span{ | ||
312 | font-size: 16px!important; | ||
313 | width: 80px; | ||
314 | display: inline-block; | ||
315 | text-align-last: justify; | ||
316 | } | ||
317 | .infoContent h3 { | ||
318 | display: inline-block; | ||
319 | font-size: 16px; | ||
320 | font-weight: 600; | ||
321 | } | ||
322 | .listItem { | ||
323 | margin-bottom: 10px; | ||
324 | } | ||
325 | .confimButton { | ||
326 | text-align: center; | ||
327 | margin-top: 20px; | ||
328 | } | ||
329 | .confimButton .layui-btn { | ||
330 | height: 30px; | ||
331 | line-height: 30px; | ||
294 | } | 332 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -169,8 +169,8 @@ | ... | @@ -169,8 +169,8 @@ |
169 | 上一步 | 169 | 上一步 |
170 | </a> | 170 | </a> |
171 | </button> | 171 | </button> |
172 | <button type="button" class="layui-btn layui-btn-normal"> | 172 | <button type="button" class="layui-btn layui-btn-normal nextButton"> |
173 | <a href="../yyjg/index.html" title="下一步"> | 173 | <a title="下一步"> |
174 | 下一步 | 174 | 下一步 |
175 | </a> | 175 | </a> |
176 | </button> | 176 | </button> | ... | ... |
-
Please register or sign in to post a comment