style(system): agreement
This commit is contained in:
@@ -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,28 +7,27 @@
|
|||||||
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 || '协议'" />
|
<markdown-view
|
||||||
<markdown-view
|
v-if="article.description"
|
||||||
v-if="article.description"
|
class="description"
|
||||||
class="description"
|
:content="article.description"
|
||||||
:content="article.description"
|
|
||||||
/>
|
|
||||||
</header>
|
|
||||||
<article-view
|
|
||||||
:article="article"
|
|
||||||
empty-text="暂无协议正文"
|
|
||||||
:resolve-attachment-url="resolveAttachmentUrl"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</header>
|
||||||
<t-empty
|
<article-view
|
||||||
v-else
|
:article="article"
|
||||||
:description="isLoading ? '正在加载协议' : '协议不存在'"
|
empty-text="暂无协议正文"
|
||||||
|
:resolve-attachment-url="resolveAttachmentUrl"
|
||||||
|
v-entrance-transition
|
||||||
/>
|
/>
|
||||||
</div>
|
</template>
|
||||||
|
<t-empty
|
||||||
|
v-else
|
||||||
|
:description="isLoading ? '正在加载协议' : '协议不存在'"
|
||||||
|
/>
|
||||||
</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>
|
||||||
|
|||||||
Reference in New Issue
Block a user