style(system): agreement

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