From 3ea011d565ef7b6f303b6dc0cf7f8e27770567ad Mon Sep 17 00:00:00 2001 From: YangWork Date: Fri, 17 Feb 2023 18:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E4=B8=80=E6=AD=A5=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=B5=84=E6=96=99=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: YangWork --- App.vue | 3 +-- common/ajax.js | 2 +- member/profile/profile.vue | 44 +++++++++++++++----------------------- pages/tabbar/home/home.vue | 3 ++- 4 files changed, 21 insertions(+), 31 deletions(-) diff --git a/App.vue b/App.vue index ec1fd2a..5ea5f17 100644 --- a/App.vue +++ b/App.vue @@ -70,8 +70,7 @@ right: 0; } */ - uni-page-body { - background-color: #F5F5F5 !important; + uni-page-body { min-height: 100% !important; height: auto !important; background: linear-gradient(to bottom right, pink, #a900ff7a, pink); diff --git a/common/ajax.js b/common/ajax.js index 09a3c78..a041ac3 100644 --- a/common/ajax.js +++ b/common/ajax.js @@ -29,7 +29,7 @@ instance.interceptors.response.use( response => { if (response.statusCode == 200) { let res = response.data; - if (res.hasOwnProperty('token')) + if (res.hasOwnProperty('token') && res.token!= "") uni.setStorageSync('token', res.token); return response.data } diff --git a/member/profile/profile.vue b/member/profile/profile.vue index 11c3750..fcb6721 100644 --- a/member/profile/profile.vue +++ b/member/profile/profile.vue @@ -39,8 +39,8 @@ - - + @@ -66,7 +66,13 @@