1aa6bfa8 by 任超

style:登录

1 parent 5d0d94cd
...@@ -41,8 +41,8 @@ $(document).on('click', '#loginButton', function () { ...@@ -41,8 +41,8 @@ $(document).on('click', '#loginButton', function () {
41 layer.closeAll() 41 layer.closeAll()
42 }); 42 });
43 $(function () { 43 $(function () {
44 $('.PersonLogin').html(getCookie().username) 44 $('.PersonLogin').html(getCookie('myCookie').username)
45 if (getCookie().username) { 45 if (getCookie('myCookie').username) {
46 $('.personalCenter').addClass('show') 46 $('.personalCenter').addClass('show')
47 } 47 }
48 }) 48 })
...@@ -64,7 +64,7 @@ function clicklogin(data) { ...@@ -64,7 +64,7 @@ function clicklogin(data) {
64 if (result.code == 200 && result.data !== null) { 64 if (result.code == 200 && result.data !== null) {
65 setCookie(result.data); 65 setCookie(result.data);
66 $('.personalCenter').addClass('show') 66 $('.personalCenter').addClass('show')
67 $('.PersonLogin').html(getCookie().username); 67 $('.PersonLogin').html(getCookie('myCookie').username);
68 } else if (result.code == 210) { 68 } else if (result.code == 210) {
69 window.open(`${localhostPaht}/staticViews/register.html`, '_self') 69 window.open(`${localhostPaht}/staticViews/register.html`, '_self')
70 } 70 }
...@@ -75,7 +75,7 @@ function clicklogin(data) { ...@@ -75,7 +75,7 @@ function clicklogin(data) {
75 // 点击判断是否登录 75 // 点击判断是否登录
76 function isLogin() { 76 function isLogin() {
77 let login1; 77 let login1;
78 if (getCookie().username) { 78 if (getCookie('myCookie').username) {
79 login1 = true; 79 login1 = true;
80 } else { 80 } else {
81 login(); 81 login();
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
56 </li> 56 </li>
57 <li> 57 <li>
58 <a class="cardItem" href="./wdyy.html" title="我的预约"> 58 <a class="cardItem" href="./wdyy.html" title="我的预约">
59 <img src="../staticImages/myyewu.png"> 59 <img src="../staticImages/myyuyue.png">
60 <p>我的预约</p> 60 <p>我的预约</p>
61 </a> 61 </a>
62 </li> 62 </li>
...@@ -68,16 +68,19 @@ ...@@ -68,16 +68,19 @@
68 </li> 68 </li>
69 <li> 69 <li>
70 <a class="cardItem" href="" title="业务查询"> 70 <a class="cardItem" href="" title="业务查询">
71 <img src="../staticImages/zhengshu.png">
71 <p>我的发票</p> 72 <p>我的发票</p>
72 </a> 73 </a>
73 </li> 74 </li>
74 <li> 75 <li>
75 <a class="cardItem" href="" title="我的支付"> 76 <a class="cardItem" href="" title="我的支付">
77 <img src="../staticImages/yewuchaxun.png">
76 <p>查询业务</p> 78 <p>查询业务</p>
77 </a> 79 </a>
78 </li> 80 </li>
79 <li> 81 <li>
80 <a class="cardItem" href="" title="档案查询"> 82 <a class="cardItem" href="" title="档案查询">
83 <img src="../staticImages/dangan.png">
81 <p>档案查询</p> 84 <p>档案查询</p>
82 </a> 85 </a>
83 </li> 86 </li>
......