[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"/>
<link rel="icon" type="image/svg+xml" href="/vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>酷猫</title>
<title>植趣</title>
</head>
<body>
<div id="app"></div>

View File

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

View File

@ -61,7 +61,7 @@ ol, ul {
}
body {
background: #F7F8F9;
background: #F8F9FB;
-webkit-text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@ -274,7 +274,7 @@ img {
.wrapper {
min-width: 1080px;
width: 70%;
width: 52%;
margin: 0 auto;
}
@ -493,6 +493,22 @@ img {
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: 10px;
}

View File

@ -6,9 +6,9 @@
<div class="flex flex-center pointer" @click="this.$router.push('/')">
<img
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 class="flex flex-center">
<div>
@ -65,7 +65,6 @@ export default {
const tmp = localStorage.getItem('user')
if (tmp) {
this.user = JSON.parse(tmp)
console.log('rrrr')
this.fetchNotice()
}
},

View File

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

View File

@ -2,7 +2,14 @@
<div>
<div style="background-color: red">
<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
class="row flex flex-center flex-justify-start pointer"
@ -10,7 +17,7 @@
>
<div class="flex flex-center">
<icon-home />
<div class="ml-10">
<div class="ml-10" >
{{ item.name }}
</div>
</div>
@ -58,7 +65,6 @@ export default {
})
},
goPath(res) {
console.log(res)
this.$router.push(res.value)
}
}
@ -70,27 +76,27 @@ export default {
position: fixed;
top: 0;
width: 200px;
padding-top: 32px;
bottom: 200px;
.row {
padding: 16rpx;
font-weight: bold;
font-size: 16px;
padding: 16px;
color:#4c4d4e;
border: none;
}
.row:hover {
color: #ab7630;
color: #4FAB5F;
font-weight: bold;
background-color: #f0f1f3;
}
.sub {
padding: 16px 62px;
border-bottom: 1px #f0f1f3 solid;
}
.sub:hover {
color: #ab7630;
color: #4FAB5F;
padding: 16px 62px;
background-color: #f0f1f3;
}

View File

@ -1,48 +1,46 @@
<template>
<div class="bg full-screen flex flex-center">
<div class="login-windows 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>
<a-card class="flex flex-center">
<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-item style="width: 360px" label="用户账号">
<a-form-item hide-label>
<a-input
v-model="form.account"
placeholder="请输入用户账号"
></a-input>
>
<template #prefix>
<icon-user />
</template>
</a-input>
</a-form-item>
<a-form-item style="width: 360px" label="登录密码">
<a-input
<a-form-item hide-label>
<a-input-password
v-model:visibility="visibility"
v-model="form.pwd"
type="password"
placeholder="请输入登录密码"
@press-enter="login"
></a-input>
allow-clear
>
<template #prefix>
<icon-lock />
</template>
</a-input-password>
</a-form-item>
</a-form>
<a-button
type="primary"
style="width: 360px; margin-top: 16px"
style="width: 340px; margin-top: 16px"
block
@click="login"
>登录
</a-button>
</div>
</div>
</a-card>
<div class="bottom">
<div>
Copyright © 2024-{{ new Date().getFullYear() }}
昆明酷猫科技有限公司 版权所有
科技有限公司 版权所有
</div>
<div class="mt-10">All Rights Reserved.</div>
</div>
@ -58,7 +56,8 @@ layout: 'empty',
</route>
<script>
import {md5} from "js-md5";
import { md5 } from 'js-md5'
export default {
data() {
return {
@ -66,6 +65,7 @@ export default {
account: '',
pwd: ''
},
visibility: true,
redirect: ''
}
},
@ -76,19 +76,19 @@ export default {
login() {
if (this.form.account && this.form.pwd) {
const data = { ...this.form }
console.log(md5(this.form.pwd))
this.$api.user.login(data).then(res => {
if (res.code === 200) {
const user = res.data
localStorage.setItem('user', JSON.stringify(user))
localStorage.setItem("token", user.token)
localStorage.setItem('token', user.token)
this.$router.push(this.redirect ? this.redirect : '/')
this.$message.success('登录成功')
} else {
this.$notification.error(res.msg)
this.$message.error(res.msg)
}
})
} else {
this.$notification.error('请按要求填写内容')
this.$message.error('请按要求填写内容')
}
}
}
@ -97,7 +97,7 @@ export default {
<style lang="scss" scoped>
.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-size: cover;
}

2867
yarn.lock

File diff suppressed because it is too large Load Diff