feat ui设计稿

This commit is contained in:
Ironsp
2026-09-30 15:55:36 +08:00
parent ce8210fb3f
commit 9ab6253c81
102 changed files with 4855 additions and 2359 deletions

View File

@@ -74,29 +74,42 @@ onMounted(() => {
<span>扫码支付</span>
</nav>
<div class="pay__body">
<section class="pay__left card">
<QrCodePanel
:expires-in="payment?.qrExpiresInSeconds ?? 300"
@refresh="onRefresh"
/>
<p class="pay__safe text-secondary">
安全提示:本页面已通过安全验证,请勿向他人泄露付款码
</p>
<AppButton @click="dialogVisible = true">
切换支付方式
</AppButton>
</section>
<!-- 设计 33/34:单张大白卡——左(渠道说明 + 切换)/ 中(金额 + 二维码)/ 右(步骤 + 订单明细 + 安全提示) -->
<div class="pay__body card">
<section class="pay__left">
<div class="pay__left-top">
<p class="pay__method">
{{ methodLabel }} · 请使用手机微信 <strong>[扫一扫]</strong> 扫描下方二维码完成支付
</p>
<AppButton class="pay__switch" @click="dialogVisible = true">
切换支付方式
</AppButton>
</div>
<section class="pay__right card">
<div class="pay__amount-block">
<p class="pay__amount-label text-secondary">
支付金额
</p>
<p class="pay__amount">¥{{ formatMoney(payment?.amount ?? currentBill?.amount ?? 0) }}</p>
<p class="pay__method">
{{ methodLabel }} · 请使用手机微信 <strong>[扫一扫]</strong> 扫描下方二维码完成支付
</p>
</div>
<QrCodePanel
:expires-in="payment?.qrExpiresInSeconds ?? 300"
@refresh="onRefresh"
/>
</section>
<section class="pay__right">
<div class="pay__steps">
<h4 class="pay__sub-title">
扫码支付操作步骤
</h4>
<ol class="pay__step-list">
<li v-for="(step, index) in steps" :key="step" class="pay__step">
<span class="pay__step-index">{{ index + 1 }}</span>
<span>{{ step }}</span>
</li>
</ol>
</div>
<div class="pay__detail">
@@ -123,29 +136,22 @@ onMounted(() => {
</ul>
</div>
<div class="pay__steps">
<h4 class="pay__sub-title">
扫码支付操作步骤
</h4>
<ol class="pay__step-list">
<li v-for="(step, index) in steps" :key="step" class="pay__step">
<span class="pay__step-index">{{ index + 1 }}</span>
<span>{{ step }}</span>
</li>
</ol>
</div>
<div class="pay__footer">
<AppButton type="primary" size="lg" @click="onPaid">
完成支付
</AppButton>
<AppButton @click="router.push('/finance/bills')">
返回
</AppButton>
</div>
<p class="pay__safe">
安全提示:本页面已通过安全验证,请勿向他人泄露付款码
</p>
</section>
</div>
<!-- 设计 33:操作按钮在大卡右下方 -->
<div class="pay__footer">
<AppButton type="primary" size="lg" @click="onPaid">
完成支付
</AppButton>
<AppButton @click="router.push('/finance/bills')">
返回
</AppButton>
</div>
<PayMethodDialog
v-model:visible="dialogVisible"
:method="method"
@@ -156,136 +162,224 @@ onMounted(() => {
<style lang="less" scoped>
.pay {
padding-top: @spacing-lg;
padding-bottom: @spacing-xxl;
width: 100%;
max-width: @container-width;
margin: 0 auto;
padding: @spacing-lg @spacing-base @spacing-xxl;
// 设计 33:面包屑 13 设计px → 11px,前缀灰、当前页深灰
&__breadcrumb {
margin-bottom: @spacing-base;
font-size: @font-size-base;
font-size: 11px;
color: @text-color-disabled;
> span:last-child {
color: @text-color;
}
}
// 设计 33:整页单张大白卡,左中右三区
&__body {
.flex(row, flex-start);
gap: @spacing-base;
align-items: flex-start;
.flex(row, flex-start, flex-start);
gap: 24px;
padding: 24px 32px;
border-radius: @radius-base;
background: @white;
box-shadow: @shadow-base;
}
&__left {
.flex(column, center, center);
gap: @spacing-base;
width: 320px;
flex-shrink: 0;
padding: @spacing-lg;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
}
&__safe {
font-size: @font-size-sm;
text-align: center;
line-height: 1.6;
}
&__right {
flex: 1;
padding: @spacing-lg;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
min-width: 0;
gap: @spacing-base;
}
// 左区顶行:渠道说明靠左、切换支付方式胶囊靠右(设计 33 右上角)
&__left-top {
.flex(row, space-between, center);
align-self: stretch;
gap: @spacing-base;
}
&__method {
font-size: 12px;
color: @text-color;
strong {
color: @primary-strong;
}
}
&__switch {
flex-shrink: 0;
}
:deep(.pay__switch.app-button--default) {
height: 24px;
padding: 0 10px;
border: 1px solid fade(@primary-strong, 30%);
background: fade(@primary-strong, 10%);
color: @primary-strong;
font-size: 11px;
&:hover {
border-color: @primary-strong;
background: fade(@primary-strong, 18%);
color: @primary-strong;
}
}
// 中区:支付金额标签 15 设计px → 12px,金额 34 设计px → 26px 粗体红
&__amount-block {
padding-bottom: @spacing-base;
border-bottom: 1px solid @border-color;
text-align: center;
}
&__amount-label {
font-size: @font-size-base;
font-size: 12px;
color: @text-color;
}
&__amount {
margin: @spacing-xs 0;
font-size: 32px;
font-weight: 600;
margin-top: 4px;
font-size: 26px;
font-weight: 700;
color: @danger-color;
line-height: 1.2;
}
&__method {
font-size: @font-size-base;
color: @text-color;
strong {
color: @primary-color;
}
// 二维码占位(QrCodePanel 内部压成设计稿的灰色方块)
:deep(.qr-panel__box) {
border: none;
background: @contract-qr-bg;
border-radius: @radius-base;
}
&__detail,
&__steps {
margin-top: @spacing-base;
// 倒计时行 → 浅红胶囊(设计 33「二维码将在 04:32 后失效」)
:deep(.qr-panel__status) {
font-size: 11px;
color: @danger-color;
background: fade(@danger-color, 8%);
border-radius: @radius-round;
padding: 5px 14px;
}
:deep(.qr-panel__count) {
color: @danger-color;
font-weight: 700;
}
// 右区:步骤 + 订单明细 + 安全提示(设计 33 右列 400 设计px ≈ 310px)
&__right {
flex: 0 0 310px;
display: flex;
flex-direction: column;
gap: @spacing-base;
}
&__sub-title {
margin-bottom: @spacing-sm;
font-size: @font-size-base;
font-weight: 600;
margin-bottom: 12px;
font-size: 15px;
font-weight: 700;
color: @heading-color;
// 「订单明细」小节按设计 33 降为 13 设计px → 11px
}
&__detail-list {
.flex(column, flex-start);
gap: @spacing-sm;
&__detail &__sub-title {
font-size: 11px;
}
&__detail-item {
.flex(row, flex-start, center);
gap: @spacing-base;
font-size: @font-size-base;
color: @heading-color;
}
&__detail-label {
width: 72px;
flex-shrink: 0;
}
&__detail-amount {
font-weight: 600;
color: @danger-color;
&__steps &__sub-title {
font-size: 15px;
}
// 三步指引:序号实底蓝圆 024FFF,步骤文字 14 设计px → 11px
&__step-list {
.flex(column, flex-start);
gap: @spacing-sm;
.flex(column, flex-start, stretch);
gap: 12px;
padding-left: 0;
list-style: none;
}
&__step {
.flex(row, flex-start, center);
.flex(row, flex-start, flex-start);
gap: @spacing-sm;
font-size: @font-size-base;
font-size: 11px;
line-height: 1.7;
color: @text-color;
}
&__step-index {
.flex(row, center);
width: 22px;
height: 22px;
width: 16px;
height: 16px;
margin-top: 1px;
border-radius: @radius-round;
background: @primary-light;
color: @primary-color;
font-size: @font-size-sm;
background: @primary-strong;
color: @white;
font-size: 11px;
font-weight: 700;
flex-shrink: 0;
}
&__footer {
// 订单明细:浅灰底板 + 白底行卡(设计 33 实取 #F7F8F9 / #FFFFFF)
&__detail-list {
.flex(column, flex-start, stretch);
gap: 6px;
margin: 0;
padding: 6px;
list-style: none;
border-radius: 6px;
background: @bg-color;
}
&__detail-item {
.flex(row, flex-start, center);
gap: @spacing-sm;
padding: 8px 10px;
border-radius: @radius-sm;
background: @white;
font-size: 11px;
color: @heading-color;
}
&__detail-label {
width: 56px;
flex-shrink: 0;
font-size: 11px;
}
&__detail-amount {
margin-left: auto;
font-weight: 700;
color: @danger-color;
}
// 安全提示横幅:浅绿底 + 绿字(设计 33 实取 #D2EEDC / #16A34A)
&__safe {
padding: 8px 12px;
border-radius: @radius-sm;
background: @finance-safe-bg;
color: @success-color;
font-size: 11px;
font-weight: 600;
line-height: 1.6;
}
// 卡下操作区:右对齐(设计 33 返回按钮在卡右下)
&__footer {
.flex(row, flex-end, center);
gap: @spacing-base;
margin-top: @spacing-lg;
padding-top: @spacing-base;
border-top: 1px solid @border-color;
margin-top: @spacing-base;
}
:deep(.app-button--primary) {
background: @primary-strong;
&:hover {
background: @primary-color;
}
}
}
</style>