1aa6bfa8 by 任超

style:登录

1 parent 5d0d94cd
......@@ -41,8 +41,8 @@ $(document).on('click', '#loginButton', function () {
layer.closeAll()
});
$(function () {
$('.PersonLogin').html(getCookie().username)
if (getCookie().username) {
$('.PersonLogin').html(getCookie('myCookie').username)
if (getCookie('myCookie').username) {
$('.personalCenter').addClass('show')
}
})
......@@ -64,7 +64,7 @@ function clicklogin(data) {
if (result.code == 200 && result.data !== null) {
setCookie(result.data);
$('.personalCenter').addClass('show')
$('.PersonLogin').html(getCookie().username);
$('.PersonLogin').html(getCookie('myCookie').username);
} else if (result.code == 210) {
window.open(`${localhostPaht}/staticViews/register.html`, '_self')
}
......@@ -75,7 +75,7 @@ function clicklogin(data) {
// 点击判断是否登录
function isLogin() {
let login1;
if (getCookie().username) {
if (getCookie('myCookie').username) {
login1 = true;
} else {
login();
......
......@@ -56,7 +56,7 @@
</li>
<li>
<a class="cardItem" href="./wdyy.html" title="我的预约">
<img src="../staticImages/myyewu.png">
<img src="../staticImages/myyuyue.png">
<p>我的预约</p>
</a>
</li>
......@@ -68,16 +68,19 @@
</li>
<li>
<a class="cardItem" href="" title="业务查询">
<img src="../staticImages/zhengshu.png">
<p>我的发票</p>
</a>
</li>
<li>
<a class="cardItem" href="" title="我的支付">
<img src="../staticImages/yewuchaxun.png">
<p>查询业务</p>
</a>
</li>
<li>
<a class="cardItem" href="" title="档案查询">
<img src="../staticImages/dangan.png">
<p>档案查询</p>
</a>
</li>
......