Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/portalStaticPage
Showing
21 changed files
with
98 additions
and
182 deletions
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
1 | # Summary | ||
2 | |||
3 | Date : 2020-12-23 16:04:29 | ||
4 | |||
5 | Directory e:\门户网站\portalStaticPage | ||
6 | |||
7 | Total : 169 files, 73670 codes, 5132 comments, 4635 blanks, all 83437 lines | ||
8 | |||
9 | [details](details.md) | ||
10 | |||
11 | ## Languages | ||
12 | | language | files | code | comment | blank | total | | ||
13 | | :--- | ---: | ---: | ---: | ---: | ---: | | ||
14 | | JavaScript | 74 | 49,224 | 4,035 | 3,817 | 57,076 | | ||
15 | | CSS | 42 | 20,766 | 995 | 375 | 22,136 | | ||
16 | | HTML | 34 | 3,449 | 99 | 83 | 3,631 | | ||
17 | | XML | 17 | 211 | 3 | 357 | 571 | | ||
18 | | JSON | 1 | 19 | 0 | 0 | 19 | | ||
19 | | Markdown | 1 | 1 | 0 | 3 | 4 | | ||
20 | |||
21 | ## Directories | ||
22 | | path | files | code | comment | blank | total | | ||
23 | | :--- | ---: | ---: | ---: | ---: | ---: | | ||
24 | | . | 169 | 73,670 | 5,132 | 4,635 | 83,437 | | ||
25 | | staticCss | 37 | 20,761 | 990 | 375 | 22,126 | | ||
26 | | staticCss\convenienceService | 4 | 19 | 0 | 3 | 22 | | ||
27 | | staticImages | 16 | 16 | 0 | 0 | 16 | | ||
28 | | staticImages\share | 13 | 13 | 0 | 0 | 13 | | ||
29 | | staticJs | 48 | 37,031 | 868 | 230 | 38,129 | | ||
30 | | staticJs\convenienceService | 4 | 5 | 0 | 4 | 9 | | ||
31 | | staticJs\onlineApply | 8 | 911 | 420 | 54 | 1,385 | | ||
32 | | staticLib | 33 | 12,412 | 3,175 | 3,944 | 19,531 | | ||
33 | | staticLib\jquery | 4 | 12,165 | 3,145 | 3,587 | 18,897 | | ||
34 | | staticLib\layui | 28 | 228 | 30 | 357 | 615 | | ||
35 | | staticLib\layui\css | 5 | 5 | 5 | 0 | 10 | | ||
36 | | staticLib\layui\css\modules | 3 | 3 | 3 | 0 | 6 | | ||
37 | | staticLib\layui\css\modules\laydate | 1 | 1 | 1 | 0 | 2 | | ||
38 | | staticLib\layui\css\modules\laydate\default | 1 | 1 | 1 | 0 | 2 | | ||
39 | | staticLib\layui\css\modules\layer | 1 | 1 | 1 | 0 | 2 | | ||
40 | | staticLib\layui\css\modules\layer\default | 1 | 1 | 1 | 0 | 2 | | ||
41 | | staticLib\layui\font | 1 | 195 | 3 | 357 | 555 | | ||
42 | | staticLib\layui\lay | 20 | 23 | 20 | 0 | 43 | | ||
43 | | staticLib\layui\lay\modules | 20 | 23 | 20 | 0 | 43 | | ||
44 | | staticLib\wdyy | 1 | 19 | 0 | 0 | 19 | | ||
45 | | staticViews | 33 | 3,111 | 94 | 80 | 3,285 | | ||
46 | | staticViews\convenienceService | 4 | 148 | 0 | 4 | 152 | | ||
47 | | staticViews\onlineApply | 7 | 911 | 21 | 24 | 956 | | ||
48 | |||
49 | [details](details.md) | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed.
Click to expand it.
... | @@ -134,6 +134,9 @@ div.navigation { | ... | @@ -134,6 +134,9 @@ div.navigation { |
134 | .release div { | 134 | .release div { |
135 | display: inline-block; | 135 | display: inline-block; |
136 | } | 136 | } |
137 | .release div p { | ||
138 | display: inline-block; | ||
139 | } | ||
137 | .mainbody .DividingLine { | 140 | .mainbody .DividingLine { |
138 | width: 1200px; | 141 | width: 1200px; |
139 | height: 1px; | 142 | height: 1px; | ... | ... |
... | @@ -104,7 +104,7 @@ | ... | @@ -104,7 +104,7 @@ |
104 | } | 104 | } |
105 | .business_titleList li a { | 105 | .business_titleList li a { |
106 | display: block; | 106 | display: block; |
107 | height: 80px; | 107 | height: 142px; |
108 | border: 1px solid #eee; | 108 | border: 1px solid #eee; |
109 | border-radius: 5px; | 109 | border-radius: 5px; |
110 | text-align: center; | 110 | text-align: center; |
... | @@ -112,7 +112,7 @@ | ... | @@ -112,7 +112,7 @@ |
112 | } | 112 | } |
113 | .business_titleList li p:nth-child(1) { | 113 | .business_titleList li p:nth-child(1) { |
114 | font-size: 18px; | 114 | font-size: 18px; |
115 | margin-top: 15px; | 115 | margin-top: 39px; |
116 | } | 116 | } |
117 | .itemTitleActive { | 117 | .itemTitleActive { |
118 | border-color: #0091FF!important; | 118 | border-color: #0091FF!important; |
... | @@ -200,3 +200,8 @@ | ... | @@ -200,3 +200,8 @@ |
200 | .business_name { | 200 | .business_name { |
201 | width: 330px; | 201 | width: 330px; |
202 | } | 202 | } |
203 | .noData { | ||
204 | text-align: center; | ||
205 | padding-top: 30px; | ||
206 | display: none; | ||
207 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | .central_area { | 1 | .central_area { |
2 | min-height:calc(100vh - 190px); | 2 | min-height:calc(100vh - 525px); |
3 | margin-top: 20px; | 3 | margin-top: 20px; |
4 | color: #4A4A4A; | 4 | color: #4A4A4A; |
5 | } | 5 | } |
... | @@ -140,7 +140,7 @@ | ... | @@ -140,7 +140,7 @@ |
140 | } | 140 | } |
141 | .item_info { | 141 | .item_info { |
142 | padding: 30px; | 142 | padding: 30px; |
143 | height: 180px; | 143 | height: 193px; |
144 | } | 144 | } |
145 | .item_info li{ | 145 | .item_info li{ |
146 | width: 100%; | 146 | width: 100%; |
... | @@ -184,3 +184,8 @@ | ... | @@ -184,3 +184,8 @@ |
184 | .business { | 184 | .business { |
185 | cursor: pointer; | 185 | cursor: pointer; |
186 | } | 186 | } |
187 | .noData { | ||
188 | text-align: center; | ||
189 | padding-top: 30px; | ||
190 | display: none; | ||
191 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -690,11 +690,11 @@ div.navigation { | ... | @@ -690,11 +690,11 @@ div.navigation { |
690 | 690 | ||
691 | .zcfg-top { | 691 | .zcfg-top { |
692 | width: 200px; | 692 | width: 200px; |
693 | height: 14px; | ||
694 | font-size: 14px; | 693 | font-size: 14px; |
695 | font-weight: bold; | 694 | font-weight: bold; |
696 | color: #4A4A4A; | 695 | color: #4A4A4A; |
697 | line-height: 20px; | 696 | line-height: 20px; |
697 | margin-bottom: 5px; | ||
698 | } | 698 | } |
699 | 699 | ||
700 | .zcfg-body { | 700 | .zcfg-body { |
... | @@ -714,106 +714,13 @@ div.navigation { | ... | @@ -714,106 +714,13 @@ div.navigation { |
714 | color: #9B9B9B; | 714 | color: #9B9B9B; |
715 | margin-top: 10px; | 715 | margin-top: 10px; |
716 | } | 716 | } |
717 | 717 | /* 来源 */ | |
718 | /* -----------------底部start----------------------------- */ | 718 | .source { |
719 | div.footer { | 719 | color: #6D7278; |
720 | background-color: #233042; | ||
721 | width: 100%; | ||
722 | } | ||
723 | |||
724 | div.footer .system_service { | ||
725 | width: 100%; | ||
726 | border-bottom: 1px solid #4A4A4A; | ||
727 | } | ||
728 | |||
729 | div.footer .system_service ul { | ||
730 | padding: 40px 0; | ||
731 | width: 1400px; | ||
732 | margin: 0 auto; | ||
733 | font-size: 0; | ||
734 | } | ||
735 | |||
736 | div.footer .system_service ul li { | ||
737 | width: 20%; | ||
738 | display: inline-block; | ||
739 | text-align: center; | ||
740 | height: 18px; | ||
741 | box-sizing: border-box; | ||
742 | } | ||
743 | |||
744 | div.footer .system_service ul li:not(:last-child) { | ||
745 | border-right: 1px solid #6D7278; | ||
746 | } | ||
747 | |||
748 | div.footer .system_service ul li a { | ||
749 | font-size: 16px; | ||
750 | font-weight: 400; | ||
751 | color: #DEDEDE; | ||
752 | } | ||
753 | |||
754 | div.footer .system_service ul li a:hover { | ||
755 | color: #f46143; | ||
756 | } | ||
757 | |||
758 | .footer .subject { | ||
759 | width: 80%; | ||
760 | margin: 0 auto; | ||
761 | padding: 40px 0; | ||
762 | overflow: hidden; | ||
763 | } | ||
764 | |||
765 | .footer .subject .footer_logo { | ||
766 | float: left; | ||
767 | } | ||
768 | |||
769 | .footer .subject .footer_logo a { | ||
770 | display: block; | ||
771 | width: 64px; | ||
772 | height: 74px; | ||
773 | padding: 10px; | ||
774 | } | ||
775 | |||
776 | .footer .subject .footer_logo a img { | ||
777 | width: 100%; | ||
778 | height: 100%; | ||
779 | } | ||
780 | |||
781 | .footer .subject ul, ol { | ||
782 | float: left; | ||
783 | color: #CBCBCB; | ||
784 | text-align: left; | ||
785 | } | ||
786 | |||
787 | .footer .subject ul { | ||
788 | width: 73%; | ||
789 | box-sizing: border-box; | ||
790 | padding-left: 40px; | ||
791 | margin-top: 10px; | ||
792 | } | ||
793 | |||
794 | .footer .subject ul li { | ||
795 | width: 30%; | ||
796 | display: inline-block; | ||
797 | text-align: left; | ||
798 | margin-bottom: 30px; | ||
799 | } | ||
800 | |||
801 | .footer .subject ol li { | ||
802 | display: inline-block; | ||
803 | text-align: center; | ||
804 | } | ||
805 | |||
806 | .footer .subject ol li:last-child { | ||
807 | margin-left: 60px; | ||
808 | } | ||
809 | |||
810 | .footer .subject ol li img { | ||
811 | width: 80px; | ||
812 | height: 80px; | ||
813 | } | ||
814 | |||
815 | .footer .subject ol li p { | ||
816 | font-size: 12px; | 720 | font-size: 12px; |
817 | color: #CBCBCB; | 721 | margin-top: 30px; |
818 | margin-top: 5px; | 722 | } |
723 | .source p:nth-child(2) { | ||
724 | color: #4A4A4A; | ||
725 | font-size: 14px; | ||
819 | } | 726 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -61,8 +61,13 @@ function getCookie() { | ... | @@ -61,8 +61,13 @@ function getCookie() { |
61 | * 验证手机号码 | 61 | * 验证手机号码 |
62 | */ | 62 | */ |
63 | function validatorTel(content) { | 63 | function validatorTel(content) { |
64 | |||
65 | // 正则验证格式 | 64 | // 正则验证格式 |
66 | eval("var reg = /^1[34578]\\d{9}$/;"); | 65 | eval("var reg = /^1[34578]\\d{9}$/;"); |
67 | return RegExp(reg).test(content); | 66 | return RegExp(reg).test(content); |
68 | } | 67 | } |
68 | |||
69 | // 验证身份证 | ||
70 | function isCardNo(card) { | ||
71 | var pattern = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; | ||
72 | return pattern.test(card); | ||
73 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -22,7 +22,7 @@ function newsDetail() { | ... | @@ -22,7 +22,7 @@ function newsDetail() { |
22 | if (result.code == 200 && result.data != null) { | 22 | if (result.code == 200 && result.data != null) { |
23 | $('.newsTitle').html(result.data.headline) | 23 | $('.newsTitle').html(result.data.headline) |
24 | $('.releaseTime').html(result.data.addtime) | 24 | $('.releaseTime').html(result.data.addtime) |
25 | $('.source').html(result.data.source) | 25 | $('#source').html(result.data.source) |
26 | newsDetail.append(result.data.content) | 26 | newsDetail.append(result.data.content) |
27 | } | 27 | } |
28 | } | 28 | } | ... | ... |
... | @@ -71,7 +71,6 @@ document.writeln(" <dl class=\'layui-nav-child\'>"); | ... | @@ -71,7 +71,6 @@ document.writeln(" <dl class=\'layui-nav-child\'>"); |
71 | document.writeln(" <!-- 二级菜单 -->"); | 71 | document.writeln(" <!-- 二级菜单 -->"); |
72 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/convenienceService/fileQuery.html\'>档案查询</a></dd>"); | 72 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/convenienceService/fileQuery.html\'>档案查询</a></dd>"); |
73 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/convenienceService/recordInquiry.html\'>合同备案查询</a></dd>"); | 73 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/convenienceService/recordInquiry.html\'>合同备案查询</a></dd>"); |
74 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/convenienceService/certificateQuery.html\'>二三维不动产证书查验</a></dd>"); | ||
75 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/convenienceService/certificateVerification.html\'>证书核验</a></dd>"); | 74 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/convenienceService/certificateVerification.html\'>证书核验</a></dd>"); |
76 | document.writeln(" </dl>"); | 75 | document.writeln(" </dl>"); |
77 | document.writeln(" </li>"); | 76 | document.writeln(" </li>"); | ... | ... |
... | @@ -65,6 +65,11 @@ function applicationMethod() { | ... | @@ -65,6 +65,11 @@ function applicationMethod() { |
65 | for(var i=0;i<$('.conImageUpdate').length;i++) { | 65 | for(var i=0;i<$('.conImageUpdate').length;i++) { |
66 | $('.conImageUpdate').eq(i).find('.imageUpdateTitle').css('height', $('.conImageUpdate').eq(i).height()-60); | 66 | $('.conImageUpdate').eq(i).find('.imageUpdateTitle').css('height', $('.conImageUpdate').eq(i).height()-60); |
67 | } | 67 | } |
68 | $('.consigneePhone').blur(function() { | ||
69 | if (!validatorTel($(this).val())) { | ||
70 | layer.msg('请输入正确手机号!'); | ||
71 | } | ||
72 | }) | ||
68 | } | 73 | } |
69 | 74 | ||
70 | //读取受理信息 | 75 | //读取受理信息 |
... | @@ -186,7 +191,7 @@ function authorityPerson() { | ... | @@ -186,7 +191,7 @@ function authorityPerson() { |
186 | '<div class="layui-inline">' + | 191 | '<div class="layui-inline">' + |
187 | '<label class="layui-form-label">姓名</label>' + | 192 | '<label class="layui-form-label">姓名</label>' + |
188 | '<div class="layui-input-block">' + | 193 | '<div class="layui-input-block">' + |
189 | '<input type="text" name="name" required lay-verify="name" placeholder="请输权利人" class="layui-input">' + | 194 | '<input type="text" name="sqrmc" required lay-verify="sqrmc" placeholder="请输权利人" class="layui-input">' + |
190 | '</div>' + | 195 | '</div>' + |
191 | '</div>' + | 196 | '</div>' + |
192 | '<div class="layui-inline idCard">' + | 197 | '<div class="layui-inline idCard">' + |
... | @@ -201,13 +206,13 @@ function authorityPerson() { | ... | @@ -201,13 +206,13 @@ function authorityPerson() { |
201 | '<div class="layui-inline">' + | 206 | '<div class="layui-inline">' + |
202 | '<label class="layui-form-label">证件号码</label>' + | 207 | '<label class="layui-form-label">证件号码</label>' + |
203 | '<div class="layui-input-block">' + | 208 | '<div class="layui-input-block">' + |
204 | '<input type="tel" name="card" maxlength="18" required lay-verify="card" placeholder="请输证件号码" class="layui-input">' + | 209 | '<input type="tel" name="zjhm" maxlength="18" required lay-verify="card" placeholder="请输证件号码" class="layui-input zjhm">' + |
205 | '</div>' + | 210 | '</div>' + |
206 | '</div>' + | 211 | '</div>' + |
207 | '<div class="layui-inline">' + | 212 | '<div class="layui-inline">' + |
208 | '<label class="layui-form-label">联系方式</label>' + | 213 | '<label class="layui-form-label">联系方式</label>' + |
209 | '<div class="layui-input-block">' + | 214 | '<div class="layui-input-block">' + |
210 | '<input type="tel" name="phone" maxlength="11" required lay-verify="phone" placeholder="请输联系方式" class="layui-input">' + | 215 | '<input type="tel" name="dhhm" maxlength="11" required lay-verify="phone" placeholder="请输联系方式" class="layui-input dhhm">' + |
211 | '</div>' + | 216 | '</div>' + |
212 | '</div>' + | 217 | '</div>' + |
213 | '<i class="layui-icon layui-icon-reduce-circle"></i>' + | 218 | '<i class="layui-icon layui-icon-reduce-circle"></i>' + |
... | @@ -226,6 +231,16 @@ function authorityPerson() { | ... | @@ -226,6 +231,16 @@ function authorityPerson() { |
226 | $(document).on("click", ".layui-icon-reduce-circle", function (e) { | 231 | $(document).on("click", ".layui-icon-reduce-circle", function (e) { |
227 | $(this).parent().remove() | 232 | $(this).parent().remove() |
228 | }) | 233 | }) |
234 | $(document).on("blur", ".zjhm", function (e) { | ||
235 | if (!isCardNo($(this).val())) { | ||
236 | layer.msg('请输入正确证件号码!'); | ||
237 | } | ||
238 | }) | ||
239 | $(document).on("blur", ".dhhm", function (e) { | ||
240 | if (!validatorTel($(this).val())) { | ||
241 | layer.msg('请输入正确手机号!'); | ||
242 | } | ||
243 | }) | ||
229 | } | 244 | } |
230 | // 图片上传 | 245 | // 图片上传 |
231 | // 领证方式 | 246 | // 领证方式 |
... | @@ -430,6 +445,7 @@ function _saveSQR() { | ... | @@ -430,6 +445,7 @@ function _saveSQR() { |
430 | sqrList = sqrList.concat(tLists) | 445 | sqrList = sqrList.concat(tLists) |
431 | for (var i = 0; i < sqrList.length; i++) { | 446 | for (var i = 0; i < sqrList.length; i++) { |
432 | sqrList[i].sqrlx = 1; | 447 | sqrList[i].sqrlx = 1; |
448 | sqrList[i].sqrlb = slsqxx.sqrlb; | ||
433 | } | 449 | } |
434 | // 领证方式-邮寄地址 | 450 | // 领证方式-邮寄地址 |
435 | var addMailRecordRequest = {}; | 451 | var addMailRecordRequest = {}; |
... | @@ -448,7 +464,6 @@ function _saveSQR() { | ... | @@ -448,7 +464,6 @@ function _saveSQR() { |
448 | data: JSON.stringify({ | 464 | data: JSON.stringify({ |
449 | 'bsmSlsq': slsqxx.bsmSlsq, | 465 | 'bsmSlsq': slsqxx.bsmSlsq, |
450 | 'gyfsbm': gyfsmc, | 466 | 'gyfsbm': gyfsmc, |
451 | 'sqrlb': slsqxx.sqrlb, | ||
452 | 'lzfs': lzfs, | 467 | 'lzfs': lzfs, |
453 | 'sqrList': sqrList, | 468 | 'sqrList': sqrList, |
454 | 'addMailRecordRequest': addMailRecordRequest | 469 | 'addMailRecordRequest': addMailRecordRequest | ... | ... |
... | @@ -209,8 +209,10 @@ function paged(pageCount, curr) { | ... | @@ -209,8 +209,10 @@ function paged(pageCount, curr) { |
209 | }) | 209 | }) |
210 | if (pageCount == 0) { | 210 | if (pageCount == 0) { |
211 | $('#page').hide(); | 211 | $('#page').hide(); |
212 | $('.noData').show(); | ||
212 | }else { | 213 | }else { |
213 | $('#page').show(); | 214 | $('#page').show(); |
215 | $('.noData').hide(); | ||
214 | } | 216 | } |
215 | } | 217 | } |
216 | 218 | ... | ... |
... | @@ -34,7 +34,7 @@ function _initData(currentPage = 1) { | ... | @@ -34,7 +34,7 @@ function _initData(currentPage = 1) { |
34 | if (records[i].state == '0') { | 34 | if (records[i].state == '0') { |
35 | li += '<div class="item_title success">' | 35 | li += '<div class="item_title success">' |
36 | li += '<h3>预约成功</h3>' | 36 | li += '<h3>预约成功</h3>' |
37 | li += '<a href="./yyjg.html?appointmentId='+records[i].appointmentId+'">查看<i class="layui-icon layui-icon-right"></i></a>' | 37 | li += '<a href="./yyjg.html?appointmentId=' + records[i].appointmentId + '">查看<i class="layui-icon layui-icon-right"></i></a>' |
38 | li += '</div>' | 38 | li += '</div>' |
39 | } else if (records[i].state == '1') { | 39 | } else if (records[i].state == '1') { |
40 | li += '<div class="item_title success">' | 40 | li += '<div class="item_title success">' |
... | @@ -72,7 +72,16 @@ function _initData(currentPage = 1) { | ... | @@ -72,7 +72,16 @@ function _initData(currentPage = 1) { |
72 | 72 | ||
73 | // 用户取消预约 | 73 | // 用户取消预约 |
74 | $(document).on("click", ".cancel_reservation", function (e) { | 74 | $(document).on("click", ".cancel_reservation", function (e) { |
75 | _cancleAppointment($(this).attr('appointmentId'), $(this).attr('jgid'), $(this).attr('periodRulesId'), getCookie('myCookie').userid) | 75 | let that = this; |
76 | layui.use('layer', function () { | ||
77 | layer.confirm('此操作将取消预约', { | ||
78 | btn: ['是', '否'] //按钮 | ||
79 | }, function () { | ||
80 | _cancleAppointment($(that).attr('appointmentId'), $(that).attr('jgid'), $(that).attr('periodRulesId'), getCookie('myCookie').userid) | ||
81 | }, function () { | ||
82 | layer.msg('已取消'); | ||
83 | }); | ||
84 | }) | ||
76 | }) | 85 | }) |
77 | 86 | ||
78 | function _cancleAppointment(appointmentId, jgid, periodRulesId, userid) { | 87 | function _cancleAppointment(appointmentId, jgid, periodRulesId, userid) { |
... | @@ -92,7 +101,10 @@ function _cancleAppointment(appointmentId, jgid, periodRulesId, userid) { | ... | @@ -92,7 +101,10 @@ function _cancleAppointment(appointmentId, jgid, periodRulesId, userid) { |
92 | //数据,这里使用的是Json格式进行传输 | 101 | //数据,这里使用的是Json格式进行传输 |
93 | success: function (result) {//返回数据根据结果进行相应的处理 | 102 | success: function (result) {//返回数据根据结果进行相应的处理 |
94 | if (result.code == 200) { | 103 | if (result.code == 200) { |
104 | layui.use('layer', function () { | ||
105 | var layer = layui.layer; | ||
95 | layer.msg('取消预约成功'); | 106 | layer.msg('取消预约成功'); |
107 | }) | ||
96 | _initData(); | 108 | _initData(); |
97 | } | 109 | } |
98 | } | 110 | } |
... | @@ -118,6 +130,13 @@ function paged(pageCount, curr) { | ... | @@ -118,6 +130,13 @@ function paged(pageCount, curr) { |
118 | } | 130 | } |
119 | }); | 131 | }); |
120 | }) | 132 | }) |
133 | if (pageCount == 0) { | ||
134 | $('#page').hide(); | ||
135 | $('.noData').show(); | ||
136 | } else { | ||
137 | $('#page').show(); | ||
138 | $('.noData').hide(); | ||
139 | } | ||
121 | } | 140 | } |
122 | 141 | ||
123 | var dataList = { | 142 | var dataList = { | ... | ... |
1 | $(function () { | 1 | $(function () { |
2 | let Mydate = new Date() | ||
3 | let year = Mydate.getFullYear(); | ||
4 | let minutes = Mydate.getMinutes() | ||
5 | let hour = Mydate.getHours(); | ||
6 | let date = Mydate.getDate() | ||
7 | let month = Mydate.getMonth(); | ||
8 | $('.date div:first-child').text(year) | ||
9 | $('.date div:nth-child(2)').text(month + 1 + "/" + date) | ||
10 | $('.date div:last-child').text(hour + ":" + minutes) | ||
11 | LawsData() | 2 | LawsData() |
12 | HotArticle(); | 3 | HotArticle(); |
13 | PolicyHotArticle(); | 4 | PolicyHotArticle(); |
... | @@ -27,9 +18,12 @@ function LawsData() { | ... | @@ -27,9 +18,12 @@ function LawsData() { |
27 | //数据,这里使用的是Json格式进行传输 | 18 | //数据,这里使用的是Json格式进行传输 |
28 | success: function (result) {//返回数据根据结果进行相应的处理 | 19 | success: function (result) {//返回数据根据结果进行相应的处理 |
29 | if (result.code == 200 && result.data != null) { | 20 | if (result.code == 200 && result.data != null) { |
30 | console.log(999,result.data) | 21 | $('.newsTitle').html(result.data.headline); |
31 | $('.newsTitle').html(result.data.headline) | 22 | newsList.append(result.data.content); |
32 | newsList.append(result.data.content) | 23 | $('.source p').eq(1).text(result.data.source); |
24 | $('#years').text((result.data.addtime.split(' ')[0]).split('-')[0]); | ||
25 | $('#month').text((result.data.addtime.split(' ')[0]).split('-')[1] + '/' + (result.data.addtime.split(' ')[0]).split('-')[2]); | ||
26 | $('#time').text((result.data.addtime.split(' ')[1]).split('-')[0].split(':')[0] + ':' +(result.data.addtime.split(' ')[1]).split('-')[0].split(':')[1]) | ||
33 | } | 27 | } |
34 | } | 28 | } |
35 | }); | 29 | }); |
... | @@ -50,7 +44,9 @@ function HotArticle() { | ... | @@ -50,7 +44,9 @@ function HotArticle() { |
50 | if (result.code == 200 && result.data != null) { | 44 | if (result.code == 200 && result.data != null) { |
51 | for (var i = 0; i < result.data.length; i++) { | 45 | for (var i = 0; i < result.data.length; i++) { |
52 | li = '<li class="tj">'; | 46 | li = '<li class="tj">'; |
47 | if (result.data[i].cover) { | ||
53 | li += '<img src="' + result.data[i].cover + '">'; | 48 | li += '<img src="' + result.data[i].cover + '">'; |
49 | } | ||
54 | li += '<span class="tj-title">'+result.data[i].headline+'</span>'; | 50 | li += '<span class="tj-title">'+result.data[i].headline+'</span>'; |
55 | li += '<span class="tj-date">'+result.data[i].deadtime+'</span>'; | 51 | li += '<span class="tj-date">'+result.data[i].deadtime+'</span>'; |
56 | li += '</li>'; | 52 | li += '</li>'; | ... | ... |
... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
22 | <div class="mainbody"> | 22 | <div class="mainbody"> |
23 | <div class="title newsTitle"></div> | 23 | <div class="title newsTitle"></div> |
24 | <div class="release"> | 24 | <div class="release"> |
25 | <div class="source"></div> | 25 | <div>发布单位:<p id="source"></p></div> |
26 | <div>发布日期:<p class="releaseTime"></p></div> | 26 | <div>发布日期:<p class="releaseTime"></p></div> |
27 | </div> | 27 | </div> |
28 | <div class="DividingLine"></div> | 28 | <div class="DividingLine"></div> | ... | ... |
... | @@ -254,7 +254,7 @@ | ... | @@ -254,7 +254,7 @@ |
254 | <div class="layui-input-block"> | 254 | <div class="layui-input-block"> |
255 | <input type="tel" maxlength="11" id="consigneePhone" name="consigneePhone" | 255 | <input type="tel" maxlength="11" id="consigneePhone" name="consigneePhone" |
256 | lay-verify="consigneePhone" autocomplete="off" placeholder="请输入手机号码" | 256 | lay-verify="consigneePhone" autocomplete="off" placeholder="请输入手机号码" |
257 | class="layui-input"> | 257 | class="layui-input consigneePhone"> |
258 | </div> | 258 | </div> |
259 | </div> | 259 | </div> |
260 | </div> | 260 | </div> | ... | ... |
... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
24 | </div> | 24 | </div> |
25 | <!-- -----------------个人信息------------------------ --> | 25 | <!-- -----------------个人信息------------------------ --> |
26 | <div class="central_area"> | 26 | <div class="central_area"> |
27 | <div class="perinfo contentBox"> | 27 | <div class="perinfo contentBox cardItem"> |
28 | <div class="perinfo_left"> | 28 | <div class="perinfo_left"> |
29 | <img src="../staticImages/person.png" alt=""> | 29 | <img src="../staticImages/person.png" alt=""> |
30 | <ul> | 30 | <ul> |
... | @@ -80,6 +80,9 @@ | ... | @@ -80,6 +80,9 @@ |
80 | <!-- -------------预约列表--------------- --> | 80 | <!-- -------------预约列表--------------- --> |
81 | <div class="contentBox"> | 81 | <div class="contentBox"> |
82 | <ul class="appintmentList"></ul> | 82 | <ul class="appintmentList"></ul> |
83 | <div class="noData"> | ||
84 | 暂无数据 | ||
85 | </div> | ||
83 | <div id="page"></div> | 86 | <div id="page"></div> |
84 | </div> | 87 | </div> |
85 | </div> | 88 | </div> | ... | ... |
... | @@ -44,6 +44,7 @@ | ... | @@ -44,6 +44,7 @@ |
44 | <div class="contentBox"> | 44 | <div class="contentBox"> |
45 | <ul class="appointment_list"></ul> | 45 | <ul class="appointment_list"></ul> |
46 | <div id="page"></div> | 46 | <div id="page"></div> |
47 | <div class="noData">暂无数据</div> | ||
47 | </div> | 48 | </div> |
48 | </div> | 49 | </div> |
49 | </div> | 50 | </div> | ... | ... |
... | @@ -29,9 +29,9 @@ | ... | @@ -29,9 +29,9 @@ |
29 | <div class="left2"> | 29 | <div class="left2"> |
30 | <div class="left-left"> | 30 | <div class="left-left"> |
31 | <div class="date"> | 31 | <div class="date"> |
32 | <div></div> | 32 | <div id="years"></div> |
33 | <div>10/27</div> | 33 | <div id="month">10/27</div> |
34 | <div>20:53</div> | 34 | <div id="time">20:53</div> |
35 | </div> | 35 | </div> |
36 | <div class="readNum"> | 36 | <div class="readNum"> |
37 | <div> | 37 | <div> |
... | @@ -41,6 +41,10 @@ | ... | @@ -41,6 +41,10 @@ |
41 | <span>1132</span> | 41 | <span>1132</span> |
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | <div class="source"> | ||
45 | <p>信息来源</p> | ||
46 | <p></p> | ||
47 | </div> | ||
44 | <div class="share"> | 48 | <div class="share"> |
45 | <span>-分享-</span> | 49 | <span>-分享-</span> |
46 | <div class="imaglist"> | 50 | <div class="imaglist"> | ... | ... |
-
Please register or sign in to post a comment