From 3f9b13020aaa7ae472300321650f8b0e2bd2ace1 Mon Sep 17 00:00:00 2001 From: mixtan <424491071@qq.com> Date: Mon, 16 Jun 2025 14:55:34 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E9=87=8D=E6=9E=84=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=8C=85=E5=90=ABlogo=E3=80=81PC=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E3=80=81=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E3=80=81=E7=99=BB=E5=BD=95=E6=B3=A8=E5=86=8C=E5=BC=80=E5=BA=97?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BA=A4=E4=BA=92=EF=BC=9B=E5=B9=B2=E6=8E=89?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E7=9A=84index=E5=85=A8=E5=B1=80=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E5=85=A8=E9=83=A8=E6=8C=AA=E5=88=B0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=87=8C=E9=9D=A2=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 3 + src/assets/css/index.css | 214 ------------------- src/components/register.vue | 2 +- src/views/HeadMenu.vue | 406 ++++++++++++++++++++---------------- src/views/index/banner.vue | 28 ++- src/views/index/company.vue | 23 +- src/views/index/service.vue | 119 +++++++---- src/views/index/slider.vue | 4 +- src/views/start/check.vue | 13 ++ 9 files changed, 370 insertions(+), 442 deletions(-) diff --git a/components.d.ts b/components.d.ts index ed2531c..6b2082f 100644 --- a/components.d.ts +++ b/components.d.ts @@ -18,6 +18,9 @@ declare module 'vue' { ElCol: typeof import('element-plus/es')['ElCol'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDropdown: typeof import('element-plus/es')['ElDropdown'] + ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] + ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElIcon: typeof import('element-plus/es')['ElIcon'] diff --git a/src/assets/css/index.css b/src/assets/css/index.css index 0dcdcc1..783303a 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -76,217 +76,3 @@ html{ color: inherit; background: inherit; } - -/* 页面头部 */ -.header { - height: 70px; -} -/* 固定定位*/ -.header-list { - width: 100%; - height: 70px; - background-color: #fff; - box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1); - z-index: 1000; -} -.header-list .el-row{ - width: 100%; - max-width: 1440px; - margin: auto; -} -.header-top { - max-width: 1440px; - width: 100%; - height: 70px; - margin: auto; - display: flex; - justify-content: center; - align-items: center; -} - -/* logo */ -.logo { - width: 60px; - padding-left: 20px; -} -.logo a { - background: url("../../assets/image/logo.jpg") no-repeat; - width: 48px; - height: 48px; - border-radius: 5px; - display: inline-block; - background-size: contain; - outline: none; -} - -/*头部导航*/ -.header-top ul { - flex: 1; - display: flex; - line-height: 60px; -} -.header-menu { - display: flex; -} -.header-menu li { - margin: 0 30px; - list-style: none; - position: relative; - color: #333; -} - -.header-menu a { - text-decoration: none; - color: inherit; -} -.header-menu li span { - font-size: 16px; -} -/* 伪元素添加下滑选中线 */ -.header-menu li:hover span, -.header-menu .router-link-active span -{ - color: var(--bgcolor); -} -/*TODO 记得搞一个导航active的*/ -.header-menu li::before - { - content: ""; - position: absolute; - bottom: 0px; - left: 50%; - width: 0; - height: 100%; - border-bottom: 3px solid var(--bgcolor); - transition: all 0.2s; -} - -.header-menu li:hover::before, -.header-menu .router-link-active li::before - { - content: ""; - left: 0; - width: 100%; -} - -.header-right { - display: flex; - justify-content: flex-end; -} - -.header-right .start { - margin-right: 20px; -} -.header-right .start .start-button { - background-color: black; - border-radius: 20px; -} -.header-right .login{ - margin-right: 20px; -} -.header-right .login .login-button { -} -.header-right .logout { - margin-right: 20px; -} -.header-right .logout .logout-button { - border: none; -} - -/*公司*/ -.company-detail { - display: flex; -} -.company-detail img { - width: 100%; - height: 100%; - object-fit: cover; - padding-right:20px; -} -.company-introduce { - padding: 20px; - letter-spacing: 2px; - line-height: 34px; - padding-bottom: 0; -} - -/*轮播图*/ -.banner-list { - width: 100%; - max-width: 1200px; - margin: auto; - position: relative; -} -.banner-list .el-carousel__container { - width: 100%; - padding-bottom: 50%; /* 高度自适应宽度的一半 */ - position: relative; -} -.banner-list .el-carousel__item { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -.banner-list .el-carousel__item img { - width: 100%; - height: 100%; - object-fit: cover; -} -/*服务*/ -.container-bg { - padding: 50px 0; -} - -.service-contain { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - width: 100%; - padding-top: 30px; -} -.service-list { - width: 100%; -} -.service-list ul { - display: flex; - flex-wrap: wrap; - gap: 20px; - justify-content: center; - align-items: center; - width: 100%; -} -.service-list ul li { - list-style: none; - width: 30%; - height: 211.6px; - padding: 30px 20px; - text-align: center; - box-shadow: 0 15px 25px 0 rgba(0, 0, 0, 0.1); - border-radius: 10px; -} -.service-list ul li i::before { - font-size: 70px; - color: #353535; - transition: 0.3s; -} -.service-list ul li h4 { - font-size: 26px; - font-weight: 500; - margin-top: 10px; - transition: 0.3s; -} -.service-list ul li:hover { - background: linear-gradient(90.54deg, #ec4b2b 0.42%, #f85535 102.71%); -} -.service-list ul li:hover i::before { - color: #fff; -} -.service-list ul li:hover h4 { - color: #fff; -} -.service-list ul li:hover i::before p { - color: #fff; -} diff --git a/src/components/register.vue b/src/components/register.vue index 68b3750..6a4a3cf 100644 --- a/src/components/register.vue +++ b/src/components/register.vue @@ -158,7 +158,7 @@ const register = async () => { if (approvalRes.data.code === 0 && approvalRes.data.status === 200) { const approvalStatus = approvalRes.data.approval_status; localStorage.setItem("approval_status", approvalStatus); - if (approvalStatus == "4") { + if (approvalStatus == "4" || approvalRes.data==null) { router.push({ name: "start" }); } else { router.push({ name: "check" }); diff --git a/src/views/HeadMenu.vue b/src/views/HeadMenu.vue index c233217..318951f 100644 --- a/src/views/HeadMenu.vue +++ b/src/views/HeadMenu.vue @@ -1,131 +1,161 @@ - \ No newline at end of file + diff --git a/src/views/index/banner.vue b/src/views/index/banner.vue index 4181041..99e1719 100644 --- a/src/views/index/banner.vue +++ b/src/views/index/banner.vue @@ -32,11 +32,33 @@ ] \ No newline at end of file diff --git a/src/views/index/company.vue b/src/views/index/company.vue index 890cf8c..6b3012f 100644 --- a/src/views/index/company.vue +++ b/src/views/index/company.vue @@ -59,26 +59,37 @@ text-indent: 2em; } - .index-title { width: 1200px; text-align: center; margin: auto; h3 { - font-size: 40px; -} + font-size: 40px; + } -p{ + p { font-size: 20px; -} - + } } .company-detail { + display: flex; width: 1200px; margin: 15px auto 0; } +.company-detail img { + width: 100%; + height: 100%; + object-fit: cover; + padding-right: 20px; +} +.company-introduce { + padding: 20px; + letter-spacing: 2px; + line-height: 34px; + padding-bottom: 0; +} @media (max-width: 768px) { .index-title { diff --git a/src/views/index/service.vue b/src/views/index/service.vue index db438da..a257d25 100644 --- a/src/views/index/service.vue +++ b/src/views/index/service.vue @@ -1,47 +1,96 @@ - \ No newline at end of file diff --git a/src/views/index/slider.vue b/src/views/index/slider.vue index 03d5f9d..d83dfc2 100644 --- a/src/views/index/slider.vue +++ b/src/views/index/slider.vue @@ -164,8 +164,8 @@ const formatter2 = (value: number) => { .sub { position: absolute; - top: 65%; - transform: translateY(65%); + top: 58%; + transform: translateY(58%); left: 150px; } } diff --git a/src/views/start/check.vue b/src/views/start/check.vue index c78ce07..69b3769 100644 --- a/src/views/start/check.vue +++ b/src/views/start/check.vue @@ -174,6 +174,7 @@