细节调整
This commit is contained in:
@@ -58,10 +58,11 @@ const toRankListPage = () => {
|
||||
};
|
||||
|
||||
onShow(async () => {
|
||||
const rankList = await getRankListAPI();
|
||||
updateRank(rankList);
|
||||
const token = uni.getStorageSync("token");
|
||||
if (token) {
|
||||
const result = await getHomeData();
|
||||
updateRank(result);
|
||||
console.log("首页数据:", result);
|
||||
if (result.user) {
|
||||
updateUser(result.user);
|
||||
@@ -79,9 +80,6 @@ onShow(async () => {
|
||||
);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
const result = await getRankListAPI();
|
||||
updateRank(result);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -187,7 +185,9 @@ const comingSoon = () => {
|
||||
<view>
|
||||
<view>
|
||||
<text>段位</text>
|
||||
<text>{{ user.scores ? getLvlName(user.scores) : "暂无" }}</text>
|
||||
<text>{{
|
||||
user.scores ? getLvlName(user.scores) : "暂无"
|
||||
}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>赛季平均环数</text>
|
||||
@@ -367,7 +367,7 @@ const comingSoon = () => {
|
||||
height: 82rpx;
|
||||
border-radius: 50%;
|
||||
margin-right: -10px;
|
||||
border: 1px solid #312F35;
|
||||
border: 1px solid #312f35;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user