From 0aaaebf3f714db1012fc2ee8b2210554b0d77603 Mon Sep 17 00:00:00 2001 From: hiyu Date: Thu, 27 Jun 2024 19:18:58 +0700 Subject: [PATCH] style: member code + vip --- src/assets/css/main.css | 2 +- src/components/mine/Mine.vue | 51 +++++++++++++++++++++++++----------- 2 files changed, 36 insertions(+), 17 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index cb41c71..2922113 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -828,7 +828,7 @@ body .van-toast .van-toast__icon { width: 18.933vw; height: 6vw; margin-left: 0; - margin-bottom: -1.6vw; + /* margin-bottom: -1.6vw; */ } /* .page { diff --git a/src/components/mine/Mine.vue b/src/components/mine/Mine.vue index 4b7deaa..ee903d3 100644 --- a/src/components/mine/Mine.vue +++ b/src/components/mine/Mine.vue @@ -33,7 +33,7 @@ const loadMoney = () => { loadingMoney.value = true; handleRequest(axios.get(API.USER_INFO + "/" + "money")) .then((res) => { - userStore.updateUserInfo({ money: res.data }) + userStore.updateUserInfo({ money: res.data }); }) .finally(() => { setTimeout(() => { @@ -46,7 +46,7 @@ const loadScore = () => { loadingScore.value = true; handleRequest(axios.get(API.USER_INFO + "/" + "score")) .then((res) => { - userStore.updateUserInfo({ score: res.data }) + userStore.updateUserInfo({ score: res.data }); }) .finally(() => { setTimeout(() => { @@ -56,16 +56,14 @@ const loadScore = () => { }; const getUnreadNotifications = () => { - handleRequest(axios.get(API.NOTIFICATION_UNREAD)) - .then((res) => { - if(res.success) { - countNotify.value = res.data; - } - }) + handleRequest(axios.get(API.NOTIFICATION_UNREAD)).then((res) => { + if (res.success) { + countNotify.value = res.data; + } + }); }; getUnreadNotifications(); -