@use './mp-crm-primitives'; /* 原生顶栏只能实色 #087f57;H5 头顶部必须同色竖向过渡,避免 145° 渐变在接缝处色差/假横线 */ .mp-wv-header { position: sticky; top: 0; /* 高于详情 sticky Tab(40),避免滚动时 Tab 文案钻进绿头 */ z-index: 50; isolation: isolate; /* 小程序壳已 custom:无 uni-page-head;顶留白给状态栏/刘海 */ margin: 0 -10px 12px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 14px 8px; color: #fff; background: #087f57; background-image: linear-gradient(180deg, #087f57 0%, #087f57 28%, #0a9f6d 78%, #0a9f6d 100%); border: 0; border-bottom-left-radius: 22px; border-bottom-right-radius: 22px; /* 阴影只向下,避免顶边看起来像横线 */ box-shadow: 0 10px 18px -10px rgba(8, 127, 87, 0.35); } .mp-wv-header__row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; min-width: 0; } /* button. 提高优先级:业务页常见 button { font: inherit } 会把箭头收成正文 14px */ .mp-wv-header__back, .mp-wv-header button.mp-wv-header__back { flex-shrink: 0; padding: 4px 8px; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif; font-size: 20px; font-weight: 400; font-style: normal; line-height: 1; color: #fff; background: none; border: none; cursor: pointer; } .mp-wv-header__back:active { opacity: 0.75; } /* h1. 提高优先级:业务页 h1 { margin-bottom } 会在 flex 居中时把标题顶上去 */ .mp-wv-header__title, .mp-wv-header h1, .mp-wv-header h1.mp-wv-header__title { margin: 0; min-width: 0; font-size: 17px; font-weight: 700; line-height: 24px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mp-wv-header__row .mp-wv-header__title { flex: 1; padding-right: 4px; } .mp-wv-header__actions { display: flex; flex-shrink: 0; gap: 8px; align-items: center; margin-left: auto; } .mp-wv-header__row .el-tag { flex-shrink: 0; } /* 绿顶栏上 info(草稿中/已取消)用白字,避免深灰正文色对比不足 */ html body .mp-wv-header__row .el-tag.el-tag--info { --el-tag-text-color: #ffffff; --el-tag-hover-color: #ffffff; color: #ffffff !important; } .mp-wv-search { margin-top: 10px; padding: 10px 14px; font-size: 13px; color: #1f2a26; background: #fff; border: none; border-radius: 999px; width: 100%; box-sizing: border-box; } /* 列表启动骨架与正式页同一套绿头,避免就绪后标题上跳 */ .mp-wv-root--customer-list { .mp-wv-header { margin-bottom: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: 8px; } .mp-wv-header__row { min-height: 36px; } .mp-wv-header__back.mp-wv-touch-target { min-height: 36px; } } /* 客户/产品/报价列表:头部同运输计划(mp-wv-header);下方筛选 / Tab */ .mp-customer-list, .mp-product-list, .mp-quote-list, .mp-contract-list, .mp-plan-list, .mp-plan-cert-page, .mp-plan-cert-list, .mp-legal-doc-list { /* 绿头与筛选零间距;标题行除安全区外不再额外上边距 */ .mp-wv-header { margin-bottom: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: 8px; } /* 首张列表卡片与绿头留出间距 */ .mp-customer-content, .mp-product-content { padding-top: 12px; } /* 筛选行在绿头内、紧贴检索框下:无底色/边框,文字用白色系 */ .mp-wv-header .mp-customer-dd, .mp-wv-header .mp-product-dd, .mp-wv-header .mp-quote-dd { margin: 4px 0 0; background: transparent; border: 0; box-shadow: none; --van-dropdown-menu-height: 36px; --van-dropdown-menu-background: transparent; --van-dropdown-menu-shadow: none; --van-dropdown-menu-title-font-size: 13px; --van-dropdown-menu-title-text-color: rgb(255 255 255 / 78%); --van-dropdown-menu-title-active-text-color: #fff; .van-dropdown-menu__bar { background: transparent !important; box-shadow: none !important; } .van-dropdown-menu__title { color: rgb(255 255 255 / 78%); } .van-dropdown-menu__title--active { color: #fff; font-weight: 700; } .van-dropdown-menu__title:after { border-color: transparent transparent rgb(255 255 255 / 55%) rgb(255 255 255 / 55%); } .van-dropdown-menu__title--active:after { border-color: transparent transparent #fff #fff; } .van-dropdown-menu__item:only-child { flex: 0 0 auto; justify-content: flex-start; padding-left: 2px; } } .mp-wv-header__row { min-height: 36px; } .mp-wv-header__back.mp-wv-touch-target { min-height: 36px; } .mp-customer-filters-flush.mp-wv-filter-wrap, .mp-wv-filter-wrap.mp-customer-filters-flush { z-index: 21; margin: 0 -10px 12px; } .mp-customer-filters-flush .mp-wv-filter-trig { min-height: 36px; } /* 视图切换:绿头内 van-tabs,白字 + 白下划线(简约,非胶囊) */ .mp-wv-header .mp-customer-view-tabs.van-tabs { margin: 6px 0 0; background: transparent; --van-tabs-nav-background: transparent; --van-tabs-line-height: 34px; --van-tab-text-color: rgb(255 255 255 / 72%); --van-tab-active-text-color: #fff; --van-tabs-bottom-bar-color: #fff; --van-tabs-bottom-bar-height: 2px; } .mp-wv-header .mp-customer-view-tabs .van-tabs__nav { background: transparent; } .mp-wv-header .mp-customer-view-tabs .van-tab { flex: 1; font-size: 13px; font-weight: 500; } .mp-wv-header .mp-customer-view-tabs .van-tab--active { font-weight: 700; } .mp-wv-header .mp-customer-view-tabs .van-tabs__content { display: none; } /* 骨架:模拟绿头简约 Tab(文字 + 选中下划线),勿用白底胶囊 */ .mp-wv-header .mp-customer-view-tabs.mp-list-skel__view-tabs { display: flex; gap: 0; align-items: stretch; margin: 6px 0 0; min-height: 34px; background: transparent; } .mp-wv-header .mp-list-skel__view-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px 6px; font-size: 13px; font-weight: 500; line-height: 1.2; color: rgb(255 255 255 / 72%); border-bottom: 2px solid transparent; } .mp-wv-header .mp-list-skel__view-tab.is-active { font-weight: 700; color: #fff; border-bottom-color: #fff; } /* 卡片底栏按钮:对齐运输计划 .mp-wv-card-actions(列表页旧 expense-card) */ .mp-crm-expense-card .ec-bottom { padding: 10px 12px 12px; } .mp-crm-expense-card .op-actions { display: flex; flex-wrap: nowrap; gap: 8px; justify-content: stretch; } .mp-crm-expense-card .op-actions > .mp-wv-btn { flex: 1; min-width: 0; min-height: 0; height: 30px; padding: 0 8px; } } /* Vant shrink 会把导航收成内容宽,这里拉满并均分 */ .mp-quote-list .mp-wv-header .mp-customer-view-tabs .van-tabs__wrap, .mp-quote-list .mp-wv-header .mp-customer-view-tabs .van-tabs__nav, .mp-contract-list .mp-wv-header .mp-customer-view-tabs .van-tabs__wrap, .mp-contract-list .mp-wv-header .mp-customer-view-tabs .van-tabs__nav { box-sizing: border-box; width: 100% !important; } .mp-quote-list .mp-wv-header .mp-customer-view-tabs .van-tab, .mp-contract-list .mp-wv-header .mp-customer-view-tabs .van-tab { flex: 1 1 0 !important; min-width: 0; min-height: 44px; } /* * 上面把 .van-tabs__nav 设成 border-box 后,Vant 的 padding-bottom:15px * 被算进高度,指示线默认 bottom:15px 会落到文字上沿。去掉这块留白,线贴在文字底部。 */ .mp-quote-list .mp-wv-header .mp-customer-view-tabs.van-tabs, .mp-contract-list .mp-wv-header .mp-customer-view-tabs.van-tabs { --van-tabs-line-height: 44px; } .mp-quote-list .mp-wv-header .mp-customer-view-tabs .van-tabs__nav, .mp-contract-list .mp-wv-header .mp-customer-view-tabs .van-tabs__nav { height: 44px; padding-bottom: 0; } .mp-quote-list .mp-wv-header .mp-customer-view-tabs .van-tabs__line, .mp-contract-list .mp-wv-header .mp-customer-view-tabs .van-tabs__line { bottom: 0; } /* 运输计划:7 个标题不换行,放不下时在绿头内左右滑 */ .mp-plan-list .mp-wv-header .mp-customer-view-tabs.van-tabs { --van-tabs-line-height: 44px; .van-tabs__wrap { height: 44px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } .van-tabs__wrap::-webkit-scrollbar { display: none; } .van-tabs__nav { box-sizing: border-box; width: max-content !important; min-width: 100%; height: 44px; padding-bottom: 0; } .van-tab { flex: 0 0 auto !important; align-items: center; min-width: max-content; height: 44px; min-height: 44px; padding: 0 12px; } .van-tab__text { overflow: visible; white-space: nowrap; } .van-tabs__line { bottom: 0; } } /* 运输证件管理:五个标题按文字宽度显示,放不下时横向滑动,不截断。 */ .mp-plan-cert-page .mp-wv-header .mp-customer-view-tabs.van-tabs { --van-tabs-line-height: 44px; .van-tabs__wrap { height: 44px; overflow-x: auto; overflow-y: hidden; } .van-tabs__nav { box-sizing: border-box; width: max-content !important; min-width: 100%; height: 44px; padding: 0; } .van-tab { flex: 1 0 auto !important; align-items: center; width: auto; min-width: max-content; height: 44px; min-height: 44px; padding: 0 6px; } .van-tab__text { overflow: visible; text-overflow: clip; white-space: nowrap; } .van-tabs__line { bottom: 2px; z-index: 1; height: 2px !important; background: #fff !important; } } /* 列表卡片:客户 / 产品共用骨架 */ .mp-customer-list .mp-customer-list-card, .mp-product-list .mp-product-list-card, .mp-quote-list .mp-quote-list-card, .mp-contract-list .mp-wv-flat-card, .mp-plan-list .mp-wv-flat-card, .mp-plan-cert-list .mp-wv-flat-card, .mp-legal-doc-list .mp-wv-flat-card { padding: 14px 14px 12px; margin-bottom: 12px; cursor: pointer; .mp-wv-card__head { align-items: flex-start; margin-bottom: 2px; } .mp-customer-list-card__head-main, .mp-product-list-card__head-main, .mp-quote-list-card__head-main, .mp-wv-flat-card__head-main { display: flex; flex: 1; gap: 8px; align-items: flex-start; min-width: 0; } .mp-customer-list-card__check, .mp-wv-flat-card__check { flex-shrink: 0; margin-top: 2px; } .mp-customer-list-card__titles, .mp-product-list-card__titles, .mp-quote-list-card__titles, .mp-wv-flat-card__titles { flex: 1; min-width: 0; } .mp-wv-card__no { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .status-tag { display: inline-flex; flex-shrink: 0; 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; } .status-tag--success, .status-tag--primary { color: #087f57; background: #e9f9f2; border-color: #b7ebce; } .status-tag--warning { color: #a16207; background: #fffbeb; border-color: #fde68a; } .status-tag--danger { color: #b91c1c; background: #fef2f2; border-color: #fecaca; } .status-tag--info { color: #475569; background: #f1f5f9; border-color: #dbe4ee; } .mp-wv-card-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #dcebe4; } .mp-wv-card-actions .mp-wv-btn { flex: 1; height: 30px; min-height: 30px; padding: 0 10px; font-size: 13px; line-height: 1; border-radius: 8px; } .mp-wv-card-actions--single .mp-wv-btn { flex: 0 0 auto; min-width: 72px; } .mp-wv-card-actions .mp-wv-btn.is-danger { color: #b91c1c; background: #fff7f7; border-color: #fecaca; } } /* 产品列表:扁平摘要 + 预览 / 展开(无色块,对齐客户列表) */ .mp-product-list .mp-product-list-card { .mp-product-list-card__meta { margin-top: 4px; font-size: 12px; line-height: 1.5; color: #6b7b74; } .mp-wv-card__no .mp-product-hazard { margin-left: 6px; vertical-align: middle; } .mp-product-list-card__preview { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; } .mp-product-list-card__line { display: flex; gap: 10px; justify-content: space-between; font-size: 13px; color: #223b33; > span:first-child { color: #6b7b74; font-size: 12px; } > span:last-child { font-weight: 500; text-align: right; } } .mp-product-list-card__toggle { display: flex; gap: 4px; align-items: center; justify-content: center; width: 100%; margin-top: 10px; padding: 8px 0 2px; font-size: 13px; font-weight: 600; color: #087f57; background: none; border: 0; cursor: pointer; } .mp-product-list-card__toggle-icon { font-size: 11px; line-height: 1; } .mp-product-list-card__extra { margin-top: 8px; } .mp-product-list-card__row { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; font-size: 13px; line-height: 1.45; > span:first-child { flex: 0 0 auto; min-width: 5em; color: #6b7b74; white-space: nowrap; } > span:last-child { flex: 1; min-width: 0; color: #1f2a26; text-align: right; word-break: break-word; } } } /* 客户列表:方案 B 扁平摘要 + 预览 / 展开(无色块) */ .mp-customer-list .mp-customer-list-card { .mp-customer-list-card__meta { margin-top: 4px; font-size: 12px; line-height: 1.5; color: #6b7b74; } .mp-customer-list-card__preview { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; } .mp-customer-list-card__line { display: flex; gap: 10px; justify-content: space-between; font-size: 13px; color: #223b33; > span:first-child { color: #6b7b74; font-size: 12px; } > span:last-child { font-weight: 500; text-align: right; } } .mp-customer-list-card__toggle { display: flex; gap: 4px; align-items: center; justify-content: center; width: 100%; margin-top: 10px; padding: 8px 0 2px; font-size: 13px; font-weight: 600; color: #087f57; background: none; border: 0; cursor: pointer; } .mp-customer-list-card__toggle-icon { font-size: 11px; line-height: 1; } .mp-customer-list-card__extra { margin-top: 8px; } .mp-customer-list-card__row { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; font-size: 13px; line-height: 1.45; > span:first-child { flex: 0 0 auto; min-width: 5em; color: #6b7b74; white-space: nowrap; } > span:last-child { flex: 1; min-width: 0; color: #1f2a26; text-align: right; word-break: break-word; } } } /* 报价列表:扁平摘要 + 预览 / 展开(对齐客户/产品) */ .mp-quote-list .mp-quote-list-card { .mp-quote-list-card__meta { margin-top: 4px; font-size: 12px; line-height: 1.5; color: #6b7b74; } .mp-quote-list-card__preview { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; } .mp-quote-list-card__line { display: flex; gap: 10px; justify-content: space-between; font-size: 13px; color: #223b33; > span:first-child { color: #6b7b74; font-size: 12px; } > span:last-child { font-weight: 500; text-align: right; } } .mp-quote-list-card__toggle { display: flex; gap: 4px; align-items: center; justify-content: center; width: 100%; margin-top: 10px; padding: 8px 0 2px; font-size: 13px; font-weight: 600; color: #087f57; background: none; border: 0; cursor: pointer; } .mp-quote-list-card__toggle-icon { font-size: 11px; line-height: 1; } .mp-quote-list-card__extra { margin-top: 8px; } .mp-quote-list-card__row { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; font-size: 13px; line-height: 1.45; > span:first-child { flex: 0 0 auto; min-width: 5em; color: #6b7b74; white-space: nowrap; } > span:last-child { flex: 1; min-width: 0; color: #1f2a26; text-align: right; word-break: break-word; } } } .mp-contract-list .mp-wv-flat-card, .mp-plan-list .mp-wv-flat-card, .mp-plan-cert-list .mp-wv-flat-card, .mp-legal-doc-list .mp-wv-flat-card { .mp-wv-flat-card__meta { margin-top: 4px; font-size: 12px; line-height: 1.5; color: #6b7b74; } .mp-wv-flat-card__preview { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; } .mp-wv-flat-card__line, .mp-wv-flat-card__row { display: flex; gap: 10px; justify-content: space-between; font-size: 13px; color: #223b33; > span:first-child { flex: 0 0 auto; color: #6b7b74; font-size: 12px; } > span:last-child { min-width: 0; font-weight: 500; text-align: right; word-break: break-word; } } .mp-wv-flat-card__toggle { display: flex; gap: 4px; align-items: center; justify-content: center; width: 100%; margin-top: 10px; padding: 8px 0 2px; font-size: 13px; font-weight: 600; color: #087f57; background: none; border: 0; cursor: pointer; } .mp-wv-flat-card__toggle-icon { font-size: 11px; line-height: 1; } .mp-wv-flat-card__extra { margin-top: 8px; } } .mp-h5-list-content { padding: 12px 2px 24px; } .mp-h5-load-hint { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 8px 0 4px; padding: 8px 0 16px; font-size: 12px; line-height: 1.4; color: #8a9a93; } .mp-h5-load-sentinel { height: 1px; } .mp-h5-detail-page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); } .mp-h5-detail-page .mp-wv-fab-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; width: 100%; max-width: min(480px, 100%); margin: 0 auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgb(34 64 52 / 12%); } .mp-h5-detail-page .mp-wv-fab-bar .mp-wv-btn { height: 30px; min-height: 30px; } .mp-h5-detail-page .mp-wv-section > h3 { position: relative; padding-left: 10px; margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #1f2a26; &::before { position: absolute; top: 0.15em; bottom: 0.15em; left: 0; width: 3px; content: ''; background: #0a9f6d; border-radius: 2px; } } .cert-detail-page .mp-h5-detail-tabs.van-tabs { margin-right: 0; margin-left: 0; } .cert-detail-page .mp-h5-detail-tabs .van-tabs__wrap, .cert-detail-page .mp-h5-detail-tabs .van-tabs__nav, .mp-h5-detail-page .mp-h5-detail-tabs .van-tabs__wrap, .mp-h5-detail-page .mp-h5-detail-tabs .van-tabs__nav { width: 100% !important; } .cert-detail-page .mp-h5-detail-tabs .van-tab, .mp-h5-detail-page .mp-h5-detail-tabs .van-tab { flex: 1 1 0 !important; min-width: 0; } .mp-h5-detail-tabs.van-tabs { position: sticky; top: var(--mp-h5-sticky-top, 56px); z-index: 40; margin: 0 -10px 12px; background: #f5f8f7; --van-tabs-line-height: 44px; --van-tabs-nav-background: transparent; --van-tab-text-color: #6b7b74; --van-tab-active-text-color: #087f57; --van-tabs-bottom-bar-color: #0a9f6d; --van-tabs-bottom-bar-height: 2px; .van-tabs__wrap, .van-tabs__nav { background: #f5f8f7 !important; } .van-tabs__wrap { border-bottom: 1px solid #dcebe4; } .van-tab { flex: 1 1 0; min-width: 0; min-height: 44px; font-size: 13px; font-weight: 600; } .van-tab--active { font-weight: 700; color: #087f57; } .van-tabs__content { display: none; } } .mp-h5-anchor { scroll-margin-top: var(--mp-h5-anchor-offset, 108px); } .mp-h5-sheet.van-popup--bottom { right: 0 !important; bottom: 0 !important; left: 0 !important; max-height: 70vh; overflow: auto; transform: none !important; } .mp-h5-approve-sheet.van-popup { position: fixed !important; right: 0; bottom: 0; left: 0; max-height: 70vh; } .mp-h5-approve-sheet { --van-primary-color: #0a9f6d; --van-button-primary-background: #0a9f6d; --van-button-primary-border-color: #0a9f6d; --van-danger-color: #dc2626; --van-button-danger-background: #dc2626; --van-button-danger-border-color: #dc2626; .mp-h5-approve-sheet__panel { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #f7faf8; } .mp-h5-approve-sheet__body { flex: 1 1 auto; min-height: 0; padding: 8px 10px 16px; overflow: auto; } .mp-h5-approve-sheet__foot { display: flex; flex-shrink: 0; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #dcebe4; } .mp-h5-approve-sheet__foot .van-button, .mp-customer-filter-vant__foot .van-button { flex: 1 1 auto; height: 30px !important; min-height: 30px !important; padding: 0 16px !important; font-size: 15px !important; border-radius: 8px !important; } } .mp-contract-select-action { min-width: 44px; min-height: 36px; padding: 0 8px; font-size: 13px; color: #fff; background: transparent; border: 0; } .mp-customer-list .mp-customer-load-hint, .mp-product-list .mp-product-load-hint, .mp-quote-list .mp-quote-load-hint { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 8px 0 4px; padding: 8px 0 16px; font-size: 12px; line-height: 1.4; color: #8a9a93; text-align: center; } .mp-customer-list .mp-customer-load-sentinel { width: 100%; height: 1px; pointer-events: none; } .mp-wv-chips, .mp-wv-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 10px; -webkit-overflow-scrolling: touch; } .mp-wv-chip, .mp-wv-tab { flex: 0 0 auto; height: 32px; padding: 0 12px; font-size: 12px; color: #6b7b74; background: #fff; border: 1px solid #dcebe4; border-radius: 999px; cursor: pointer; } .mp-wv-chip.is-active, .mp-wv-tab.is-active { color: #fff; background: #0a9f6d; border-color: #0a9f6d; font-weight: 600; } .mp-wv-card { padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid #dcebe4; border-radius: 14px; box-shadow: 0 6px 16px rgba(10, 159, 109, 0.08); cursor: pointer; } .mp-wv-card__head { display: flex; justify-content: space-between; gap: 8px; } .mp-wv-card__no { font-size: 15px; font-weight: 700; color: #087f57; } .mp-wv-card__sub, .mp-wv-card__meta { margin-top: 4px; font-size: 12px; color: #6b7b74; } .mp-wv-card__product { margin-top: 8px; padding: 8px 10px; font-size: 12px; color: #087f57; background: #e9f9f2; border-radius: 10px; } .mp-wv-card__kv { margin-top: 8px; } .mp-wv-card__kv-row { display: flex; gap: 8px; margin-top: 4px; font-size: 12px; line-height: 1.45; color: #334155; > span:first-child { flex: 0 0 auto; min-width: 5.5em; color: #6b7b74; white-space: nowrap; } > span:last-child { flex: 1; min-width: 0; word-break: break-word; } > span.status-tag { flex: 0 0 auto; width: fit-content; max-width: 100%; align-self: center; } } .mp-wv-card__destinations { white-space: pre-line; } .mp-wv-card-expand { display: block; width: 100%; margin-top: 10px; padding: 8px 0; font-size: 12px; font-weight: 600; color: #087f57; text-align: center; background: #f3fbf7; border: 1px dashed #a7f3d0; border-radius: 10px; } .mp-wv-card-stop { margin-top: 10px; padding: 10px; background: #f8faf9; border: 1px solid #e2eee8; border-radius: 12px; } .mp-wv-card-stop__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; } .mp-wv-card-stop__kind { display: inline-flex; align-items: center; padding: 2px 8px; font-size: 11px; font-weight: 700; color: #087f57; background: #e9f9f2; border-radius: 999px; } .mp-wv-card-stop__customer { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #1f2a26; } .mp-wv-card-stop__internal { margin-left: 2px; } .mp-wv-card-prods { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; } .mp-wv-card-prod { padding: 8px; background: #fff; border: 1px solid #e8f0ec; border-radius: 10px; } .mp-wv-card-prod__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #087f57; } .mp-wv-card-prod__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; margin-top: 6px; font-size: 11px; color: #64748b; } .mp-wv-empty { padding: 48px 16px; font-size: 14px; color: #6b7b74; text-align: center; } .mp-wv-empty__icon { margin-bottom: 8px; font-size: 28px; line-height: 1; opacity: 0.85; } .mp-wv-empty__title { font-size: 15px; font-weight: 600; color: #1f2a26; } .mp-wv-empty__desc { margin-top: 6px; font-size: 12px; color: #94a3b8; } .mp-wv-list-loading { padding-bottom: 8px; } .mp-wv-list-loading__head { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 14px; font-size: 13px; color: #6b7b74; } .mp-wv-spinner { width: 16px; height: 16px; border: 2px solid #b7ebce; border-top-color: #0a9f6d; border-radius: 50%; animation: mp-wv-spin 0.7s linear infinite; } .mp-wv-spinner--sm { width: 14px; height: 14px; border-width: 2px; } @keyframes mp-wv-spin { to { transform: rotate(360deg); } } .mp-wv-card--skeleton { cursor: default; pointer-events: none; box-shadow: none; } .mp-wv-skel-col { flex: 1; min-width: 0; display: grid; gap: 8px; } .mp-wv-skel { border-radius: 6px; background: linear-gradient(90deg, #eef6f2 25%, #f7fbf9 37%, #eef6f2 63%); background-size: 400% 100%; animation: mp-wv-shimmer 1.2s ease infinite; } .mp-wv-skel--title { width: 58%; height: 16px; } .mp-wv-skel--sub { width: 42%; height: 12px; } .mp-wv-skel--tag { width: 56px; height: 22px; border-radius: 999px; flex-shrink: 0; } .mp-wv-skel--line { width: 88%; height: 12px; margin-top: 8px; } .mp-wv-skel--short { width: 52%; } .mp-wv-skel--mid { width: 68%; } .mp-wv-skel--block { width: 100%; height: 34px; margin-top: 10px; border-radius: 10px; } .mp-wv-card-actions--skel { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; } .mp-wv-skel--btn { width: 52px; height: 28px; border-radius: 6px; } .mp-wv-skel--btn-wide { width: 72px; } @keyframes mp-wv-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } } .mp-wv-btn--block { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .mp-wv-toolbar { display: flex; gap: 8px; margin: 0 0 12px; } .mp-wv-btn { height: 30px; padding: 0 8px; font-size: 12px; color: #1f2a26; background: #fff; border: 1px solid #dcebe4; border-radius: 6px; cursor: pointer; } .mp-wv-btn--primary { color: #fff; background: #0a9f6d; border-color: #0a9f6d; font-weight: 600; } .mp-plan-form-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 56vh; padding: 36px 20px 40px; margin: 0 0 12px; text-align: center; background: radial-gradient(120% 80% at 50% 0%, rgba(16, 185, 129, 0.12), transparent 55%), linear-gradient(180deg, #f2faf6 0%, #f5f8f7 42%, #f5f8f7 100%); border: 1px solid #d7ebe1; border-radius: 16px; box-shadow: 0 10px 28px rgba(10, 159, 109, 0.07); } .mp-plan-form-loading--page { min-height: calc(100vh - 168px); margin-top: 4px; border: none; box-shadow: none; /* 顶区由绿头栏承接,去掉上圆角,避免启动态白卡顶角露绿 */ border-top-left-radius: 0; border-top-right-radius: 0; } .mp-plan-form-loading__orb { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 4px; } .mp-plan-form-loading__dot { width: 10px; height: 10px; background: #0a9f6d; border-radius: 50%; box-shadow: 0 0 0 6px rgba(10, 159, 109, 0.12); animation: mp-plan-form-pulse 1.2s ease-in-out infinite; } .mp-plan-form-loading__title { margin: 0; font-size: 15px; font-weight: 600; color: #1f2a26; letter-spacing: 0.02em; } .mp-plan-form-loading__desc { margin: 0; max-width: 240px; font-size: 12px; line-height: 1.5; color: #6b7b74; } .mp-plan-form-loading__skel { display: grid; gap: 8px; width: 100%; max-width: 260px; margin-top: 14px; } @keyframes mp-plan-form-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.82); opacity: 0.72; } } .mp-plan-form-page .pl-plan-form-body { position: relative; min-height: 52vh; } .mp-plan-form-page .form-grid-4, .mp-plan-form-page .form-grid-3, .mp-plan-form-page .form-grid-2 { grid-template-columns: 1fr; } /* 基础信息:创建日期+计划日期、归属公司+单据类型 各一行两列 */ .mp-plan-form-page .form-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; } .mp-plan-form-page .form-grid-5 > .el-form-item:last-child { grid-column: 1 / -1; } .mp-print-hint { margin: 0 0 10px; font-size: 12px; color: #6b7b74; line-height: 1.5; } .mp-print-preview { overflow: auto; padding: 8px; background: #fff; border: 1px solid #dcebe4; border-radius: 12px; -webkit-overflow-scrolling: touch; } /* === redesign 2026-09-15 · 京东式双下拉(对齐 Demo) === */ .mp-wv-filter-wrap { position: relative; z-index: 20; /* 与顶栏底边贴合通栏,抵消 shell 左右 padding + 顶栏下 margin */ margin: -8px -10px 12px; background: #fff; border-bottom: 1px solid #dcebe4; } .mp-wv-filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; position: relative; z-index: 8; } .mp-wv-filter-trig { display: flex; align-items: center; justify-content: center; gap: 4px; height: 42px; padding: 0 8px; font-size: 13px; line-height: 1.2; color: #1f2a26; background: transparent; border: none; cursor: pointer; position: relative; min-width: 0; } .mp-wv-filter-trig + .mp-wv-filter-trig::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: #dcebe4; } .mp-wv-filter-trig__val { max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mp-wv-filter-trig__arrow { flex-shrink: 0; font-size: 10px; color: #6b7b74; transition: transform 0.15s ease, color 0.15s ease; } .mp-wv-filter-trig.open { color: #087f57; font-weight: 600; } .mp-wv-filter-trig.open .mp-wv-filter-trig__arrow { color: #0a9f6d; transform: rotate(180deg); } .mp-wv-filter-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #dcebe4; box-shadow: 0 10px 20px rgba(15, 30, 24, 0.08); max-height: 360px; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 9; } .mp-wv-filter-panel.open { display: block; } .mp-wv-filter-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 16px; font-size: 14px; color: #1f2a26; text-align: left; background: #fff; border: none; border-bottom: 1px solid #f0f4f2; cursor: pointer; } .mp-wv-filter-opt:active { background: #e9f9f2; } .mp-wv-filter-opt.active { color: #087f57; font-weight: 600; } .mp-wv-filter-opt__check { flex-shrink: 0; font-size: 14px; color: #0a9f6d; visibility: hidden; } .mp-wv-filter-opt.active .mp-wv-filter-opt__check { visibility: visible; } .mp-wv-custom-date { padding: 8px 16px 14px; border-top: 1px solid #f0f4f2; background: #f7faf8; } .mp-wv-custom-date__row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .mp-wv-custom-date__sep { flex-shrink: 0; font-size: 12px; color: #6b7b74; } .mp-wv-custom-date__input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; font-size: 13px; color: #1f2a26; background: #fff; border: 1px solid #dcebe4; border-radius: 8px; box-sizing: border-box; } .mp-wv-custom-date__ok { width: 100%; } .mp-wv-filter-mask { display: none; position: fixed; inset: 0; background: rgba(15, 30, 24, 0.35); z-index: 19; } .mp-wv-filter-mask.open { display: block; } .mp-wv-speed-dial { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; } .mp-wv-speed-main { width: 52px; height: 52px; border-radius: 50%; border: none; background: #0a9f6d; color: #fff; font-size: 28px; line-height: 1; box-shadow: 0 8px 20px rgba(10, 159, 109, 0.35); cursor: pointer; } .mp-wv-speed-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid #dcebe4; background: #fff; font-size: 13px; cursor: pointer; } .mp-wv-speed-item.primary { background: #0a9f6d; border-color: #0a9f6d; color: #fff; } .mp-wv-speed-menu { display: none; flex-direction: column; gap: 8px; align-items: flex-end; } .mp-wv-speed-dial.open .mp-wv-speed-menu { display: flex; } .mp-wv-speed-mask { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.25); z-index: 29; } .mp-wv-speed-mask.open { display: block; } .mp-wv-fab-bar { position: sticky; bottom: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; width: calc(100% + 20px); max-width: calc(100% + 20px); box-sizing: border-box; margin: 0 -10px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #dcebe4; z-index: 15; overflow: hidden; } .mp-wv-fab-bar .mp-wv-btn { flex: 1 1 0; min-width: 0; height: 32px; padding: 0 6px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mp-wv-fab-bar .mp-wv-btn-more { flex: 0 0 36px; width: 36px; padding: 0; font-size: 18px; } .mp-wv-section { margin: 0 0 10px; padding: 10px; background: #fff; border: 1px solid #dcebe4; border-radius: 12px; } .mp-wv-section h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #087f57; } .mp-wv-kv { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid #eef4f1; } .mp-wv-kv span:first-child { color: #6b7b74; flex-shrink: 0; font-size: 11px; line-height: 1.3; } .mp-wv-kv span:last-child { text-align: left; word-break: break-all; color: #1f2a26; font-weight: 500; line-height: 1.4; } .mp-wv-pad-speed { padding-bottom: 88px; } body .mp-h5-approve-sheet .mp-customer-filter-vant__foot .van-button { height: 30px !important; min-height: 30px !important; font-size: 15px !important; } /* U02:只扩展客户/产品列表的移动触控区域。 */ .mp-customer-list, .mp-product-list { .mp-wv-header__row, .mp-wv-header__back.mp-wv-touch-target, .mp-customer-filters-flush .mp-wv-filter-trig { min-height: 44px; } .mp-wv-header .mp-customer-dd, .mp-wv-header .mp-product-dd { --van-dropdown-menu-height: 44px; } .mp-wv-header .mp-customer-view-tabs.van-tabs { --van-tabs-line-height: 44px; } .mp-wv-header .mp-customer-view-tabs.mp-list-skel__view-tabs { min-height: 44px; } } /* * 产品 / 报价 / 报价审批 / 合同 / 合同审批 / 运输计划 / 危化品证 / 客户: * 操作按钮上下内间距减半。现状高 44px、上下 padding 0、文字盒约 15px, * 上下留白各 14.5px;收到 30px 后上下留白各约 7.5px。左右内边距不变。 * 返回、筛选、Tab、勾选和圆形加号不在此列。 */ // 页面和 Teleport 弹层按真实容器覆盖,避免新增子页面类名后漏掉按钮。 html body:has(.mp-wv-root) :is( .mp-wv-root, .van-popup, .van-dialog, .el-dialog, .el-message-box, .el-drawer, .mp-sheet ) button:is( .mp-wv-btn, .mp-wv-speed-item, .van-button, .el-button, .cert-btn, .mp-prod-lib__btn, .mp-prod-lib__more, .mp-addr-lib__more, .mp-veh-lib__more, .mp-carrier-lib__more, .mp-contract-lib__more, .mp-contract-line-picker__cancel, .mp-contract-line-picker__confirm, .mp-contract-line-picker__retry, .mp-cat-header-btn, .mp-paste-primary, .mp-compact-action, .plan-chip, .plan-sheet-opt, .filter-chip ):not(.mp-wv-speed-main):not(.van-stepper__minus):not(.van-stepper__plus) { box-sizing: border-box !important; height: 30px !important; min-height: 30px !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 28px !important; } // CRM、运输计划及其子弹窗统一按钮圆角;路由标记同时覆盖 Teleport 到 body 的弹层。 // 已有圆形、胶囊按钮沿用原样,背景遮罩不作为操作按钮处理。 body:has(.mp-wv-root--crm, .mp-wv-root--transport-plan) :is( .mp-wv-root--crm, .mp-wv-root--transport-plan, .van-popup, .van-dialog, .el-dialog, .el-message-box, .el-drawer, .mp-sheet ) button:is( .van-button:not(.van-button--round), .van-picker__confirm, .van-picker__cancel, .van-action-sheet__item, .van-action-sheet__cancel, .el-button:not(.is-round):not(.is-circle), .plan-sheet-opt, .mp-wv-filter-opt, .mp-wv-filter-trig, .mp-wv-flat-card__toggle, .mp-wv-header__back, .contract-link, .mobile-pl-plan-search-clear, .mobile-pl-plan-nav > button, .mobile-contract-form__nav > button, .mp-product-detail-tab, .mp-contract-parties-toggle, .mp-customer-list-card__toggle, .mp-customer-detail-card__toggle, .mp-product-list-card__toggle, .mp-quote-list-card__toggle, .mp-cat-row__toggle, .mp-cat-row__add, .mp-cat-row__more, .mp-stop-picker__search > button, .mp-contract-line-picker__header > button, .mp-sheet-close, .el-dialog__headerbtn, .pound-qr-panel__close, .att-icon, .mp-carrier-lib__row, .mp-contract-lib__row, .mp-prod-lib__row, .mp-addr-lib__row, .mp-veh-lib__row ) { border-radius: 8px !important; }