样式优化

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 <view
class="content" class="content"
:style="{ :style="{
height: isHome ? '100vh' : `calc(100vh - ${isIos ? 98 : 95}px)`, height: isHome ? '100vh' : `calc(100vh - ${isIos ? 196 : 170}rpx)`,
overflow, overflow,
}" }"
> >

View File

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

View File

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

View File

@@ -60,14 +60,15 @@ const toOrderPage = () => {
<template> <template>
<Container title="会员说明"> <Container title="会员说明">
<view :style="{ width: '100%', height: '100%' }">
<view v-if="user.id" class="header"> <view v-if="user.id" class="header">
<view> <view>
<Avatar :src="user.avatar" :size="35" /> <Avatar :src="user.avatar" :size="35" />
<text class="truncate">{{ user.nickName }}</text> <text class="truncate">{{ user.nickName }}</text>
</view> </view>
<text v-if="user.expiredAt" <text v-if="user.expiredAt">
>{{ formatTimestamp(user.expiredAt) }}到期</text {{ formatTimestamp(user.expiredAt) }}到期
> </text>
</view> </view>
<view <view
class="container" class="container"
@@ -128,6 +129,7 @@ const toOrderPage = () => {
</view> </view>
</view> </view>
</view> </view>
</view>
</Container> </Container>
</template> </template>