feat(fulfillment): 增加事务 Outbox 同步履约状态
- 用事务 Outbox 和签名 Webhook 替换直接状态回调 - 增加 Outbox 投递 worker、重试与低频对账兜底 - 缓存客户领取页绑定状态并补充签名与迁移测试
This commit is contained in:
@@ -3117,6 +3117,288 @@
|
||||
background: rgba(127, 29, 29, 0.24);
|
||||
}
|
||||
|
||||
.customer-douyu-qr-main {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 30px minmax(0, 220px) 30px;
|
||||
align-items: stretch;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.customer-douyu-qr-rail {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 0;
|
||||
padding: 0;
|
||||
color: #ff5a67;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
line-height: 1.05;
|
||||
letter-spacing: 1px;
|
||||
text-align: center;
|
||||
writing-mode: vertical-rl;
|
||||
text-orientation: upright;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-qr-main .customer-binding-qr-code {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-qr-preparing {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
border-radius: 7px;
|
||||
background: #171c24;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-qr-skeleton {
|
||||
position: absolute;
|
||||
inset: 18px;
|
||||
opacity: 0.16;
|
||||
background-image:
|
||||
linear-gradient(90deg, #9fb1ca 50%, transparent 50%),
|
||||
linear-gradient(#9fb1ca 50%, transparent 50%);
|
||||
background-position:
|
||||
0 0,
|
||||
0 0;
|
||||
background-size:
|
||||
18px 18px,
|
||||
18px 18px;
|
||||
-webkit-mask-image: linear-gradient(135deg, #000 12%, transparent 82%);
|
||||
mask-image: linear-gradient(135deg, #000 12%, transparent 82%);
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-qr-preparing-copy {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #b8c1cf;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-qr-preparing-copy strong {
|
||||
color: #e2e8f0;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-qr-preparing-copy span {
|
||||
color: #8f9aaa;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-preparing-button.ant-btn {
|
||||
color: #e2e8f0;
|
||||
border-color: #465063;
|
||||
background: #2a313d;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-preparing-button.ant-btn:hover,
|
||||
.customer-auth-page.is-douyu .customer-douyu-preparing-button.ant-btn:focus-visible {
|
||||
color: #fff;
|
||||
border-color: #657186;
|
||||
background: #343c4a;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-actions.is-single {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-actions .ant-btn:disabled {
|
||||
color: #7d8797;
|
||||
border-color: #394353;
|
||||
background: #252c37;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-countdown.is-expired {
|
||||
color: #ff7a84;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-qr-refresh-note {
|
||||
margin: -2px 0 0;
|
||||
color: #8f9aaa;
|
||||
font-size: 11px;
|
||||
line-height: 1.4;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-binding-alert.is-wechat {
|
||||
border-color: rgba(248, 113, 113, 0.34);
|
||||
background: linear-gradient(135deg, rgba(127, 29, 29, 0.26), rgba(32, 38, 49, 0.9));
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-binding-alert.is-wechat .ant-alert-icon,
|
||||
.customer-auth-page.is-douyu .customer-douyu-binding-alert.is-wechat .ant-alert-message,
|
||||
.customer-auth-page.is-douyu .customer-douyu-binding-alert.is-wechat .ant-alert-title {
|
||||
color: #ff8a92;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact {
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-auth-shell {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-auth-hero {
|
||||
min-height: 148px;
|
||||
padding: 0 16px 18px;
|
||||
background-position: center 34%;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-auth-warning {
|
||||
padding: 8px 16px 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-auth-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
padding-bottom: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-douyu-order-card {
|
||||
flex: none;
|
||||
margin: 10px 16px 0;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-douyu-order-head {
|
||||
padding: 13px 16px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-douyu-order-field {
|
||||
grid-template-columns: 72px minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
padding: 11px 16px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-douyu-order-field > span,
|
||||
.customer-auth-page.is-douyu.is-compact .customer-douyu-order-field > strong {
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-stage {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
justify-content: center;
|
||||
gap: 14px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-stage .ant-alert {
|
||||
flex: none;
|
||||
padding: 12px 14px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-stage .ant-alert-description {
|
||||
margin-top: 4px;
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-qr-card {
|
||||
flex: 0 1 auto;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-qr-card h3 {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-qr-hint {
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-qr-countdown {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-qr-card .ant-progress {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-qr-actions {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-qr-actions .ant-btn {
|
||||
height: 40px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media (max-height: 720px) {
|
||||
.customer-auth-page.is-douyu.is-compact .customer-auth-hero {
|
||||
min-height: 60px;
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-auth-warning {
|
||||
padding-block: 1px 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-douyu-order-head {
|
||||
padding-block: 6px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-douyu-order-field {
|
||||
padding-block: 5px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-stage {
|
||||
justify-content: flex-start;
|
||||
gap: 6px;
|
||||
padding-block: 6px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-stage .ant-alert-description {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-qr-card {
|
||||
gap: 4px;
|
||||
padding-block: 7px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-douyu-qr-main {
|
||||
grid-template-columns: 26px minmax(0, clamp(154px, 30dvh, 190px)) 26px;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-douyu-qr-rail {
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.customer-choice-switch {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
|
||||
Reference in New Issue
Block a user