feat ui设计稿bug修复
This commit is contained in:
@@ -3,12 +3,13 @@ import { useSiteStore } from '@/stores/modules/site'
|
||||
|
||||
const siteStore = useSiteStore()
|
||||
|
||||
// 设计稿快速导航列原文:首页 / 案例中心 / 需求提报 / 下载 APP / 帮助中心
|
||||
const quickLinks = [
|
||||
{ label: '首页', path: '/' },
|
||||
{ label: '案例库', path: '/cases' },
|
||||
{ label: '案例中心', path: '/cases' },
|
||||
{ label: '需求提报', path: '/demand' },
|
||||
{ label: '下载 APP', path: '/' },
|
||||
{ label: '消息中心', path: '/message' },
|
||||
{ label: '帮助中心', path: '/profile/help' },
|
||||
]
|
||||
|
||||
const coreBusiness = [
|
||||
@@ -22,7 +23,7 @@ const coreBusiness = [
|
||||
|
||||
<template>
|
||||
<footer class="app-footer">
|
||||
<div class="app-footer__inner container">
|
||||
<div class="app-footer__inner">
|
||||
<div class="app-footer__about">
|
||||
<div class="app-footer__brand">
|
||||
<span class="app-footer__name">虫子智造</span>
|
||||
@@ -32,7 +33,7 @@ const coreBusiness = [
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="app-footer__col">
|
||||
<div class="app-footer__col app-footer__col--core">
|
||||
<h4 class="app-footer__title">
|
||||
核心业务
|
||||
</h4>
|
||||
@@ -43,7 +44,7 @@ const coreBusiness = [
|
||||
>{{ item }}</span>
|
||||
</div>
|
||||
|
||||
<div class="app-footer__col">
|
||||
<div class="app-footer__col app-footer__col--nav">
|
||||
<h4 class="app-footer__title">
|
||||
快速导航
|
||||
</h4>
|
||||
@@ -57,7 +58,7 @@ const coreBusiness = [
|
||||
</RouterLink>
|
||||
</div>
|
||||
|
||||
<div class="app-footer__col">
|
||||
<div class="app-footer__col app-footer__col--contact">
|
||||
<h4 class="app-footer__title">
|
||||
联系我们
|
||||
</h4>
|
||||
@@ -72,7 +73,7 @@ const coreBusiness = [
|
||||
<p class="app-footer__legal">
|
||||
©2026 虫子智造 研发智造一体化平台 版权所有|自营研发生产平台,所有项目源码、图纸受平台知识产权保护,禁止盗用、复制、二次分发
|
||||
</p>
|
||||
<p class="app-footer__legal">
|
||||
<p class="app-footer__legal app-footer__legal--icp">
|
||||
{{ siteStore.siteInfo.icp }} | {{ siteStore.siteInfo.police }}
|
||||
</p>
|
||||
</div>
|
||||
@@ -80,54 +81,76 @@ const coreBusiness = [
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 设计稿页脚 1920×481(首页稿 y1942→2423):
|
||||
// 列区 y1996 起(页脚顶 +54),四列 x155/922/1257/1511,列宽 625/193/80/253
|
||||
// 品牌名「虫子智造」@x200(相对列缩进 45),描述 @x155
|
||||
// 版权区:©行 @x526(867 盒在 1920 画布居中)、ICP 行 @x841(相对 867 盒缩进 315),均左对齐
|
||||
.app-footer {
|
||||
background: @footer-bg;
|
||||
color: @white;
|
||||
|
||||
&__inner {
|
||||
.flex(row, space-between, flex-start);
|
||||
gap: @spacing-xl;
|
||||
padding-top: @spacing-xxl;
|
||||
padding-left: @footer-inset;
|
||||
padding-right: @footer-inset;
|
||||
.flex(row, flex-start, flex-start);
|
||||
width: 100%;
|
||||
max-width: 1920px;
|
||||
height: 332px; // 页脚顶 → © 行(y1942→2274)
|
||||
box-sizing: border-box;
|
||||
padding-top: 54px;
|
||||
padding-left: clamp(@spacing-base, calc((100% - 1609px) / 2), 155px); // 设计内容 x155→1764 = 1609 宽
|
||||
overflow: hidden; // 防列内容撑出横向滚动
|
||||
}
|
||||
|
||||
&__about {
|
||||
max-width: 480px;
|
||||
flex: 0 1 625px; // x155 → 780
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
&__brand {
|
||||
.flex(row, flex-start);
|
||||
margin-bottom: @spacing-base;
|
||||
margin-bottom: 20px; // 品牌名盒底 2037 → 描述 2057
|
||||
margin-left: 45px; // 设计:品牌名 @x200,列起点 x155
|
||||
}
|
||||
|
||||
&__name {
|
||||
font-size: @font-size-title;
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
line-height: 41px;
|
||||
color: @white;
|
||||
}
|
||||
|
||||
&__desc {
|
||||
margin-top: @spacing-sm;
|
||||
font-size: @font-size-sm;
|
||||
line-height: 1.8;
|
||||
margin-top: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 23px; // 设计 625×115 五行
|
||||
}
|
||||
|
||||
&__col {
|
||||
.flex(column, flex-start);
|
||||
gap: @spacing-sm;
|
||||
.flex(column, flex-start, flex-start); // 第三参必须显式:mixin 默认 center 会把列项水平居中
|
||||
gap: 0;
|
||||
min-width: 0;
|
||||
|
||||
// 设计列位:核心业务 @922(列宽 193)、快速导航 @1257(80)、联系我们 @1511(253)
|
||||
// 用 modifier 类定位;:nth-of-type 按标签序号计数(about 也算 div),会整体错位一档
|
||||
&--core { flex: 0 0 193px; margin-left: 142px; }
|
||||
&--nav { flex: 0 0 80px; margin-left: 142px; }
|
||||
&--contact { flex: 0 0 253px; margin-left: 174px; }
|
||||
}
|
||||
|
||||
&__title {
|
||||
margin-bottom: @spacing-sm;
|
||||
font-size: @font-size-title;
|
||||
margin-bottom: 20px; // 标题盒底 2037 → 列表 2057
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
line-height: 41px;
|
||||
white-space: nowrap;
|
||||
color: @white;
|
||||
}
|
||||
|
||||
&__link {
|
||||
font-size: @font-size-sm;
|
||||
line-height: 1.5;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 23px; // 设计 5 项 115 高
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s;
|
||||
|
||||
@@ -137,20 +160,32 @@ const coreBusiness = [
|
||||
}
|
||||
|
||||
&__contact {
|
||||
font-size: @font-size-sm;
|
||||
line-height: 1.8;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 23px;
|
||||
}
|
||||
|
||||
// 版权 / 备案:设计稿为页脚底部居中两行
|
||||
// 版权区:867 盒在画布居中(1920 视口 → x526),盒内文字左对齐;ICP 缩进 315(→ x841)
|
||||
&__bottom {
|
||||
padding: @spacing-xxl @footer-inset;
|
||||
text-align: center;
|
||||
width: 867px;
|
||||
max-width: calc(100% - 32px);
|
||||
margin: 0 auto;
|
||||
padding-bottom: 87px; // ICP 盒底 2336 → 页脚底 2423
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&__legal {
|
||||
font-size: @font-size-sm;
|
||||
line-height: 1.8;
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 23px;
|
||||
white-space: nowrap; // 设计稿单行(867×23),回退字体偏宽防折行
|
||||
color: @white;
|
||||
|
||||
&--icp {
|
||||
margin-top: 16px; // © 盒底 2297 → ICP 2313
|
||||
margin-left: 315px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useMessageStore } from '@/stores/modules/message'
|
||||
|
||||
interface NavItem {
|
||||
label: string
|
||||
path: string
|
||||
}
|
||||
|
||||
// 设计稿页头(43 张稿一致):无 logo 文字,导航首项 x275(间隙 94),
|
||||
// 右侧两枚 106×36 胶囊(快捷提报 x1559 / 在线客服 x1694,右缘 1800)
|
||||
const navItems: NavItem[] = [
|
||||
{ label: '首页', path: '/' },
|
||||
{ label: '案例库', path: '/cases' },
|
||||
@@ -17,20 +15,11 @@ const navItems: NavItem[] = [
|
||||
{ label: '财务中心', path: '/finance' },
|
||||
{ label: '个人中心', path: '/profile' },
|
||||
]
|
||||
|
||||
const messageStore = useMessageStore()
|
||||
const { unreadCount } = storeToRefs(messageStore)
|
||||
|
||||
onMounted(() => void messageStore.fetchUnreadCount())
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<header class="app-header">
|
||||
<div class="app-header__inner container">
|
||||
<RouterLink to="/" class="app-header__logo">
|
||||
<span class="app-header__logo-text">虫子智造</span>
|
||||
</RouterLink>
|
||||
|
||||
<div class="app-header__inner">
|
||||
<nav class="app-header__nav">
|
||||
<RouterLink
|
||||
v-for="item in navItems"
|
||||
@@ -51,13 +40,6 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
<img src="@/assets/icons/online-service.png" class="app-header__action-icon" alt="">
|
||||
在线客服
|
||||
</RouterLink>
|
||||
<RouterLink to="/message" class="app-header__bell" aria-label="消息中心">
|
||||
<span class="app-header__bell-icon">🔔</span>
|
||||
<span v-if="unreadCount > 0" class="app-header__badge">{{ unreadCount }}</span>
|
||||
</RouterLink>
|
||||
<RouterLink to="/login" class="app-header__login link">
|
||||
登录
|
||||
</RouterLink>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -72,25 +54,25 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
background: @header-bg;
|
||||
border-bottom: 1px solid @header-border;
|
||||
|
||||
// 设计稿:导航首项 x275、胶囊右缘 1800(= 1920 − 120)
|
||||
// 左留白按 155 基准、右留白按 120 基准,各自 clamp 收窄,窄视口不溢出
|
||||
&__inner {
|
||||
.flex(row, space-between);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&__logo {
|
||||
.flex(row, flex-start);
|
||||
|
||||
&-text {
|
||||
font-size: @font-size-xl;
|
||||
font-weight: 600;
|
||||
color: @heading-color;
|
||||
}
|
||||
height: 100%;
|
||||
padding-left: clamp(@spacing-base, calc((100% - 1600px) / 2), 155px);
|
||||
padding-right: clamp(@spacing-base, calc((100% - 1680px) / 2), 120px);
|
||||
}
|
||||
|
||||
// 导航首项 x275 = 左留白 155 + 120
|
||||
&__nav {
|
||||
.flex(row, center);
|
||||
gap: @header-nav-gap;
|
||||
gap: @header-nav-gap; // 设计实测 94(首页 x275→311,案例库 x405)
|
||||
height: 100%;
|
||||
margin-left: 120px;
|
||||
|
||||
@media (max-width: 1600px) {
|
||||
gap: 48px;
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
gap: 32px;
|
||||
@@ -100,45 +82,49 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
position: relative;
|
||||
.flex(row, center);
|
||||
height: 100%;
|
||||
font-size: @font-size-base;
|
||||
// 设计稿:导航项 18/500,未激活 #000000、激活 #085DFF
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
color: @black;
|
||||
transition: color 0.2s;
|
||||
|
||||
&:hover,
|
||||
&.router-link-active {
|
||||
color: @primary-strong;
|
||||
color: @home-tab-active;
|
||||
}
|
||||
|
||||
// 激活项底部短横线(设计 29×2px × 0.77,距顶栏底边 11px × 0.77)
|
||||
// 激活项底部短横线(设计实测 29×2px @y59,距底 11)
|
||||
&.router-link-active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 9px;
|
||||
width: 22px;
|
||||
bottom: 11px;
|
||||
width: 29px;
|
||||
height: 2px;
|
||||
border-radius: 1px;
|
||||
background: @primary-color;
|
||||
background: @home-tab-active;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__actions {
|
||||
.flex(row, flex-end);
|
||||
gap: @spacing-base;
|
||||
.flex(row, flex-end, center);
|
||||
gap: 29px; // 设计:胶囊1 右缘 1665 → 胶囊2 左缘 1694
|
||||
margin-left: auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// 设计稿:胶囊 106×36,图标 18 + 文字 16/500 白字
|
||||
&__action {
|
||||
.flex(row, center);
|
||||
gap: @spacing-xs;
|
||||
height: 28px;
|
||||
padding: 0 @spacing-sm;
|
||||
gap: 5px;
|
||||
width: 106px;
|
||||
height: 36px;
|
||||
border-radius: @radius-sm;
|
||||
background: @primary-color;
|
||||
color: @white;
|
||||
font-size: @font-size-sm;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
transition: opacity 0.2s;
|
||||
|
||||
@@ -147,36 +133,9 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
}
|
||||
|
||||
&-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
&__bell {
|
||||
position: relative;
|
||||
|
||||
&-icon {
|
||||
font-size: @font-size-lg;
|
||||
}
|
||||
}
|
||||
|
||||
&__badge {
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
right: -8px;
|
||||
min-width: 16px;
|
||||
height: 16px;
|
||||
padding: 0 4px;
|
||||
border-radius: @radius-round;
|
||||
background: @danger-color;
|
||||
color: @white;
|
||||
font-size: @font-size-sm;
|
||||
line-height: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__login {
|
||||
font-size: @font-size-base;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -67,11 +67,13 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
|
||||
<style lang="less" scoped>
|
||||
.case-card {
|
||||
// 设计稿卡片 396×267 白底 bd #E1DFDF/1
|
||||
overflow: hidden;
|
||||
height: 267px;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid @cases-card-border;
|
||||
border-radius: @radius-base;
|
||||
background: @white;
|
||||
box-shadow: @cases-card-shadow;
|
||||
cursor: pointer;
|
||||
transition: box-shadow 0.2s, transform 0.2s;
|
||||
|
||||
@@ -82,7 +84,8 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
|
||||
&__cover {
|
||||
position: relative;
|
||||
aspect-ratio: 396 / 138; // 设计04 封面 396×137.8,通栏无留白
|
||||
// 设计封面 396×137.81(通栏无留白)
|
||||
height: 137px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -92,21 +95,24 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
object-fit: cover;
|
||||
|
||||
&--placeholder {
|
||||
background: @primary-strong; // 设计04 封面占位实底 rgba(2,79,255)
|
||||
background: @primary-strong;
|
||||
}
|
||||
}
|
||||
|
||||
&__tag {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
left: 14px;
|
||||
height: 19px; // 设计15 标签 24 × 0.77
|
||||
padding: 0 6px;
|
||||
// 设计标签文字 @(628.6,540.35),卡 @(606,423) → 卡内 (22.6,117) 高 44
|
||||
top: 87px;
|
||||
left: 22px;
|
||||
height: 44px;
|
||||
padding: 0 14px;
|
||||
border-radius: @radius-sm;
|
||||
background: @primary-strong;
|
||||
color: @white;
|
||||
font-size: 11px; // 设计 10 → 7.7,取可读下限 11
|
||||
line-height: 19px;
|
||||
// 设计 28/500
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
line-height: 44px;
|
||||
|
||||
&--hardware {
|
||||
background: @tag-hardware;
|
||||
@@ -160,12 +166,19 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
}
|
||||
|
||||
&__body {
|
||||
padding: 13px 16px 11px; // 上 17 / 左 20 / 下 14 × 0.77
|
||||
position: relative;
|
||||
// 设计标题 @(626.45,578.03),卡 @(606,423) → 卡内 (20,155)
|
||||
padding: 18px 20px 0;
|
||||
height: 129px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-size: 12px; // 设计 16 × 0.77 ≈ 12.3
|
||||
// 设计标题 16/500 #333333
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 21.5px;
|
||||
color: @cases-text;
|
||||
.ellipsis();
|
||||
}
|
||||
@@ -173,28 +186,31 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
&__meta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 6px @spacing-sm;
|
||||
margin-top: @spacing-sm;
|
||||
font-size: 11px; // 设计 10 → 7.7,取可读下限 11
|
||||
line-height: 1.5;
|
||||
// 设计两行:y610.33 / y631.86 → 行距 21.5
|
||||
gap: 21.5px 12px;
|
||||
margin-top: 10px;
|
||||
// 设计元信息 10/400 #333333
|
||||
font-size: 10px;
|
||||
line-height: 14px;
|
||||
color: @cases-text;
|
||||
|
||||
li {
|
||||
/* 值可能较长(如「完成时间:2026/11/30」),换行而非截断,避免丢信息 */
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
}
|
||||
|
||||
&__label {
|
||||
color: inherit; // 设计04 标签与值同色 rgba(51,51,51)
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&__more {
|
||||
display: block;
|
||||
width: fit-content;
|
||||
margin: 11px 0 0 auto; // 设计 14 × 0.77
|
||||
color: @primary-strong; // 设计04 实取 rgba(2,79,255)
|
||||
font-size: 11px; // 设计 12 → 9.2,取可读下限 11
|
||||
position: absolute;
|
||||
// 设计 @(926.67,659.85),卡 @(606,423) → 卡内 (320.67,236.85)
|
||||
right: 20px;
|
||||
bottom: 14px;
|
||||
color: @primary-strong;
|
||||
// 设计 12/400 #024FFF
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
51
src/components/PageHead.vue
Normal file
51
src/components/PageHead.vue
Normal file
@@ -0,0 +1,51 @@
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* 页面头部(白底通栏):主标题 22/700 #1F2937 + 副标语 13/400 #6B7280。
|
||||
*
|
||||
* <p>43 张设计稿实测:标题顶 y125(顶栏 72 → 内容区 padding-top 53 含 1px 描边)、
|
||||
* 行盒 29 → 副标语 ink y162(标题盒底 154 + 8)。整块白底高 179(72 → 251)。</p>
|
||||
*/
|
||||
interface Props {
|
||||
title: string
|
||||
slogan?: string
|
||||
}
|
||||
|
||||
defineProps<Props>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<header class="page-head">
|
||||
<div class="container">
|
||||
<h1 class="page-head__title">
|
||||
{{ title }}
|
||||
</h1>
|
||||
<p v-if="slogan" class="page-head__slogan">
|
||||
{{ slogan }}
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.page-head {
|
||||
background: @white;
|
||||
padding-bottom: 72px; // 副标语盒底 179 → 页头块底 251(块高 179)
|
||||
|
||||
&__title {
|
||||
padding-top: 52px; // 顶栏 72 → 标题 ink 124(design 125)
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
line-height: 29px;
|
||||
color: @finance-ink;
|
||||
}
|
||||
|
||||
&__slogan {
|
||||
padding-bottom: 0;
|
||||
margin-top: 9px; // 标题盒底 153 → 副标语盒顶 162
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
line-height: 17px;
|
||||
color: @finance-muted-text;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -19,17 +19,19 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div v-if="password" class="pwd-strength">
|
||||
<!-- 设计稿:强度条常驻显示(未输入时整条为空轨道 + 空强度文字),
|
||||
占位高度固定 15(条行)+ 18(提示行),保证表单纵向节奏与设计稿一致 -->
|
||||
<div class="pwd-strength">
|
||||
<div class="pwd-strength__bars">
|
||||
<span
|
||||
v-for="i in 3"
|
||||
:key="i"
|
||||
class="pwd-strength__bar"
|
||||
:class="{ 'is-on': i <= levelIndex, [`is-${level}`]: i <= levelIndex }"
|
||||
:class="{ 'is-on': password && i <= levelIndex, [`is-${level}`]: password && i <= levelIndex }"
|
||||
/>
|
||||
</div>
|
||||
<span class="pwd-strength__label" :class="`is-${level}`">密码强度:{{ levelText }}</span>
|
||||
<p v-if="level === 'weak'" class="pwd-strength__tip">
|
||||
<span class="pwd-strength__label" :class="`is-${level}`">{{ password ? `密码强度:${levelText}` : '' }}</span>
|
||||
<p v-if="password && level === 'weak'" class="pwd-strength__tip">
|
||||
密码等级过低,请重新输入(建议字母+数字+符号组合)
|
||||
</p>
|
||||
</div>
|
||||
@@ -40,19 +42,23 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
|
||||
.pwd-strength {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
grid-template-rows: 15px auto;
|
||||
column-gap: @spacing-sm;
|
||||
row-gap: 9px;
|
||||
row-gap: 3px;
|
||||
align-items: center;
|
||||
// 设计稿:密码框底 → 条行 → 提示行 → 下一标签,节奏 15/15/18
|
||||
min-height: 33px;
|
||||
box-sizing: border-box;
|
||||
|
||||
&__bars {
|
||||
.flex(row, center);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
// 设计稿轨道实取 #EDEFF2,条高 5 设计px ≈ 4px
|
||||
// 设计稿轨道实取 #EDEFF2,条高 5
|
||||
&__bar {
|
||||
flex: 1;
|
||||
height: 4px;
|
||||
height: 5px;
|
||||
border-radius: 2px;
|
||||
background: @auth-track;
|
||||
|
||||
@@ -69,10 +75,11 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿强度文字为 11 设计px 中性灰(「弱」实取 rgba(156,163,175))
|
||||
// 设计稿强度文字为 11px 中性灰(「弱」实取 rgba(156,163,175))
|
||||
&__label {
|
||||
justify-self: end;
|
||||
font-size: 11px;
|
||||
line-height: 15px;
|
||||
color: @text-color-disabled;
|
||||
}
|
||||
|
||||
@@ -80,6 +87,7 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
|
||||
grid-column: 1 / -1;
|
||||
margin: 0;
|
||||
font-size: 11px;
|
||||
line-height: 15px;
|
||||
color: @danger-color;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,17 +37,17 @@ function onGetCode(): void {
|
||||
.flex(row, stretch);
|
||||
gap: @spacing-sm;
|
||||
|
||||
// 设计稿(02/54/55):验证码输入框与普通输入框同规格 40 设计px ≈ 32px、13 设计px 字号
|
||||
// 设计稿(02/54/55):验证码输入框 590×39(整行 680,右侧留 90 给「获取验证码」)
|
||||
&__input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 32px;
|
||||
height: 39px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid @border-color;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #dde1e7;
|
||||
border-radius: @radius-sm;
|
||||
background: @white;
|
||||
font-size: 11px;
|
||||
color: @heading-color;
|
||||
font-size: 13px;
|
||||
color: #1f2937;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
|
||||
@@ -56,29 +56,30 @@ function onGetCode(): void {
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: @heading-color;
|
||||
color: #1f2937;
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿:「获取验证码」为白底蓝描边蓝字小按钮(#024FFF)
|
||||
// 设计稿:「获取验证码」为蓝字纯文本(无边框),12/400 #024FFF
|
||||
&__btn {
|
||||
flex-shrink: 0;
|
||||
min-width: 96px;
|
||||
height: 32px;
|
||||
padding: 0 @spacing-sm;
|
||||
border: 1px solid @primary-strong;
|
||||
border-radius: 6px;
|
||||
background: @white;
|
||||
min-width: 74px;
|
||||
height: 39px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: @primary-strong;
|
||||
font-size: 11px;
|
||||
transition: all 0.2s;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
text-align: right;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: @primary-light;
|
||||
color: @primary-hover;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
border-color: @border-color-dark;
|
||||
color: @text-color-disabled;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export { default as AppHeader } from './AppHeader.vue'
|
||||
export { default as AppFooter } from './AppFooter.vue'
|
||||
export { default as AppButton } from './AppButton.vue'
|
||||
export { default as PageHead } from './PageHead.vue'
|
||||
export { default as CaseCard } from './CaseCard.vue'
|
||||
export { default as FilterPanel } from './FilterPanel.vue'
|
||||
export type { FilterChip } from './FilterPanel.vue'
|
||||
|
||||
Reference in New Issue
Block a user