支付宝下单和其他细节优化

This commit is contained in:
2026-05-21 15:10:02 +08:00
parent 39bf8548df
commit 1637ee5bbc
33 changed files with 1511 additions and 232 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

@@ -200,7 +200,7 @@
// 双击提示文字
&__hint {
font-size: 0.11rem;
color: $text-light;
color: #666;
margin-bottom: 0.06rem;
line-height: 1;
}
@@ -206,7 +206,7 @@
// 双击提示文字
&__hint {
font-size: 0.11rem;
color: $text-light;
color: #666;
margin-bottom: 0.06rem;
line-height: 1;
}
@@ -10,18 +10,20 @@
display: flex;
align-items: center;
justify-content: center;
}
.member-dialog {
background: $bg-white;
border-radius: 0.2rem;
width: 8.4rem;
width: 8.8rem;
height: 80vh;
position: relative;
box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
overflow: hidden;
font-size: 0.14rem;
// 关闭按钮
&__close {
@@ -520,12 +522,11 @@
&__order-body {
flex: 1;
display: flex;
overflow: hidden;
overflow-y: auto;
}
&__order-left {
flex: 1;
overflow-y: auto;
padding: 0.3rem;
}
@@ -533,7 +534,6 @@
width: 2.8rem;
padding: 0.3rem 0.24rem;
background: $bg-main;
overflow-y: auto;
flex-shrink: 0;
}
@@ -1116,7 +1116,9 @@
padding: 0.3rem 0.4rem;
text-align: center;
position: relative;
min-width: 3.2rem;
width: 5rem;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.15);
}
@@ -1163,21 +1165,27 @@
}
&__qrcode-image {
width: 1.8rem;
height: 1.8rem;
width: 2.1rem;
height: 2.1rem;
margin: 0 auto 0.16rem;
display: flex;
align-items: center;
justify-content: center;
}
&__payment-iframe {
width: 100%;
height: 100%;
border: none;
border-radius: 0.08rem;
}
&__qrcode-placeholder {
width: 100%;
height: 100%;
background: $bg-main;
border: 1px dashed $border-color;
border-radius: 0.08rem;
// TODO: 替换为真实二维码
}
&__qrcode-amount {
@@ -0,0 +1,130 @@
@use '../variables' as *;
// ==================== 欢迎使用弹窗 ====================
.profile-welcome-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: $overlay-bg;
z-index: 2200;
display: flex;
align-items: center;
justify-content: center;
}
.profile-welcome-dialog {
width: 5.6rem;
background: $bg-white;
border-radius: 0.12rem;
padding: 0.36rem 0.4rem;
box-shadow: 0 0.04rem 0.2rem rgba(0, 0, 0, 0.15);
// 标题
&__title {
font-size: 0.22rem;
font-weight: 700;
color: $text-dark;
margin: 0 0 0.24rem 0;
}
// 表单区域
&__form {
margin-bottom: 0.2rem;
}
// 标签
&__label {
font-size: 0.14rem;
font-weight: 600;
color: $text-dark;
margin-bottom: 0.1rem;
}
// 上传区域
&__upload-area {
background: $bg-main;
border-radius: 0.08rem;
padding: 0.32rem 0.2rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background 0.2s;
margin-bottom: 0.14rem;
&:hover {
background: darken(#F3F4F5, 3%);
}
}
// 上传图标
&__upload-icon {
width: 0.44rem;
height: 0.44rem;
background: $text-dark;
border-radius: 0.06rem;
display: flex;
align-items: center;
justify-content: center;
color: $bg-white;
margin-bottom: 0.1rem;
&--done {
background: $accent;
font-size: 0.2rem;
font-weight: 700;
}
}
// 上传提示文字
&__upload-tip {
font-size: 0.12rem;
color: $text-middle;
margin: 0;
text-align: center;
}
// 隐私说明
&__privacy {
font-size: 0.11rem;
color: $text-middle;
line-height: 1.7;
margin: 0;
}
// 开始匹配按钮
&__start-btn {
width: 100%;
height: 0.46rem;
border: none;
border-radius: 0.06rem;
background: $text-dark;
color: $bg-white;
font-size: 0.15rem;
font-weight: 600;
cursor: pointer;
transition: opacity 0.2s;
&:hover:not(:disabled) {
opacity: 0.85;
}
&:disabled {
opacity: 0.4;
cursor: not-allowed;
}
}
}
// 全屏加载遮罩 — z-index 需高于弹窗 overlay2200
.profile-welcome-loading {
z-index: 2300 !important;
}
// 上传中弹窗层级降低,让 loading 遮罩盖在上面
.profile-welcome-overlay--behind {
z-index: 2000 !important;
}
@@ -317,7 +317,82 @@
line-height: 1.6;
}
// ===== 步骤2安全验证 =====
// ===== 步骤2二次确认 =====
&__confirm-card {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 0.5rem 0.8rem;
}
&__confirm-icon {
width: 0.56rem;
height: 0.56rem;
border-radius: 50%;
background: rgba($danger, 0.1);
color: $danger;
font-size: 0.24rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.2rem;
}
&__confirm-title {
font-size: 0.22rem;
font-weight: 700;
color: $text-dark;
margin: 0 0 0.12rem 0;
}
&__confirm-desc {
font-size: 0.13rem;
color: $text-middle;
line-height: 1.6;
margin: 0 0 0.28rem 0;
max-width: 3.6rem;
}
&__confirm-actions {
display: flex;
gap: 0.2rem;
width: 100%;
max-width: 4.0rem;
}
&__confirm-btn {
flex: 1;
height: 0.44rem;
border-radius: 0.06rem;
font-size: 0.15rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
&--cancel {
background: #EDF1F7;
border: none;
color: $text-dark;
&:hover {
border-color: $text-middle;
}
}
&--danger {
background: #DC2626;
border: none;
color: $bg-white;
&:hover {
background: darken(#DC2626, 8%);
}
}
}
// ===== 步骤2(备用):安全验证 =====
&__verify {
display: flex;
align-items: center;
@@ -424,25 +499,60 @@
}
// ===== 步骤3:完成 =====
&__done {
&__done-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0.6rem 0;
background: $bg-white;
border: 1px solid $border-color;
border-radius: 0.12rem;
padding: 0.6rem 0.8rem;
margin-top: 0.4rem;
text-align: center;
}
&__done-icon {
width: 0.6rem;
height: 0.6rem;
width: 0.56rem;
height: 0.56rem;
border-radius: 50%;
background: $accent;
color: $bg-white;
font-size: 0.28rem;
background: rgba($accent, 0.15);
color: $accent;
font-size: 0.26rem;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.2rem;
}
&__done-title {
font-size: 0.22rem;
font-weight: 700;
color: $text-dark;
margin: 0 0 0.12rem 0;
}
&__done-desc {
font-size: 0.13rem;
color: $text-middle;
margin: 0 0 0.28rem 0;
line-height: 1.6;
}
&__done-btn {
width: 2.6rem;
height: 0.44rem;
border: none;
border-radius: 0.12rem;
background: $accent;
color: $bg-white;
font-size: 0.15rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
&:hover {
background: $accent-hover;
}
}
}
@@ -0,0 +1,195 @@
@use '../variables' as *;
// ==================== 邀请注册送会员弹窗 ====================
.settings-invite-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: $overlay-bg;
z-index: 2200;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.14rem;
}
.settings-invite-dialog {
position: relative;
width: 4.2rem;
max-height: 85vh;
background: $bg-white;
border-radius: 0.12rem;
padding: 0.32rem 0.28rem;
box-shadow: 0 0.04rem 0.2rem rgba(0, 0, 0, 0.15);
overflow-y: auto;
// 关闭按钮
&__close {
position: absolute;
top: 0.14rem;
right: 0.18rem;
font-size: 0.18rem;
color: $text-light;
cursor: pointer;
transition: color 0.2s;
&:hover {
color: $text-dark;
}
}
// 标题
&__title {
font-size: 0.18rem;
font-weight: 700;
color: $text-dark;
text-align: center;
margin: 0 0 0.2rem 0;
}
// 邀请链接区域
&__link-box {
background: $bg-main;
border-radius: 0.08rem;
padding: 0.14rem 0.16rem;
margin-bottom: 0.14rem;
}
&__link-text {
font-size: 0.12rem;
color: $text-dark;
line-height: 1.7;
margin: 0;
word-break: break-all;
}
// 复制链接按钮
&__copy-btn {
width: 100%;
height: 0.4rem;
border: none;
border-radius: 0.2rem;
background: $text-dark;
color: $bg-white;
font-size: 0.14rem;
font-weight: 600;
cursor: pointer;
margin-bottom: 0.18rem;
transition: opacity 0.2s;
&:hover {
opacity: 0.85;
}
}
// 步骤提示
&__steps-tip {
font-size: 0.12rem;
color: $text-middle;
text-align: center;
margin: 0 0 0.14rem 0;
}
// 步骤卡片
&__step {
border: 1px solid $border-color;
border-radius: 0.08rem;
padding: 0.12rem 0.16rem;
margin-bottom: 0.1rem;
background: #F2F4F7;
}
&__step-title {
font-size: 0.13rem;
font-weight: 700;
color: $text-dark;
margin-bottom: 0.04rem;
}
&__step-desc {
font-size: 0.11rem;
color: $text-middle;
margin: 0;
line-height: 1.5;
}
// 统计数据
&__stats {
display: flex;
gap: 0.12rem;
margin-top: 0.16rem;
margin-bottom: 0.16rem;
}
&__stat-item {
flex: 1;
border: 1px solid $border-color;
border-radius: 0.08rem;
padding: 0.12rem;
}
&__stat-label {
font-size: 0.11rem;
color: $text-middle;
margin-bottom: 0.06rem;
}
&__stat-value {
font-size: 0.16rem;
font-weight: 700;
color: $text-dark;
}
// 活动规则
&__rules {
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid $border-color;
border-radius: 0.08rem;
padding: 0.12rem 0.16rem;
cursor: pointer;
transition: background 0.2s;
&:hover {
background: $bg-main;
}
}
&__rules-label {
font-size: 0.13rem;
font-weight: 600;
color: $text-dark;
}
&__rules-arrow {
width: 0.14rem;
height: 0.14rem;
color: $text-middle;
transition: transform 0.2s;
&--open {
transform: rotate(180deg);
}
}
&__rules-content {
margin-top: 0.1rem;
padding: 0.12rem 0.16rem;
background: $bg-main;
border-radius: 0.06rem;
p {
font-size: 0.11rem;
color: $text-middle;
line-height: 1.8;
margin: 0 0 0.04rem 0;
&:last-child {
margin-bottom: 0;
}
}
}
}
+2
View File
@@ -33,6 +33,8 @@
@use './components/agent-apply-progress.scss';
@use './components/ai-thinking-indicator.scss';
@use './components/settings-delete-account-dialog.scss';
@use './components/profile-welcome-dialog.scss';
@use './components/settings-invite-dialog.scss';
// 全局样式(优先级最高)
@use './auto.scss';
+1
View File
@@ -13,6 +13,7 @@
background: $bg-main;
display: flex;
flex-direction: column;
font-size: 0.14rem;
// 手动包裹的两层 div,需要撑满剩余高度并允许内部滚动
> .bg-white {
+1
View File
@@ -14,6 +14,7 @@
background: $bg-main;
display: flex;
flex-direction: column;
font-size: 0.14rem;
}
// 页面标题
+1
View File
@@ -12,6 +12,7 @@
background: $bg-main;
display: flex;
flex-direction: column;
font-size: 0.14rem;
}
// 页面标题区
+9
View File
@@ -12,6 +12,7 @@
background: $bg-main;
display: flex;
flex-direction: column;
font-size: 0.14rem;
}
&__header {
@@ -160,6 +161,14 @@
height: 0.16rem;
}
// 空状态提示
&__empty {
padding: 0.6rem 0.2rem;
text-align: center;
color: $text-light;
font-size: 0.14rem;
}
// 弹出菜单
&__popup {
position: absolute;
+2 -2
View File
@@ -48,10 +48,10 @@ $btn-dark: #4FC2C9;
$btn-dark-hover: #42A8B3;
// 次要深色按钮背景(除非特意指定使用否则不用这个按钮色)
$btn-dark: #1A1A2E;
//$btn-dark: #1A1A2E;
// 次要深色按钮悬停态(除非特意指定使用否则不用这个按钮色)
$btn-dark-hover: #2E3142;
//$btn-dark-hover: #2E3142;
// 渐变色背景
$gradient-bg: linear-gradient(to right, #4FC2C9, #42A8B3);