feat ui设计稿
This commit is contained in:
@@ -57,7 +57,7 @@ onMounted(() => {
|
||||
</div>
|
||||
<p class="qr-panel__status text-secondary">
|
||||
<template v-if="!expired">
|
||||
二维码将在 <strong class="qr-panel__count">{{ countdownText }}</strong> 后失效(过期可点击二维码刷新)
|
||||
<span class="qr-panel__countdown">二维码将在 <strong class="qr-panel__count">{{ countdownText }}</strong> 后失效</span>(过期可点击二维码刷新)
|
||||
</template>
|
||||
<template v-else>
|
||||
二维码已过期,请点击刷新
|
||||
@@ -67,25 +67,22 @@ onMounted(() => {
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 扫码面板(设计 39:灰色二维码占位块 + 红色倒计时胶囊 + 灰色小字提示)
|
||||
.qr-panel {
|
||||
.flex(column, center);
|
||||
gap: @spacing-sm;
|
||||
gap: 17px; // 二维码 → 倒计时(设计 22 × 0.77)
|
||||
|
||||
&__box {
|
||||
.flex(column, center);
|
||||
gap: @spacing-xs;
|
||||
border: 1px solid @border-color;
|
||||
border-radius: @radius-base;
|
||||
background: @white;
|
||||
border: none;
|
||||
border-radius: @radius-sm;
|
||||
background: @contract-qr-bg;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s;
|
||||
|
||||
&:hover {
|
||||
border-color: @primary-color;
|
||||
}
|
||||
transition: background 0.2s;
|
||||
|
||||
&.is-expired {
|
||||
background: @bg-color;
|
||||
background: @bg-color-light;
|
||||
color: @text-color-secondary;
|
||||
}
|
||||
}
|
||||
@@ -98,12 +95,28 @@ onMounted(() => {
|
||||
|
||||
&__tip {
|
||||
font-size: @font-size-sm;
|
||||
color: @text-color-secondary;
|
||||
color: @text-color;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
// 状态行:胶囊(倒计时)+ 下方灰色提示,整体居中
|
||||
&__status {
|
||||
font-size: @font-size-sm;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: @spacing-sm;
|
||||
font-size: 11px; // 设计 13/11 → 可读下限
|
||||
color: @text-color-disabled;
|
||||
}
|
||||
|
||||
&__countdown {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 8px 16px; // 胶囊高 42 设计 × 0.77
|
||||
border-radius: @radius-round;
|
||||
background: fade(@danger-color, 8%);
|
||||
color: @danger-color; // 设计 39 实取 @danger-color
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
&__count {
|
||||
|
||||
Reference in New Issue
Block a user