feat(escort): 微信支付入口与取消状态展示
- 下单改为提交预约后弹窗选择支付方式,默认微信支付 - 预约详情支持发起微信支付、查单确认与待支付期间切换支付方式 - 预约列表展示支付渠道、待支付/超时状态并提供去支付入口 - 取消状态与 status 解耦,展示状态优先取 cancelStatus - 详情页医院选择回传字段同步移除 manual
This commit is contained in:
+176
-7
@@ -212,8 +212,11 @@ page {
|
||||
.patient-chip {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
min-width: 180rpx;
|
||||
/* 140rpx:只显示姓名,胶囊按名字长度收紧,不再为手机号预留宽度 */
|
||||
min-width: 140rpx;
|
||||
padding: 16rpx 24rpx;
|
||||
border: 2rpx solid var(--line);
|
||||
border-radius: 16rpx;
|
||||
@@ -242,14 +245,15 @@ page {
|
||||
color: var(--brand-ink);
|
||||
}
|
||||
|
||||
.patient-chip-phone {
|
||||
margin-top: 6rpx;
|
||||
color: var(--ink-2);
|
||||
font-size: var(--fs-28);
|
||||
}
|
||||
|
||||
.patient-chip-add {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4rpx;
|
||||
/* 虚线描边 + 白底:与「已选就诊人」的实心浅橙底区分开,
|
||||
一眼看出这是动作入口而不是某个就诊人 */
|
||||
background: var(--white);
|
||||
border: 2rpx dashed var(--brand-line);
|
||||
}
|
||||
|
||||
.add-profile-tip {
|
||||
@@ -375,6 +379,171 @@ page {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* 支付方式:两张可选卡片,选中态沿用品牌橙 */
|
||||
.pay-channel-options {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16rpx;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
|
||||
.pay-channel-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20rpx 24rpx;
|
||||
border: 2rpx solid var(--line);
|
||||
border-radius: 18rpx;
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.pay-channel-option.active {
|
||||
border-color: var(--brand-line);
|
||||
background: var(--brand-soft);
|
||||
}
|
||||
|
||||
.pay-channel-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6rpx;
|
||||
}
|
||||
|
||||
.pay-channel-title {
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.pay-channel-desc {
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-24);
|
||||
}
|
||||
|
||||
.pay-channel-radio {
|
||||
flex-shrink: 0;
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
border: 2rpx solid var(--line);
|
||||
border-radius: 50%;
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
.pay-channel-radio.checked {
|
||||
border-color: var(--brand-strong);
|
||||
background: var(--brand-strong);
|
||||
}
|
||||
|
||||
.pay-popup-tip {
|
||||
display: block;
|
||||
margin-top: 20rpx;
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-24);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ===== 支付方式底部弹窗 ===== */
|
||||
.popup-mask {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 200;
|
||||
background: rgba(43, 37, 33, 0.45);
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.3s ease, visibility 0.3s ease;
|
||||
}
|
||||
|
||||
.popup-mask.show {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.popup-content {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 201;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: 70vh;
|
||||
background: var(--white);
|
||||
border-radius: 32rpx 32rpx 0 0;
|
||||
transform: translateY(100%);
|
||||
transition: transform 0.3s ease-out;
|
||||
}
|
||||
|
||||
.popup-content.show {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.popup-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-shrink: 0;
|
||||
padding: 28rpx 32rpx;
|
||||
border-bottom: 2rpx solid var(--line);
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-32);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.popup-close {
|
||||
padding: 8rpx;
|
||||
margin: -8rpx;
|
||||
}
|
||||
|
||||
.popup-close:active {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.popup-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 20rpx 32rpx 28rpx;
|
||||
}
|
||||
|
||||
.popup-footer {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
flex-shrink: 0;
|
||||
padding: 20rpx 32rpx;
|
||||
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
|
||||
border-top: 2rpx solid var(--line);
|
||||
}
|
||||
|
||||
.popup-btn {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 22rpx 0;
|
||||
border-radius: 999rpx;
|
||||
font-size: var(--fs-30);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.popup-btn:active {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.popup-btn-ghost {
|
||||
border: 3rpx solid var(--sep);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.popup-btn-primary {
|
||||
background: var(--brand-strong);
|
||||
color: var(--white);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.patient-chip,
|
||||
.add-profile-tip,
|
||||
|
||||
Reference in New Issue
Block a user