Skip to content

Commit 525a680

Browse files
committed
feat(about): about
1 parent c6d6998 commit 525a680

File tree

5 files changed

+63
-40
lines changed

5 files changed

+63
-40
lines changed
19.6 KB
Loading
Lines changed: 17 additions & 0 deletions
Loading

frontend/src/components/about/index.vue

Lines changed: 25 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup>
2-
import logo from '@/assets/svg/logo.svg'
3-
import aboutBg from '@/assets/img/about-bg.png'
2+
import aboutBg from '@/assets/embedded/LOGO-about.png'
3+
44
import { ref, reactive, onMounted } from 'vue'
55
import type { F2CLicense } from './index.ts'
66
import { licenseApi } from '@/api/license'
@@ -138,16 +138,13 @@ defineExpose({
138138
<template>
139139
<el-dialog
140140
v-model="dialogVisible"
141-
:append-to-body="true"
142141
:title="t('about.title')"
143142
width="840px"
144-
class="about-dialog"
143+
modal-class="about-dialog"
145144
>
146-
<img width="792" height="180" :src="aboutBg" />
147-
<div class="color-overlay"></div>
148-
<el-icon class="logo">
149-
<icon name="logo"><logo class="svg-icon" /></icon>
150-
</el-icon>
145+
<div class="color-overlay flex-center">
146+
<img width="368" height="84" :src="aboutBg" />
147+
</div>
151148
<div class="content">
152149
<div class="item">
153150
<div class="label">{{ $t('about.auth_to') }}</div>
@@ -163,12 +160,6 @@ defineExpose({
163160
{{ license.expired }}
164161
</div>
165162
</div>
166-
<div class="item">
167-
<div class="label">{{ $t('about.auth_num') }}</div>
168-
<div class="value">
169-
{{ license.status === 'valid' ? `${license.count} ${tipsSuffix}` : '' }}
170-
</div>
171-
</div>
172163
<div class="item">
173164
<div class="label">{{ $t('about.version') }}</div>
174165
<div class="value">
@@ -208,63 +199,59 @@ defineExpose({
208199
>
209200
<el-button plain> {{ $t('about.update_license') }} </el-button>
210201
</el-upload>
211-
<el-button plain @click="support"> {{ $t('about.support') }} </el-button>
212202
</div>
213203
</div>
204+
<div class="name">2014-2025 版权所有 © 杭州飞致云信息科技有限公司</div>
214205
</el-dialog>
215206
</template>
216207

217208
<style lang="less">
218209
.about-dialog {
219-
img {
220-
border-radius: 4px;
221-
border-bottom-left-radius: 0;
222-
border-bottom-right-radius: 0;
223-
}
224210
.color-overlay {
225-
position: absolute;
226-
border-radius: 4px;
227-
width: 792px;
211+
border-top-left-radius: 6px;
212+
border-top-right-radius: 6px;
213+
background: #1cba901a;
214+
border: 1px solid #dee0e3;
215+
border-bottom: 0;
228216
height: 180px;
229-
top: 72px;
230-
background-color: #7394f0;
231-
mix-blend-mode: multiply;
232217
}
233-
.logo {
234-
font-size: 400px;
235-
position: absolute;
236-
top: -40px;
237-
left: 228px;
238-
color: #fff;
218+
219+
.name {
220+
font-weight: 400;
221+
font-size: 12px;
222+
line-height: 22px;
223+
text-align: center;
224+
margin-top: 16px;
225+
color: #8F959E;
239226
}
240227
241228
.content {
242-
border-radius: 4px;
229+
border-radius: 6px;
243230
border: 1px solid #dee0e3;
244231
border-top-left-radius: 0;
245232
border-top-right-radius: 0;
233+
border-top: 0;
246234
padding: 24px 40px;
247-
margin-top: -7px;
248235
249236
.item {
250-
font-family: var(--de-custom_font, 'PingFang');
251237
font-size: 16px;
252238
font-style: normal;
253239
font-weight: 400;
254240
line-height: 24px;
255241
margin-bottom: 16px;
256242
display: flex;
243+
font-weight: 400;
257244
.expired-mark {
258245
color: red;
259246
}
260247
.label {
261248
color: #646a73;
262-
width: 300px;
249+
width: 240px;
263250
}
264251
265252
.value {
266253
margin-left: 24px;
267-
max-width: 388px;
254+
max-width: 448px;
268255
}
269256
}
270257
}

frontend/src/components/layout/Person.vue

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@
22
import { ref, computed } from 'vue'
33
import Default_avatar from '@/assets/workspace/default_avatar.png'
44
import icon_admin_outlined from '@/assets/svg/icon_admin_outlined.svg'
5+
import icon_info_outlined_1 from '@/assets/svg/icon_info_outlined_1.svg'
6+
57
import icon_maybe_outlined from '@/assets/svg/icon-maybe_outlined.svg'
68
import icon_key_outlined from '@/assets/svg/icon-key_outlined.svg'
79
import icon_translate_outlined from '@/assets/svg/icon_translate_outlined.svg'
810
import icon_logout_outlined from '@/assets/svg/icon_logout_outlined.svg'
911
import icon_right_outlined from '@/assets/svg/icon_right_outlined.svg'
12+
import AboutDialog from '@/components/about/index.vue'
1013
import icon_done_outlined from '@/assets/svg/icon_done_outlined.svg'
1114
import { useI18n } from 'vue-i18n'
1215
import PwdForm from './PwdForm.vue'
1316
import { useRouter } from 'vue-router'
1417
import { useUserStore } from '@/stores/user'
1518
import { userApi } from '@/api/auth'
19+
1620
const router = useRouter()
1721
const userStore = useUserStore()
1822
const pwdFormRef = ref()
@@ -27,7 +31,7 @@ const account = computed(() => userStore.getAccount)
2731
const currentLanguage = computed(() => userStore.getLanguage)
2832
const isAdmin = computed(() => userStore.isAdmin)
2933
const dialogVisible = ref(false)
30-
34+
const aboutRef = ref()
3135
const languageList = [
3236
{
3337
name: 'English',
@@ -63,6 +67,10 @@ const openPwd = () => {
6367
const closePwd = () => {
6468
dialogVisible.value = false
6569
}
70+
71+
const toAbout = () => {
72+
aboutRef.value?.open()
73+
}
6674
const savePwdHandler = () => {
6775
pwdFormRef.value?.submit()
6876
}
@@ -126,7 +134,12 @@ const logout = () => {
126134
</div>
127135
</div>
128136
</el-popover>
129-
137+
<div class="popover-item" @click="toAbout">
138+
<el-icon size="16">
139+
<icon_info_outlined_1></icon_info_outlined_1>
140+
</el-icon>
141+
<div class="datasource-name">{{ $t('about.title') }}</div>
142+
</div>
130143
<div class="popover-item">
131144
<el-icon size="16">
132145
<icon_maybe_outlined></icon_maybe_outlined>
@@ -152,6 +165,7 @@ const logout = () => {
152165
</div>
153166
</template>
154167
</el-dialog>
168+
<AboutDialog ref="aboutRef" />
155169
</template>
156170

157171
<style lang="less" scoped>

frontend/src/style.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
--ed-color-primary-1a: #1cba901a;
3333
--ed-color-primary-light-5: #3ec4a1 !important;
3434
--ed-border-color: #d9dcdf !important;
35+
--ed-color-primary-light-7: #d2f1e9 !important;
3536
}
3637

3738
a {
@@ -205,3 +206,7 @@ em {
205206
strong {
206207
font-synthesis: style weight !important;
207208
}
209+
210+
.ed-button.is-plain:active {
211+
background-color: #a4e3d3 !important;
212+
}

0 commit comments

Comments
 (0)