feat(projects): 分析页更新,添加关于页面

This commit is contained in:
Soybean
2021-11-04 23:11:20 +08:00
parent 7527b1f07c
commit 8e18218196
44 changed files with 1623 additions and 617 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="flex-center flex-col w-full h-full">
<div class="flex-center flex-col wh-full">
<exception-svg type="403" :color="theme.themeColor" />
<router-link to="/">
<n-button type="primary">回到首页</n-button>

View File

@ -1,5 +1,5 @@
<template>
<div class="flex-center flex-col w-full h-full">
<div class="flex-center flex-col wh-full">
<exception-svg type="404" :color="theme.themeColor" />
<router-link to="/">
<n-button type="primary">回到首页</n-button>

View File

@ -1,5 +1,5 @@
<template>
<div class="flex-center flex-col w-full h-full">
<div class="flex-center flex-col wh-full">
<exception-svg type="500" :color="theme.themeColor" />
<router-link to="/">
<n-button type="primary">回到首页</n-button>

View File

@ -35,18 +35,20 @@ import { reactive, ref } from 'vue';
import { NForm, NFormItem, NInput, NSpace, NCheckbox, NButton, useNotification } from 'naive-ui';
import type { FormInst, FormRules } from 'naive-ui';
import { EnumLoginModule } from '@/enum';
import { useAuthStore } from '@/store';
import { useRouterChange, useRouteQuery, useLoading } from '@/hooks';
import { setToken } from '@/utils';
import { OtherLogin } from './components';
const notification = useNotification();
const auth = useAuthStore();
const { toHome, toCurrentLogin, toLoginRedirectUrl } = useRouterChange();
const { loginRedirectUrl } = useRouteQuery();
const { loading, startLoading, endLoading } = useLoading();
const notification = useNotification();
const formRef = ref<(HTMLElement & FormInst) | null>(null);
const model = reactive({
phone: '15100000000',
phone: '151****3876',
pwd: '123456'
});
const rules: FormRules = {
@ -78,9 +80,10 @@ function handleSubmit(e: MouseEvent) {
} else {
toHome();
}
const { userName } = auth.userInfo;
notification.success({
title: '登录成功!',
content: '欢迎回来,Soybean!',
content: `欢迎回来,${userName}!`,
duration: 3000
});
}, 1000);

View File

@ -1,9 +1,9 @@
<template>
<div class="login-bg relative flex-center w-full h-full">
<div class="login-bg relative flex-center wh-full">
<shadow-card class="w-400px p-40px !rounded-20px z-10">
<header class="flex-y-center justify-between">
<div class="w-70px h-70px rounded-35px overflow-hidden">
<system-logo class="w-full h-full" :fill="true" :color="theme.themeColor" />
<system-logo class="wh-full" :fill="true" :color="theme.themeColor" />
</div>
<n-gradient-text type="primary" :size="28">{{ title }}</n-gradient-text>
</header>