feat(web-admin): unify CRM confirm dialogs for customer and product.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
5c791b00cb
commit
4fd178499e
17 files changed
+4186
-206
No files matched your search
@@ -0,0 +1,532 @@
|
||||
/* 工作台业务页视觉原语:仅通过局部 modifier 启用,避免改变历史两栏筛选消费者。 */
|
||||
.mp-wv-touch-target {
|
||||
min-width: 44px;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.mp-wv-status-tabs {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
padding: 0 0 10px;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.mp-wv-status-tabs::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mp-wv-status-tabs .filter-tag {
|
||||
flex: 0 0 auto;
|
||||
min-height: 44px;
|
||||
padding: 0 14px;
|
||||
font-size: 13px;
|
||||
color: #6b7b74;
|
||||
background: #fff;
|
||||
border: 1px solid #dcebe4;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.mp-wv-status-tabs .filter-tag.is-active {
|
||||
font-weight: 600;
|
||||
color: #087f57;
|
||||
background: #e9f9f2;
|
||||
border-color: #0a9f6d;
|
||||
}
|
||||
|
||||
.mp-wv-status-tabs .filter-tag:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.mp-wv-status-tabs .filter-tag__count {
|
||||
margin-left: 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.mp-wv-filter-wrap.mp-wv-filter-wrap--business {
|
||||
z-index: 21;
|
||||
}
|
||||
|
||||
.mp-wv-filter-bar.mp-wv-filter-bar--three {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.mp-wv-filter-bar--three .mp-wv-filter-trig {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.mp-wv-filter-wrap--business .mp-wv-filter-opt {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.mp-wv-filter-wrap--business > .mp-wv-filter-mask {
|
||||
z-index: 7;
|
||||
}
|
||||
|
||||
.mp-wv-filter-more__dot {
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
right: calc(50% - 24px);
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
background: #dc2626;
|
||||
border: 1px solid #fff;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card {
|
||||
margin-bottom: 10px;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
border: 1px solid #dcebe4;
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 6px 16px rgb(10 159 109 / 8%);
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .ec-top {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding: 12px 12px 8px;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .expense-card__select {
|
||||
display: inline-flex;
|
||||
flex: 0 0 44px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .expense-card__select > span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: #fff;
|
||||
background: #0a9f6d;
|
||||
border: 1px solid #0a9f6d;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .expense-card__select[aria-pressed='false'] > span {
|
||||
background: #fff;
|
||||
border-color: #a8bbb2;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .ec-title {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: #1f2a26;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .expense-card__open {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
text-align: left;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .status-tag,
|
||||
.mp-crm-approval-timeline .status-tag {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
min-height: 24px;
|
||||
padding: 2px 8px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .status-tag--success,
|
||||
.mp-crm-approval-timeline .status-tag--success {
|
||||
color: #087f57;
|
||||
background: #e9f9f2;
|
||||
border-color: #b7ebce;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .status-tag--primary,
|
||||
.mp-crm-approval-timeline .status-tag--primary {
|
||||
color: #087f57;
|
||||
background: #e9f9f2;
|
||||
border-color: #b7ebce;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .status-tag--warning,
|
||||
.mp-crm-approval-timeline .status-tag--warning {
|
||||
color: #a16207;
|
||||
background: #fffbeb;
|
||||
border-color: #fde68a;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .status-tag--danger,
|
||||
.mp-crm-approval-timeline .status-tag--danger {
|
||||
color: #b91c1c;
|
||||
background: #fef2f2;
|
||||
border-color: #fecaca;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .status-tag--info,
|
||||
.mp-crm-approval-timeline .status-tag--info {
|
||||
color: #475569;
|
||||
background: #f1f5f9;
|
||||
border-color: #dbe4ee;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .ec-amount {
|
||||
padding: 4px 12px 10px;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .ec-amount__label {
|
||||
display: block;
|
||||
margin-bottom: 2px;
|
||||
font-size: 11px;
|
||||
color: #6b7b74;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .ec-amount__value {
|
||||
font-size: 24px;
|
||||
line-height: 1.2;
|
||||
color: #087f57;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .ec-emphasis {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 7px 12px;
|
||||
font-size: 13px;
|
||||
color: #334155;
|
||||
border-top: 1px solid #f0f4f2;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .list-card-kv {
|
||||
padding: 8px 10px;
|
||||
margin: 0 12px 8px;
|
||||
font-size: 12px;
|
||||
line-height: 1.55;
|
||||
color: #475569;
|
||||
background: #f7faf8;
|
||||
border-radius: 9px;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .ec-time {
|
||||
padding: 0 12px 10px;
|
||||
margin: 0;
|
||||
font-size: 11px;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .ec-bottom {
|
||||
padding: 8px 12px;
|
||||
border-top: 1px dashed #cbded4;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .op-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.mp-crm-expense-card .op-actions > button,
|
||||
.mp-crm-expense-card .op-actions > a {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, 72px);
|
||||
gap: 10px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid .att-item,
|
||||
.mp-crm-att-grid .att-img,
|
||||
.mp-crm-att-grid .att-doc-thumb,
|
||||
.mp-crm-att-grid .att-add {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid .att-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid .att-preview,
|
||||
.mp-crm-att-grid .att-add {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
background: #f7faf8;
|
||||
border: 1px solid #dcebe4;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid .att-img {
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid .att-doc-thumb {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 6px;
|
||||
color: #087f57;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid .att-doc-thumb small {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
font-size: 10px;
|
||||
color: #6b7b74;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid .att-add {
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
color: #087f57;
|
||||
background: #fff;
|
||||
border-color: #8ed8b8;
|
||||
border-style: dashed;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid .att-add > span {
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.mp-crm-att-grid .att-remove {
|
||||
position: absolute;
|
||||
top: -11px;
|
||||
right: -11px;
|
||||
z-index: 1;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
padding: 0;
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
background: radial-gradient(circle, #dc2626 0 10px, transparent 11px);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.mp-crm-approval-timeline {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.mp-crm-approval-timeline__item {
|
||||
display: grid;
|
||||
grid-template-columns: 38px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
min-height: 64px;
|
||||
}
|
||||
|
||||
.mp-crm-approval-timeline__rail {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.mp-crm-approval-timeline__rail::after {
|
||||
position: absolute;
|
||||
top: 34px;
|
||||
bottom: 0;
|
||||
width: 1px;
|
||||
content: '';
|
||||
background: #cfe7dc;
|
||||
}
|
||||
|
||||
.mp-crm-approval-timeline__item:last-child .mp-crm-approval-timeline__rail::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mp-crm-approval-timeline__avatar {
|
||||
z-index: 1;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
background: #0a9f6d;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.mp-crm-approval-timeline__content {
|
||||
padding: 0 0 16px;
|
||||
}
|
||||
|
||||
.mp-crm-approval-timeline__head {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 32px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.mp-crm-approval-timeline__opinion,
|
||||
.mp-crm-approval-timeline__time {
|
||||
display: block;
|
||||
margin: 4px 0 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
color: #6b7b74;
|
||||
}
|
||||
|
||||
/* ── CRM 确认弹窗:方案 A(绿)/ B(红+警示),className 限定 ── */
|
||||
body .van-dialog.mp-crm-dialog {
|
||||
overflow: hidden;
|
||||
width: 300px !important;
|
||||
max-width: calc(100vw - 48px);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 16px 40px rgb(15 40 30 / 22%);
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .van-dialog__header {
|
||||
padding: 20px 20px 0;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: #1f2a26;
|
||||
line-height: 1.4;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .van-dialog__content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .van-dialog__message {
|
||||
padding: 10px 20px 20px;
|
||||
font-size: 14px;
|
||||
line-height: 1.55;
|
||||
color: #6b7b74;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog.mp-crm-dialog--danger .van-dialog__header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog.mp-crm-dialog--danger .van-dialog__message {
|
||||
padding: 20px 20px 20px;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .mp-crm-dialog__warn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin: 0 0 12px;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .mp-crm-dialog__warn-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #dc2626;
|
||||
background: #fef2f2;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .mp-crm-dialog__title {
|
||||
margin: 0 0 8px;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
line-height: 1.4;
|
||||
color: #1f2a26;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .mp-crm-dialog__msg {
|
||||
color: #6b7b74;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .van-dialog__footer {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 0 16px 16px;
|
||||
border-top: none !important;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .van-dialog__footer::after,
|
||||
body .van-dialog.mp-crm-dialog .van-hairline--left::after,
|
||||
body .van-dialog.mp-crm-dialog .van-hairline--top::after {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .van-dialog__cancel,
|
||||
body .van-dialog.mp-crm-dialog .van-dialog__confirm {
|
||||
flex: 1;
|
||||
height: 40px !important;
|
||||
min-height: 40px !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 10px !important;
|
||||
font-size: 14px !important;
|
||||
font-weight: 600 !important;
|
||||
line-height: 40px !important;
|
||||
border-radius: 10px !important;
|
||||
border: 1px solid #dcebe4 !important;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .van-dialog__cancel {
|
||||
color: #1f2a26 !important;
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog .van-dialog__confirm {
|
||||
color: #fff !important;
|
||||
background: #0a9f6d !important;
|
||||
border-color: #0a9f6d !important;
|
||||
}
|
||||
|
||||
body .van-dialog.mp-crm-dialog.mp-crm-dialog--danger .van-dialog__confirm {
|
||||
background: #dc2626 !important;
|
||||
border-color: #dc2626 !important;
|
||||
}
|
||||
Reference in new issue
Block a user