feat 完善注释
This commit is contained in:
@@ -3,7 +3,6 @@ import { useSiteStore } from '@/stores/modules/site'
|
||||
|
||||
const siteStore = useSiteStore()
|
||||
|
||||
// 设计稿快速导航列原文:首页 / 案例中心 / 需求提报 / 下载 APP / 帮助中心
|
||||
const quickLinks = [
|
||||
{ label: '首页', path: '/' },
|
||||
{ label: '案例中心', path: '/cases' },
|
||||
@@ -85,10 +84,6 @@ 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;
|
||||
@@ -97,16 +92,16 @@ const coreBusiness = [
|
||||
.flex(row, flex-start, flex-start);
|
||||
width: 100%;
|
||||
max-width: 1920px;
|
||||
margin: 0 auto; // 视口宽于 1920 时整块居中;缺这行内容会贴左、右侧留白远大于左侧
|
||||
height: 250px; // 页脚顶 → © 行(y1942→2274)
|
||||
margin: 0 auto;
|
||||
height: 250px;
|
||||
box-sizing: border-box;
|
||||
padding-top: 30px;
|
||||
padding-left: clamp(
|
||||
@spacing-base,
|
||||
calc((100% - 1609px) / 2),
|
||||
155px
|
||||
); // 设计内容 x155→1764 = 1609 宽
|
||||
overflow: hidden; // 防列内容撑出横向滚动
|
||||
);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__about {
|
||||
@@ -116,8 +111,8 @@ const coreBusiness = [
|
||||
|
||||
&__brand {
|
||||
.flex(row, flex-start);
|
||||
margin-bottom: 20px; // 品牌名盒底 2037 → 描述 2057
|
||||
margin-left: 45px; // 设计:品牌名 @x200,列起点 x155
|
||||
margin-bottom: 20px;
|
||||
margin-left: 45px;
|
||||
}
|
||||
|
||||
&__name {
|
||||
@@ -131,16 +126,14 @@ const coreBusiness = [
|
||||
margin-top: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 23px; // 设计 625×115 五行
|
||||
line-height: 23px;
|
||||
}
|
||||
|
||||
&__col {
|
||||
.flex(column, flex-start, flex-start); // 第三参必须显式:mixin 默认 center 会把列项水平居中
|
||||
.flex(column, flex-start, flex-start);
|
||||
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;
|
||||
@@ -156,7 +149,7 @@ const coreBusiness = [
|
||||
}
|
||||
|
||||
&__title {
|
||||
margin-bottom: 20px; // 标题盒底 2037 → 列表 2057
|
||||
margin-bottom: 20px;
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
line-height: 41px;
|
||||
@@ -167,7 +160,7 @@ const coreBusiness = [
|
||||
&__link {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 23px; // 设计 5 项 115 高
|
||||
line-height: 23px;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s;
|
||||
@@ -183,12 +176,11 @@ const coreBusiness = [
|
||||
line-height: 23px;
|
||||
}
|
||||
|
||||
// 版权区:867 盒在画布居中(1920 视口 → x526),盒内文字左对齐;ICP 缩进 315(→ x841)
|
||||
&__bottom {
|
||||
width: 867px;
|
||||
max-width: calc(100% - 32px);
|
||||
margin: 0 auto;
|
||||
padding-bottom: 20px; // ICP 盒底 2336 → 页脚底 2423
|
||||
padding-bottom: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@@ -197,11 +189,11 @@ const coreBusiness = [
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 23px;
|
||||
white-space: nowrap; // 设计稿单行(867×23),回退字体偏宽防折行
|
||||
white-space: nowrap;
|
||||
color: @white;
|
||||
|
||||
&--icp {
|
||||
margin-top: 16px; // © 盒底 2297 → ICP 2313
|
||||
margin-top: 16px;
|
||||
margin-left: 315px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,6 @@ interface NavItem {
|
||||
path: string
|
||||
}
|
||||
|
||||
// 设计稿页头(43 张稿一致):无 logo 文字,导航首项 x275(间隙 94),
|
||||
// 右侧两枚 106×36 胶囊(快捷提报 x1559 / 在线客服 x1694,右缘 1800)
|
||||
const navItems: NavItem[] = [
|
||||
{ label: '首页', path: '/' },
|
||||
{ label: '案例库', path: '/cases' },
|
||||
@@ -20,7 +18,6 @@ const navItems: NavItem[] = [
|
||||
{ label: '个人中心', path: '/profile' },
|
||||
]
|
||||
|
||||
// 🔔 消息提示:顶栏铃铛展示未读数量,点击进入消息中心
|
||||
const messageStore = useMessageStore()
|
||||
const { unreadCount } = storeToRefs(messageStore)
|
||||
onMounted(() => void messageStore.fetchUnreadCount())
|
||||
@@ -84,8 +81,6 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
background: @header-bg;
|
||||
border-bottom: 1px solid @header-border;
|
||||
|
||||
// 设计稿:导航首项 x275、胶囊右缘 1800(= 1920 − 120)
|
||||
// 左留白按 155 基准、右留白按 120 基准,各自 clamp 收窄,窄视口不溢出
|
||||
&__inner {
|
||||
.flex(row, flex-start);
|
||||
height: 100%;
|
||||
@@ -95,10 +90,9 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
padding-right: 15%;
|
||||
}
|
||||
|
||||
// 导航首项 x275 = 左留白 155 + 120
|
||||
&__nav {
|
||||
.flex(row, center);
|
||||
gap: @header-nav-gap; // 设计实测 94(首页 x275→311,案例库 x405)
|
||||
gap: @header-nav-gap;
|
||||
height: 100%;
|
||||
margin-left: 0px;
|
||||
|
||||
@@ -114,7 +108,6 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
position: relative;
|
||||
.flex(row, center);
|
||||
height: 100%;
|
||||
// 设计稿:导航项 18/500,未激活 #000000、激活 #085DFF
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
color: @black;
|
||||
@@ -125,7 +118,6 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
color: @home-tab-active;
|
||||
}
|
||||
|
||||
// 激活项底部短横线(设计实测 29×2px @y59,距底 11)
|
||||
&.router-link-active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
@@ -142,12 +134,11 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
|
||||
&__actions {
|
||||
.flex(row, flex-end, center);
|
||||
gap: 29px; // 设计:胶囊1 右缘 1665 → 胶囊2 左缘 1694
|
||||
gap: 29px;
|
||||
margin-left: auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// 设计稿:胶囊 106×36,图标 18 + 文字 16/500 白字
|
||||
&__action {
|
||||
.flex(row, center);
|
||||
gap: 5px;
|
||||
@@ -170,7 +161,6 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
}
|
||||
}
|
||||
|
||||
// 🔔 消息铃铛:展示未读数量红点,点击进入消息中心
|
||||
&__bell {
|
||||
position: relative;
|
||||
.flex(row, center, center);
|
||||
@@ -200,7 +190,6 @@ onMounted(() => void messageStore.fetchUnreadCount())
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
// 登录:文字链接,点击直达登录页
|
||||
&__login {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
|
||||
@@ -14,14 +14,12 @@ const emit = defineEmits<{
|
||||
favorite: [id: string]
|
||||
}>()
|
||||
|
||||
/** 卡片元信息:设计稿为「标签:值」三列两行 */
|
||||
const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
{ label: '客户类型', value: props.item.clientType || '--' },
|
||||
{ label: '所属行业', value: props.item.industry || '--' },
|
||||
{ label: '规模', value: props.item.scale || '--' },
|
||||
{ label: '项目周期', value: props.item.duration || '--' },
|
||||
{ label: '服务团队', value: props.item.teamSize ? `${props.item.teamSize}人` : '--' },
|
||||
// 设计稿完成时间为 2026/8/10 形式,后端 completedAt 下发 2026-08-10
|
||||
{ label: '完成时间', value: props.item.finishDate ? props.item.finishDate.replace(/-/g, '/') : '--' },
|
||||
])
|
||||
</script>
|
||||
@@ -67,7 +65,6 @@ 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;
|
||||
@@ -84,7 +81,6 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
|
||||
&__cover {
|
||||
position: relative;
|
||||
// 设计封面 396×137.81(通栏无留白)
|
||||
height: 137px;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -101,7 +97,6 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
|
||||
&__tag {
|
||||
position: absolute;
|
||||
// 设计标签文字 @(628.6,540.35),卡 @(606,423) → 卡内 (22.6,117) 高 44
|
||||
top: 87px;
|
||||
left: 22px;
|
||||
height: 44px;
|
||||
@@ -109,7 +104,6 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
border-radius: @radius-sm;
|
||||
background: @primary-strong;
|
||||
color: @white;
|
||||
// 设计 28/500
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
line-height: 44px;
|
||||
@@ -167,14 +161,12 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
|
||||
&__body {
|
||||
position: relative;
|
||||
// 设计标题 @(626.45,578.03),卡 @(606,423) → 卡内 (20,155)
|
||||
padding: 18px 20px 0;
|
||||
height: 129px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&__title {
|
||||
// 设计标题 16/500 #333333
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
@@ -186,10 +178,8 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
&__meta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
// 设计两行: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;
|
||||
@@ -205,11 +195,9 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
|
||||
|
||||
&__more {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -58,8 +58,6 @@ function onCancel(): void {
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 设计 24(取消绑定确认)/ 29(注销风险提示):白卡 ~840 设计px、无蒙层压暗、
|
||||
// 底部两枚等宽整行按钮(次级 #EEF0F3 / 主色或危险色)
|
||||
.confirm-dialog {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
@@ -68,7 +66,7 @@ function onCancel(): void {
|
||||
background: transparent;
|
||||
|
||||
&__panel {
|
||||
width: 660px; // 设计 840 × 0.77
|
||||
width: 660px;
|
||||
max-width: calc(100vw - 32px);
|
||||
padding: @spacing-base;
|
||||
border-radius: @radius-lg;
|
||||
@@ -76,7 +74,6 @@ function onCancel(): void {
|
||||
box-shadow: @shadow-lg;
|
||||
}
|
||||
|
||||
// 蓝条 + 标题 15 设计px w700(与个人中心各弹窗一致)
|
||||
&__title {
|
||||
position: relative;
|
||||
margin-bottom: @spacing-base;
|
||||
@@ -100,12 +97,11 @@ function onCancel(): void {
|
||||
|
||||
&__body {
|
||||
margin-bottom: @spacing-lg;
|
||||
font-size: 11px; // 设计 29 条目 13 → 11
|
||||
font-size: 11px;
|
||||
color: @text-color;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
// 设计 24:两枚等宽整行按钮铺满卡宽
|
||||
&__footer {
|
||||
.flex(row, flex-start);
|
||||
gap: @spacing-sm;
|
||||
@@ -129,7 +125,6 @@ function onCancel(): void {
|
||||
color: @text-color;
|
||||
}
|
||||
|
||||
// 设计 24 主按钮 #024FFF / 设计 29 危险按钮 #EF4444
|
||||
&--confirm {
|
||||
background: @primary-strong;
|
||||
color: @white;
|
||||
|
||||
@@ -45,7 +45,6 @@ const emit = defineEmits<{
|
||||
.flex(column, flex-start);
|
||||
gap: @spacing-sm;
|
||||
|
||||
// 设计稿(06/07 附件条):实底 #EDEDED 灰条、无描边
|
||||
&__item {
|
||||
.flex(row, space-between);
|
||||
gap: @spacing-base;
|
||||
|
||||
@@ -37,12 +37,10 @@ function onDownload(): void {
|
||||
</header>
|
||||
|
||||
<div class="preview-dialog__body">
|
||||
<!-- 加载中 -->
|
||||
<div v-if="loading" class="preview-dialog__center">
|
||||
预览加载中…
|
||||
</div>
|
||||
|
||||
<!-- 加载失败 / 无 ossId 等错误 -->
|
||||
<div v-else-if="error" class="preview-dialog__center">
|
||||
<p class="preview-dialog__msg">{{ error }}</p>
|
||||
<AppButton v-if="file?.url" type="primary" @click="onDownload">
|
||||
@@ -50,7 +48,6 @@ function onDownload(): void {
|
||||
</AppButton>
|
||||
</div>
|
||||
|
||||
<!-- 不支持内联预览(office 等) -->
|
||||
<div v-else-if="kind === 'unsupported'" class="preview-dialog__center">
|
||||
<p class="preview-dialog__msg">
|
||||
当前格式({{ (file?.name ?? '').split('.').pop() }})不支持在线预览,请下载后查看。
|
||||
@@ -60,7 +57,6 @@ function onDownload(): void {
|
||||
</AppButton>
|
||||
</div>
|
||||
|
||||
<!-- 图片 -->
|
||||
<img
|
||||
v-else-if="kind === 'image' && objectUrl"
|
||||
:src="objectUrl"
|
||||
@@ -68,7 +64,6 @@ function onDownload(): void {
|
||||
alt="预览"
|
||||
>
|
||||
|
||||
<!-- PDF(blob 已带 application/pdf,iframe 内联渲染) -->
|
||||
<iframe
|
||||
v-else-if="kind === 'pdf' && objectUrl"
|
||||
:src="objectUrl"
|
||||
@@ -76,7 +71,6 @@ function onDownload(): void {
|
||||
title="预览"
|
||||
/>
|
||||
|
||||
<!-- 视频 -->
|
||||
<video
|
||||
v-else-if="kind === 'video' && objectUrl"
|
||||
:src="objectUrl"
|
||||
@@ -84,7 +78,6 @@ function onDownload(): void {
|
||||
controls
|
||||
/>
|
||||
|
||||
<!-- 音频 -->
|
||||
<audio
|
||||
v-else-if="kind === 'audio' && objectUrl"
|
||||
:src="objectUrl"
|
||||
@@ -92,7 +85,6 @@ function onDownload(): void {
|
||||
controls
|
||||
/>
|
||||
|
||||
<!-- 文本(大文件截断预览,避免卡死浏览器) -->
|
||||
<div v-else-if="kind === 'text'" class="preview-dialog__text-wrap">
|
||||
<p v-if="truncated" class="preview-dialog__hint">
|
||||
<span>文件较大({{ formatBytes(totalBytes ?? 0) }}),仅预览前 {{ formatBytes(PREVIEW_TEXT_MAX_BYTES) }},完整内容请下载。</span>
|
||||
|
||||
@@ -71,26 +71,26 @@ const emit = defineEmits<{
|
||||
|
||||
<style lang="less" scoped>
|
||||
.filter-panel {
|
||||
padding: 24px 36px; // 设计04 搜索卡左右内缩 47 × 0.77
|
||||
padding: 24px 36px;
|
||||
border-radius: @radius-base;
|
||||
background: @white;
|
||||
|
||||
&__bar {
|
||||
.flex(row, flex-start);
|
||||
gap: 18px; // 按钮间距 24 × 0.77
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
&__input {
|
||||
flex: 1;
|
||||
max-width: 456px; // 设计输入框 592 × 0.77
|
||||
margin-right: 28px; // 与按钮总距 60 × 0.77(叠加 bar gap 18)
|
||||
height: 38px; // 设计 49 × 0.77
|
||||
max-width: 456px;
|
||||
margin-right: 28px;
|
||||
height: 38px;
|
||||
padding: 0 @spacing-base;
|
||||
border: 1px solid @cases-input-border;
|
||||
border-radius: @radius-sm;
|
||||
background: @white;
|
||||
color: @cases-text;
|
||||
font-size: 15px; // 设计 20 × 0.77
|
||||
font-size: 15px;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
|
||||
@@ -104,13 +104,13 @@ const emit = defineEmits<{
|
||||
}
|
||||
|
||||
&__btn {
|
||||
min-width: 77px; // 设计 100 × 0.77
|
||||
height: 38px; // 设计 49 × 0.77
|
||||
min-width: 77px;
|
||||
height: 38px;
|
||||
padding: 0 @spacing-base;
|
||||
border-radius: @radius-sm;
|
||||
background: @cases-accent; // 设计 重置/搜索 均为 rgba(7,92,255)
|
||||
background: @cases-accent;
|
||||
color: @white;
|
||||
font-size: 15px; // 设计 20 × 0.77
|
||||
font-size: 15px;
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
@@ -131,26 +131,26 @@ const emit = defineEmits<{
|
||||
&__chips {
|
||||
.flex(row, flex-start, center);
|
||||
flex-wrap: wrap;
|
||||
gap: 11px 10px; // 行距 14 / 列距 13 × 0.77
|
||||
gap: 11px 10px;
|
||||
margin-top: @spacing-base;
|
||||
padding: 12px 18px 16px; // 「已选条件」面板内边距 16/24/21 × 0.77
|
||||
padding: 12px 18px 16px;
|
||||
border-radius: @radius-base;
|
||||
background: @chips-panel-bg;
|
||||
font-size: 15px; // 设计 20 × 0.77
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
&__chips-label {
|
||||
color: @cases-text; // 设计04 标题 rgba(51,51,51)
|
||||
color: @cases-text;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
&__chip {
|
||||
height: 25px; // 设计 32 × 0.77
|
||||
height: 25px;
|
||||
padding: 0 @spacing-sm;
|
||||
border-radius: @radius-round;
|
||||
background: @white;
|
||||
color: @cases-accent; // 设计 chips 文字 rgba(7,92,255)
|
||||
font-size: 11px; // 设计 14 → 10.8,取可读下限 11
|
||||
color: @cases-accent;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s;
|
||||
|
||||
@@ -160,7 +160,7 @@ const emit = defineEmits<{
|
||||
|
||||
&--clear {
|
||||
background: transparent;
|
||||
color: @primary-strong; // 设计15「清空」为纯文字蓝链
|
||||
color: @primary-strong;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
<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
|
||||
@@ -29,10 +23,10 @@ defineProps<Props>()
|
||||
<style lang="less" scoped>
|
||||
.page-head {
|
||||
background: @white;
|
||||
padding-bottom: 72px; // 副标语盒底 179 → 页头块底 251(块高 179)
|
||||
padding-bottom: 72px;
|
||||
|
||||
&__title {
|
||||
padding-top: 52px; // 顶栏 72 → 标题 ink 124(design 125)
|
||||
padding-top: 52px;
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
line-height: 29px;
|
||||
@@ -41,7 +35,7 @@ defineProps<Props>()
|
||||
|
||||
&__slogan {
|
||||
padding-bottom: 0;
|
||||
margin-top: 9px; // 标题盒底 153 → 副标语盒顶 162
|
||||
margin-top: 9px;
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
line-height: 17px;
|
||||
|
||||
@@ -13,7 +13,6 @@ const emit = defineEmits<{ pageChange: [page: number] }>()
|
||||
|
||||
const pageCount = computed(() => Math.max(1, Math.ceil(props.total / props.pageSize)))
|
||||
|
||||
/** 页码序列:≤7 全部展示,否则首尾 + 当前页窗口(… 省略) */
|
||||
const pages = computed<Array<number | '...'>>(() => {
|
||||
const n = pageCount.value
|
||||
const { page } = props
|
||||
@@ -67,19 +66,19 @@ function go(page: number): void {
|
||||
<style lang="less" scoped>
|
||||
.pagination {
|
||||
.flex(row, center);
|
||||
gap: @spacing-xs; // 盒间距 6 × 0.77 ≈ 5
|
||||
padding: 12px 0; // 网格 → 分页 36 × 0.77(叠加主栏 gap 18)
|
||||
gap: @spacing-xs;
|
||||
padding: 12px 0;
|
||||
|
||||
&__btn {
|
||||
.flex(row, center);
|
||||
min-width: 20px; // 设计15 页码盒 26 × 0.77
|
||||
height: 25px; // 设计 32 × 0.77
|
||||
min-width: 20px;
|
||||
height: 25px;
|
||||
padding: 0 3px;
|
||||
border: 1px solid @border-color;
|
||||
border-radius: @radius-sm;
|
||||
background: @white;
|
||||
color: @text-color-secondary; // 设计15 实取 rgba(107,114,128)
|
||||
font-size: 11px; // 设计 12 → 9.2,取可读下限 11
|
||||
color: @text-color-secondary;
|
||||
font-size: 11px;
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover:not(:disabled):not(.is-ellipsis) {
|
||||
@@ -90,7 +89,7 @@ function go(page: number): void {
|
||||
&.is-active {
|
||||
border-color: @cases-page-active-bg;
|
||||
background: @cases-page-active-bg;
|
||||
color: @primary-strong; // 设计15 当前页文字 rgba(2,79,255)
|
||||
color: @primary-strong;
|
||||
}
|
||||
|
||||
&.is-ellipsis {
|
||||
|
||||
@@ -19,8 +19,6 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- 设计稿:强度条常驻显示(未输入时整条为空轨道 + 空强度文字),
|
||||
占位高度固定 15(条行)+ 18(提示行),保证表单纵向节奏与设计稿一致 -->
|
||||
<div class="pwd-strength">
|
||||
<div class="pwd-strength__bars">
|
||||
<span
|
||||
@@ -38,7 +36,6 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 设计稿(54/55):满宽强度条(弱=首段红,余段浅灰轨道)+ 右端灰色强度文字 + 下方红色提示
|
||||
.pwd-strength {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
@@ -46,7 +43,6 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
|
||||
column-gap: @spacing-sm;
|
||||
row-gap: 3px;
|
||||
align-items: center;
|
||||
// 设计稿:密码框底 → 条行 → 提示行 → 下一标签,节奏 15/15/18
|
||||
min-height: 33px;
|
||||
box-sizing: border-box;
|
||||
|
||||
@@ -55,7 +51,6 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
// 设计稿轨道实取 #EDEFF2,条高 5
|
||||
&__bar {
|
||||
flex: 1;
|
||||
height: 5px;
|
||||
@@ -75,7 +70,6 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿强度文字为 11px 中性灰(「弱」实取 rgba(156,163,175))
|
||||
&__label {
|
||||
justify-self: end;
|
||||
font-size: 11px;
|
||||
|
||||
@@ -3,7 +3,6 @@ import { computed, onMounted, ref } from 'vue'
|
||||
import { useCountDown } from '@/composables/useCountDown'
|
||||
|
||||
interface Props {
|
||||
/** 二维码有效期(秒),默认 4:32 */
|
||||
expiresIn?: number
|
||||
size?: number
|
||||
}
|
||||
@@ -67,10 +66,9 @@ onMounted(() => {
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 扫码面板(设计 39:灰色二维码占位块 + 红色倒计时胶囊 + 灰色小字提示)
|
||||
.qr-panel {
|
||||
.flex(column, center);
|
||||
gap: 17px; // 二维码 → 倒计时(设计 22 × 0.77)
|
||||
gap: 17px;
|
||||
|
||||
&__box {
|
||||
.flex(column, center);
|
||||
@@ -99,23 +97,22 @@ onMounted(() => {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
// 状态行:胶囊(倒计时)+ 下方灰色提示,整体居中
|
||||
&__status {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: @spacing-sm;
|
||||
font-size: 11px; // 设计 13/11 → 可读下限
|
||||
font-size: 11px;
|
||||
color: @text-color-disabled;
|
||||
}
|
||||
|
||||
&__countdown {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 8px 16px; // 胶囊高 42 设计 × 0.77
|
||||
padding: 8px 16px;
|
||||
border-radius: @radius-round;
|
||||
background: fade(@danger-color, 8%);
|
||||
color: @danger-color; // 设计 39 实取 @danger-color
|
||||
color: @danger-color;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,8 +33,6 @@ function onGetCode(): void {
|
||||
.flex(row, stretch);
|
||||
gap: @spacing-sm;
|
||||
|
||||
// 设计稿(02/54/55):验证码输入框 590×39(整行 680,右侧留 90 给「获取验证码」)
|
||||
// ⚠️ 盒高/字号随登录页 @auth-font-scale 放大,与各表单页输入框保持同高
|
||||
&__input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
@@ -57,7 +55,6 @@ function onGetCode(): void {
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿:「获取验证码」为蓝字纯文本(无边框),12/400 #024FFF
|
||||
&__btn {
|
||||
flex-shrink: 0;
|
||||
min-width: 74px * @auth-font-scale;
|
||||
|
||||
@@ -14,7 +14,6 @@ withDefaults(defineProps<Props>(), { variant: 'info' })
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 设计稿(项目中心 09 付款计划徽标):约 57×22 设计px、圆角 4 设计px、11px 字、浅底彩色字
|
||||
.status-tag {
|
||||
display: inline-block;
|
||||
padding: 3px 10px;
|
||||
|
||||
@@ -28,7 +28,6 @@ defineProps<Props>()
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 设计稿(06/07 三步表单):白卡上竖排「大号蓝色序号 + 区块标题」,无连接线/分隔线/阴影
|
||||
.step-form {
|
||||
padding: @spacing-lg @spacing-xl;
|
||||
border-radius: @radius-base;
|
||||
@@ -48,7 +47,6 @@ defineProps<Props>()
|
||||
gap: @spacing-xs;
|
||||
}
|
||||
|
||||
// 设计稿序号:48 设计px ≈ 37px、#024FFF、与内容列对齐(列宽 46px)
|
||||
&__dot {
|
||||
flex-shrink: 0;
|
||||
width: 46px;
|
||||
@@ -62,20 +60,17 @@ defineProps<Props>()
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
// 设计稿区块标题:28 设计px ≈ 22px、500、rgba(51,51,51)
|
||||
&__label {
|
||||
font-size: @font-size-title;
|
||||
font-weight: 500;
|
||||
color: @demand-heading;
|
||||
}
|
||||
|
||||
// 设计稿无步骤连接线
|
||||
&__line {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__body {
|
||||
// 内容列与序号后的标题对齐(序号列 46px)
|
||||
margin-left: 46px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ function onDrop(event: DragEvent): void {
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 设计稿(06/07 附件条):实底 #EDEDED 灰条、无描边、90 设计px ≈ 69px 高
|
||||
.upload-area {
|
||||
.flex(column, center);
|
||||
gap: @spacing-xs;
|
||||
|
||||
Reference in New Issue
Block a user