[add] UI 修改

This commit is contained in:
sdaduanbilei-d1581 2025-09-16 16:23:30 +08:00
parent e8f34b691d
commit 569785e983
8 changed files with 1314 additions and 1688 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8"/> <meta charset="UTF-8"/>
<link rel="icon" type="image/svg+xml" href="/vite.svg"/> <link rel="icon" type="image/svg+xml" href="/vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>酷猫</title> <title>植趣</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -1,5 +1,5 @@
{ {
"name": "wt_workbench_web", "name": "plane-web-admin",
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",

View File

@ -61,7 +61,7 @@ ol, ul {
} }
body { body {
background: #F7F8F9; background: #F8F9FB;
-webkit-text-size-adjust: none; -webkit-text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
} }
@ -274,7 +274,7 @@ img {
.wrapper { .wrapper {
min-width: 1080px; min-width: 1080px;
width: 70%; width: 52%;
margin: 0 auto; margin: 0 auto;
} }
@ -493,6 +493,22 @@ img {
margin-left: 20px; margin-left: 20px;
} }
.mt-32 {
margin-top: 32px;
}
.mr-32 {
margin-right: 32px;
}
.mb-32 {
margin-bottom: 32px;
}
.ml-32 {
margin-left: 32px;
}
.padding { .padding {
padding: 10px; padding: 10px;
} }

View File

@ -6,9 +6,9 @@
<div class="flex flex-center pointer" @click="this.$router.push('/')"> <div class="flex flex-center pointer" @click="this.$router.push('/')">
<img <img
style="height: 48px" style="height: 48px"
src="https://res.catter.cn/kaka/2024/03/06/1709709484624.jpg" src="../assets/vue.svg"
/> />
<h2 class="ml-15">酷猫工作台</h2> <h2 class="ml-15">工作台</h2>
</div> </div>
<div class="flex flex-center"> <div class="flex flex-center">
<div> <div>
@ -65,7 +65,6 @@ export default {
const tmp = localStorage.getItem('user') const tmp = localStorage.getItem('user')
if (tmp) { if (tmp) {
this.user = JSON.parse(tmp) this.user = JSON.parse(tmp)
console.log('rrrr')
this.fetchNotice() this.fetchNotice()
} }
}, },

View File

@ -1,18 +1,14 @@
<template> <template>
<a-layout class="full-screen"> <a-layout class="full-screen">
<a-layout-header class="header">
<xheader />
</a-layout-header>
<a-layout-sider <a-layout-sider
hide-trigger hide-trigger
style="background-color: transparent; width: 220px" style="background-color: transparent; width: 220px; border: none"
> >
<div class="padding"> <div class="padding">
<left /> <left />
</div> </div>
</a-layout-sider> </a-layout-sider>
<a-layout style="padding: 0 24px; margin-top: 78px"> <a-layout >
<a-layout-content class="wrapper"> <a-layout-content class="wrapper">
<router-view /> <router-view />
</a-layout-content> </a-layout-content>
@ -23,12 +19,10 @@
import { defineComponent, ref } from 'vue' import { defineComponent, ref } from 'vue'
import { Message } from '@arco-design/web-vue' import { Message } from '@arco-design/web-vue'
import Left from '@/layout/left.vue' import Left from '@/layout/left.vue'
import xheader from '@/layout/header.vue'
export default defineComponent({ export default defineComponent({
components: { components: {
Left, Left,
xheader
}, },
setup() { setup() {
const collapsed = ref(false) const collapsed = ref(false)
@ -45,18 +39,8 @@ export default defineComponent({
} }
}) })
</script> </script>
<style scoped> <style lang="scss" scoped>
.header { :deep(.arco-layout-sider-light) {
width: 100vw; box-shadow: none;
position: fixed;
z-index: 3;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
background-color: white;
}
.other {
position: relative;
top: 60px;
height: calc(100vh - 60px);
} }
</style> </style>

View File

@ -2,7 +2,14 @@
<div> <div>
<div style="background-color: red"> <div style="background-color: red">
<div class="menu"> <div class="menu">
<div class="mt-20" style="margin-top: 48px"> <div class="flex flex-center flex-justify-start mt-32 ml-15">
<img
style="height:24px;"
src="../assets/vue.svg"
/>
<p class="font-16 bold">工作台</p>
</div>
<div class="mt-20" >
<div v-for="item in list" :key="item.id"> <div v-for="item in list" :key="item.id">
<div <div
class="row flex flex-center flex-justify-start pointer" class="row flex flex-center flex-justify-start pointer"
@ -10,7 +17,7 @@
> >
<div class="flex flex-center"> <div class="flex flex-center">
<icon-home /> <icon-home />
<div class="ml-10"> <div class="ml-10" >
{{ item.name }} {{ item.name }}
</div> </div>
</div> </div>
@ -58,7 +65,6 @@ export default {
}) })
}, },
goPath(res) { goPath(res) {
console.log(res)
this.$router.push(res.value) this.$router.push(res.value)
} }
} }
@ -70,27 +76,27 @@ export default {
position: fixed; position: fixed;
top: 0; top: 0;
width: 200px; width: 200px;
padding-top: 32px;
bottom: 200px; bottom: 200px;
.row { .row {
padding: 16rpx; font-size: 16px;
font-weight: bold; padding: 16px;
color:#4c4d4e;
border: none;
} }
.row:hover { .row:hover {
color: #ab7630; color: #4FAB5F;
font-weight: bold; font-weight: bold;
background-color: #f0f1f3; background-color: #f0f1f3;
} }
.sub { .sub {
padding: 16px 62px; padding: 16px 62px;
border-bottom: 1px #f0f1f3 solid;
} }
.sub:hover { .sub:hover {
color: #ab7630; color: #4FAB5F;
padding: 16px 62px; padding: 16px 62px;
background-color: #f0f1f3; background-color: #f0f1f3;
} }

View File

@ -1,48 +1,46 @@
<template> <template>
<div class="bg full-screen flex flex-center"> <div class="bg full-screen flex flex-center">
<div class="login-windows flex flex-center"> <a-card class="flex flex-center">
<div>
<img
style="
height: 460px;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
"
src="https://res.catter.cn/pub/2025/05/04/202505041750998.svg"
/>
</div>
<div style="padding: 32px"> <div style="padding: 32px">
<h1 style="padding-bottom: 32px">👏 欢迎使用酷猫工作台</h1> <h1 style="padding-bottom: 32px">👏 欢迎登录工作台</h1>
<a-form :model="form" auto-label-width> <a-form :model="form" auto-label-width>
<a-form-item style="width: 360px" label="用户账号"> <a-form-item hide-label>
<a-input <a-input
v-model="form.account" v-model="form.account"
placeholder="请输入用户账号" placeholder="请输入用户账号"
></a-input> >
<template #prefix>
<icon-user />
</template>
</a-input>
</a-form-item> </a-form-item>
<a-form-item style="width: 360px" label="登录密码"> <a-form-item hide-label>
<a-input <a-input-password
v-model:visibility="visibility"
v-model="form.pwd" v-model="form.pwd"
type="password"
placeholder="请输入登录密码" placeholder="请输入登录密码"
@press-enter="login" @press-enter="login"
></a-input> allow-clear
>
<template #prefix>
<icon-lock />
</template>
</a-input-password>
</a-form-item> </a-form-item>
</a-form> </a-form>
<a-button <a-button
type="primary" type="primary"
style="width: 360px; margin-top: 16px" style="width: 340px; margin-top: 16px"
block block
@click="login" @click="login"
>登录 >登录
</a-button> </a-button>
</div> </div>
</div> </a-card>
<div class="bottom"> <div class="bottom">
<div> <div>
Copyright © 2024-{{ new Date().getFullYear() }} Copyright © 2024-{{ new Date().getFullYear() }}
昆明酷猫科技有限公司 版权所有 科技有限公司 版权所有
</div> </div>
<div class="mt-10">All Rights Reserved.</div> <div class="mt-10">All Rights Reserved.</div>
</div> </div>
@ -58,7 +56,8 @@ layout: 'empty',
</route> </route>
<script> <script>
import {md5} from "js-md5"; import { md5 } from 'js-md5'
export default { export default {
data() { data() {
return { return {
@ -66,6 +65,7 @@ export default {
account: '', account: '',
pwd: '' pwd: ''
}, },
visibility: true,
redirect: '' redirect: ''
} }
}, },
@ -76,19 +76,19 @@ export default {
login() { login() {
if (this.form.account && this.form.pwd) { if (this.form.account && this.form.pwd) {
const data = { ...this.form } const data = { ...this.form }
console.log(md5(this.form.pwd))
this.$api.user.login(data).then(res => { this.$api.user.login(data).then(res => {
if (res.code === 200) { if (res.code === 200) {
const user = res.data const user = res.data
localStorage.setItem('user', JSON.stringify(user)) localStorage.setItem('user', JSON.stringify(user))
localStorage.setItem("token", user.token) localStorage.setItem('token', user.token)
this.$router.push(this.redirect ? this.redirect : '/') this.$router.push(this.redirect ? this.redirect : '/')
this.$message.success('登录成功')
} else { } else {
this.$notification.error(res.msg) this.$message.error(res.msg)
} }
}) })
} else { } else {
this.$notification.error('请按要求填写内容') this.$message.error('请按要求填写内容')
} }
} }
} }
@ -97,7 +97,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.bg { .bg {
background-image: url('https://res.catter.cn/kaka/2024/01/20/202401201712597.jpg'); background-image: url('https://static.tdesign.tencent.com/starter/vue/assets/assets-login-bg-white-439b0654.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
} }

2867
yarn.lock

File diff suppressed because it is too large Load Diff