UI优化,红包领取后缺少头像,名称字段

This commit is contained in:
bobobobo
2026-01-19 23:30:08 +08:00
parent d2a22b9419
commit 651d20b909
41 changed files with 2189 additions and 1827 deletions

View File

@@ -9,10 +9,7 @@
<slot name="left" />
</div>
<div
v-if="title"
class="tui-navigation-title"
>
<div v-if="title" class="tui-navigation-title">
<h1 class="tui-navigation-title-text">
{{ title }}
</h1>
@@ -25,82 +22,85 @@
</template>
<script lang="ts" setup>
import { ref, onMounted } from '../../../adapter-vue';
import { isH5 } from '../../../utils/env';
import { ref, onMounted } from '../../../adapter-vue'
import { isH5 } from '../../../utils/env'
interface Props {
title?: string;
customStyle?: string;
}
const props = withDefaults(defineProps<Props>(), {
title: '',
customStyle: '',
});
const statusBarHeight = ref<number>(0);
onMounted(() => {
if (isH5) {
statusBarHeight.value = 0;
} else {
const sysInfo = uni.getSystemInfoSync();
statusBarHeight.value = sysInfo.statusBarHeight;
interface Props {
title?: string
customStyle?: string
}
});
const props = withDefaults(defineProps<Props>(), {
title: '',
customStyle: ''
})
const statusBarHeight = ref<number>(0)
onMounted(() => {
if (isH5) {
statusBarHeight.value = 0
} else {
const sysInfo = uni.getSystemInfoSync()
statusBarHeight.value = sysInfo.statusBarHeight
}
})
</script>
<style lang="scss" scoped>
.tui-navigation {
display: flex;
flex-direction: row;
align-items: center;
background: #EBF0F6;
min-height: 44px;
padding: 0 12px;
&-left {
.tui-navigation {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
gap: 8px;
flex: 1;
}
// background: #ebf0f6;
background: #fff;
min-height: 44px;
padding: 0 12px;
border-bottom: 2rpx solid #0000000a;
box-sizing: border-box;
&-title {
flex: 10;
text-align: center;
min-width: 0;
&-left {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 8px;
flex: 1;
}
&-text {
overflow: hidden;
word-break: keep-all;
text-overflow: ellipsis;
font-size: 18px;
font-weight: 600;
color: #333;
margin: 0;
&-title {
flex: 10;
text-align: center;
min-width: 0;
&-text {
overflow: hidden;
word-break: keep-all;
text-overflow: ellipsis;
font-size: 18px;
font-weight: 600;
color: #333;
margin: 0;
}
}
&-right {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
flex: 1;
}
&-back-btn {
display: flex;
align-items: center;
cursor: pointer;
opacity: 0.8;
}
&-back-text {
font-size: 16px;
color: #007aff;
}
}
&-right {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
flex: 1;
}
&-back-btn {
display: flex;
align-items: center;
cursor: pointer;
opacity: 0.8;
}
&-back-text {
font-size: 16px;
color: #007AFF;
}
}
</style>