style(system): agreement

This commit is contained in:
Timi
2026-11-13 15:11:53 +08:00
parent 7cb4836b40
commit 3e2e8ece49
+5 -24
View File
@@ -1,5 +1,5 @@
<template> <template>
<div class="tui-page-layout tui-navbar"> <div class="tui-page-layout tui-navbar agreement">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -7,8 +7,7 @@
left-arrow left-arrow
@left-click="goBack" @left-click="goBack"
/> />
<main class="tui-page-content scroll column"> <main class="tui-page-content scroll column bg-white">
<div class="agreement-page">
<template v-if="article"> <template v-if="article">
<header class="header" v-entrance-transition> <header class="header" v-entrance-transition>
<h3 v-text="article.title || '协议'" /> <h3 v-text="article.title || '协议'" />
@@ -22,13 +21,13 @@
:article="article" :article="article"
empty-text="暂无协议正文" empty-text="暂无协议正文"
:resolve-attachment-url="resolveAttachmentUrl" :resolve-attachment-url="resolveAttachmentUrl"
v-entrance-transition
/> />
</template> </template>
<t-empty <t-empty
v-else v-else
:description="isLoading ? '正在加载协议' : '协议不存在'" :description="isLoading ? '正在加载协议' : '协议不存在'"
/> />
</div>
</main> </main>
</div> </div>
</template> </template>
@@ -110,24 +109,20 @@ watch(() => props.articleId || route.params.id, async () => {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.agreement-page { .agreement {
padding: 0 0 1rem 0;
.header { .header {
padding: .5rem 1rem; padding: 0 1rem;
h3 { h3 {
color: #0f172a; color: #0f172a;
margin: 0; margin: 0;
text-align: center; text-align: center;
line-height: 1.4;
} }
.description { .description {
color: #52607a; color: #52607a;
font-size: .875rem; font-size: .875rem;
margin-top: .5rem;
line-height: 1.7;
} }
} }
@@ -135,18 +130,4 @@ watch(() => props.articleId || route.params.id, async () => {
border: none; border: none;
} }
} }
:global(html.theme-dark) {
.agreement-page {
.header {
h1 {
color: #e2e8f0;
}
.description {
color: #94a3b8;
}
}
}
}
</style> </style>