样式优化

This commit is contained in:
kron
2025-07-15 15:15:47 +08:00
parent 1d885f1a4f
commit 95426ffd07
4 changed files with 68 additions and 64 deletions

View File

@@ -68,7 +68,7 @@ const goBack = () => {
<view
class="content"
:style="{
height: isHome ? '100vh' : `calc(100vh - ${isIos ? 98 : 95}px)`,
height: isHome ? '100vh' : `calc(100vh - ${isIos ? 196 : 170}rpx)`,
overflow,
}"
>

View File

@@ -25,7 +25,7 @@ onMounted(() => {
</script>
<template>
<view class="container" :style="{ paddingTop: isIos ? '38px' : '25px' }">
<view class="container" :style="{ paddingTop: isIos ? '76rpx' : '50rpx' }">
<view class="back-btn" @click="onClick">
<image src="../static/back.png" mode="widthFix" />
</view>
@@ -67,7 +67,7 @@ onMounted(() => {
justify-content: flex-start;
align-items: center;
width: 72vw;
height: 60px;
height: 120rpx;
/* margin-top: var(--status-bar-height); */
padding-left: 15px;
color: #fff;

View File

@@ -16,7 +16,9 @@ const props = defineProps({
},
});
const nextLvlPoints = ref("");
const containerWidth = computed(() => (props.showRank ? "72%" : "100%"));
const containerWidth = computed(() =>
props.showRank ? "72%" : "calc(100% - 15px)"
);
const toUserPage = () => {
// 获取当前页面路径
const pages = getCurrentPages();