style:注销
Showing
5 changed files
with
38 additions
and
6 deletions
| ... | @@ -110,7 +110,7 @@ div.top-logo .top_logo_search { | ... | @@ -110,7 +110,7 @@ div.top-logo .top_logo_search { |
| 110 | float: left; | 110 | float: left; |
| 111 | width: 350px; | 111 | width: 350px; |
| 112 | position: relative; | 112 | position: relative; |
| 113 | margin-left: 385px; | 113 | margin-left: 338px; |
| 114 | } | 114 | } |
| 115 | div.top-logo .top_logo_search input { | 115 | div.top-logo .top_logo_search input { |
| 116 | border-radius: 50px; | 116 | border-radius: 50px; |
| ... | @@ -163,7 +163,9 @@ div.top-logo .top_logo_search i { | ... | @@ -163,7 +163,9 @@ div.top-logo .top_logo_search i { |
| 163 | height: 13px; | 163 | height: 13px; |
| 164 | line-height: 12px; | 164 | line-height: 12px; |
| 165 | } | 165 | } |
| 166 | 166 | #cancellation { | |
| 167 | cursor: pointer; | ||
| 168 | } | ||
| 167 | div.navigation { | 169 | div.navigation { |
| 168 | text-align: center; | 170 | text-align: center; |
| 169 | height: 59px; | 171 | height: 59px; | ... | ... |
| ... | @@ -40,6 +40,9 @@ document.writeln(" </li>"); | ... | @@ -40,6 +40,9 @@ document.writeln(" </li>"); |
| 40 | document.writeln(" <li>"); | 40 | document.writeln(" <li>"); |
| 41 | document.writeln(" <p class='PersonLogin'>登录</p>"); | 41 | document.writeln(" <p class='PersonLogin'>登录</p>"); |
| 42 | document.writeln(" </li>"); | 42 | document.writeln(" </li>"); |
| 43 | document.writeln(" <li>"); | ||
| 44 | document.writeln(" <p id='cancellation'>注销</p>"); | ||
| 45 | document.writeln(" </li>"); | ||
| 43 | document.writeln(" </ul>"); | 46 | document.writeln(" </ul>"); |
| 44 | document.writeln(" </div>"); | 47 | document.writeln(" </div>"); |
| 45 | document.writeln(" </div>"); | 48 | document.writeln(" </div>"); | ... | ... |
| 1 | var localhostPaht = curWwwPath.substring(0, pos); | ||
| 1 | function login() { | 2 | function login() { |
| 2 | layui.use('layer', function () { | 3 | layui.use('layer', function () { |
| 3 | layer.open({ | 4 | layer.open({ |
| ... | @@ -40,6 +41,24 @@ $(document).on('click', '#loginButton', function () { | ... | @@ -40,6 +41,24 @@ $(document).on('click', '#loginButton', function () { |
| 40 | clicklogin(userLoginRequest) | 41 | clicklogin(userLoginRequest) |
| 41 | layer.closeAll() | 42 | layer.closeAll() |
| 42 | }); | 43 | }); |
| 44 | |||
| 45 | // cancellation | ||
| 46 | $(document).on('click', '#cancellation', function () { | ||
| 47 | delCookie(); | ||
| 48 | window.open('' + localhostPaht + '/index.html', '_self') | ||
| 49 | }); | ||
| 50 | function delCookie () { | ||
| 51 | var keys = document.cookie.match(/[^ =;]+(?==)/g) | ||
| 52 | if (keys) { | ||
| 53 | for (var i = keys.length; i--;) { | ||
| 54 | document.cookie = keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString() // 清除当前域名下的,例如:m.ratingdog.cn | ||
| 55 | document.cookie = keys[i] + '=0;path=/;domain=' + document.domain + ';expires=' + new Date(0).toUTCString() // 清除当前域名下的,例如 .m.ratingdog.cn | ||
| 56 | document.cookie = keys[i] + '=0;path=/;domain=ratingdog.cn;expires=' + new Date(0).toUTCString() // 清除一级域名下的或指定的,例如 .ratingdog.cn | ||
| 57 | } | ||
| 58 | } | ||
| 59 | } | ||
| 60 | |||
| 61 | |||
| 43 | $(function () { | 62 | $(function () { |
| 44 | $('.PersonLogin').html(getCookie('myCookie').username) | 63 | $('.PersonLogin').html(getCookie('myCookie').username) |
| 45 | if (getCookie('myCookie').username) { | 64 | if (getCookie('myCookie').username) { | ... | ... |
| ... | @@ -7,9 +7,13 @@ layui.use('element', function () { | ... | @@ -7,9 +7,13 @@ layui.use('element', function () { |
| 7 | }); | 7 | }); |
| 8 | }); | 8 | }); |
| 9 | $(function () { | 9 | $(function () { |
| 10 | _initData() | 10 | _initData(); |
| 11 | $('#zjhm').text(getCookie().zjhm) | 11 | $('#zjhm').text(getCookie().zjhm); |
| 12 | $('#username').text(getCookie().username ) | 12 | $('#username').text(getCookie().username); |
| 13 | |||
| 14 | $(document).on("click", ".business", function (e) { | ||
| 15 | window.open("./businessGuideDeatil.html?id=" + $(this).attr('ywid') + "") | ||
| 16 | }) | ||
| 13 | }) | 17 | }) |
| 14 | // 获取列表信息 | 18 | // 获取列表信息 |
| 15 | function _initData(currentPage=1) { | 19 | function _initData(currentPage=1) { |
| ... | @@ -53,7 +57,7 @@ function _initData(currentPage=1) { | ... | @@ -53,7 +57,7 @@ function _initData(currentPage=1) { |
| 53 | li += '<ul class="item_info">' | 57 | li += '<ul class="item_info">' |
| 54 | li += '<li><span>预约人:</span><p>'+records[i].name+'</p></li>' | 58 | li += '<li><span>预约人:</span><p>'+records[i].name+'</p></li>' |
| 55 | li += '<li><span>办事大厅:</span><p>'+records[i].organizationName+'</p></li>' | 59 | li += '<li><span>办事大厅:</span><p>'+records[i].organizationName+'</p></li>' |
| 56 | li += '<li><span>办理业务类型:</span><p>'+records[i].businessName+'</p><a href="">办事指南</a></li>' | 60 | li += '<li><span>办理业务类型:</span><p>'+records[i].businessName+'</p><a class="business" ywid="'+records[i].ywid+'">办事指南</a></li>' |
| 57 | li += '<li><span>预约日期:</span><p>'+records[i].reserveTime+'</p></li>' | 61 | li += '<li><span>预约日期:</span><p>'+records[i].reserveTime+'</p></li>' |
| 58 | li += '<li><span>预约流水号:</span><p>'+records[i].reservationNumber+'</p></li>' | 62 | li += '<li><span>预约流水号:</span><p>'+records[i].reservationNumber+'</p></li>' |
| 59 | li += '</ul>' | 63 | li += '</ul>' |
| ... | @@ -93,6 +97,7 @@ function paged(pageCount, curr) { | ... | @@ -93,6 +97,7 @@ function paged(pageCount, curr) { |
| 93 | }); | 97 | }); |
| 94 | }) | 98 | }) |
| 95 | } | 99 | } |
| 100 | |||
| 96 | var dataList = { | 101 | var dataList = { |
| 97 | "userid":getCookie().userid | 102 | "userid":getCookie().userid |
| 98 | }; | 103 | }; |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment