样式优化
This commit is contained in:
@@ -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,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user