mobile.css
6.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* 手机页(企微里打开):卡片式、大触控区域、底部固定操作条。 */
.m { --van-primary-color: var(--c-primary); --van-success-color: var(--c-ok); --van-danger-color: var(--c-err);
--van-warning-color: var(--c-warn); min-height: 100vh; background: var(--c-bg); padding-bottom: 96px; }
.m-loading { min-height: 60vh; display: grid; place-items: center; }
.m-hero { padding: 20px 18px 18px; color: #fff; background: linear-gradient(150deg, #2f3fb8, #3e52d6 70%, #5a6ce0); }
.m-hero.ok { background: linear-gradient(150deg, #107a3d, #15924a 70%, #2fa862); }
.m-hero.warn { background: linear-gradient(150deg, #b25d04, #c96b05 70%, #de8a2a); }
.m-hero.err { background: linear-gradient(150deg, #b02b2b, #d23434 70%, #e05757); }
.m-store { font-size: 12.5px; opacity: 0.85; }
.m-doc { font-size: 18px; font-weight: 650; margin-top: 2px; letter-spacing: 0.01em; }
.m-stage { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.18); font-size: 12.5px; }
.m-tip { margin-top: 8px; font-size: 12.5px; opacity: 0.9; line-height: 1.6; }
.m-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.m-sum > div { background: rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.m-sum b { font-size: 17px; font-variant-numeric: tabular-nums; }
.m-sum span { font-size: 11.5px; opacity: 0.8; }
.m-section { padding: 18px 16px 8px; font-weight: 600; font-size: 14px; color: var(--c-text); }
.m-section span { font-weight: 400; font-size: 12px; color: var(--c-text-3); margin-left: 6px; }
.m-allbar { margin: 0 12px 10px; padding: 0 14px; font-size: 13.5px; }
.m-allbar span { margin-left: 6px; font-size: 12px; color: var(--c-text-3); }
.m-card { margin: 0 12px 10px; background: var(--c-surface); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); border: 1px solid var(--c-border); }
.m-po { margin-top: 12px; }
.m-po.ok { border-color: #bfe3cd; background: #f3fbf6; }
.m-po-sub { margin-top: 4px; font-size: 12.5px; color: var(--c-text-3); line-height: 1.6; }
.m-label { font-size: 12px; color: var(--c-text-3); }
.m-po-no { font-size: 17px; font-weight: 650; font-family: var(--font-mono); margin-top: 2px; }
.m-shots { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.m-shots img { height: 120px; border-radius: 8px; border: 1px solid var(--c-border); }
.m-line-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-line-name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.m-seq { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--c-primary-soft); color: var(--c-primary);
font-size: 12px; display: grid; place-items: center; }
.m-qty { font-size: 15px; font-variant-numeric: tabular-nums; }
.m-line-pn { font-family: var(--font-mono); font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.m-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--c-text-2); }
.m-facts b { color: var(--c-text); font-variant-numeric: tabular-nums; }
.m-wh { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; }
.m-wh .ok { color: var(--c-ok); } .m-wh .err { color: var(--c-err); }
.m-note { margin-top: 6px; font-size: 12.5px; color: var(--c-warn); }
.m-line.row-red { border-color: #f4c7c7; background: #fff8f8; }
.m-line.row-orange { border-color: #f3dcb6; background: #fffaf2; }
.m-line.row-err { border-color: #f4c7c7; }
.m-others { padding: 4px 14px; }
.m-other { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--c-border); font-size: 13px; }
.m-other:last-child { border-bottom: 0; }
.m-other.err { color: var(--c-err); }
.m-link { display: block; text-align: center; padding: 16px; font-size: 13.5px; }
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
background: var(--c-surface); box-shadow: 0 -4px 16px rgba(17, 24, 39, 0.08); z-index: 10; }
.m-bar-btn { flex: 1; border-radius: 10px !important; height: 44px !important; font-weight: 600; }
.m-bar-btn.main { flex: 2; }
.m-exp { padding: 4px 14px; }
.m-exp-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.m-exp-row:last-child { border-bottom: 0; }
.m-exp-name { flex: 1; min-width: 0; font-size: 14px; }
/* 定时补货单据页(一页多态):期望值来源标签、过期提示、折叠组、按钮倒计时、截图兜底说明、确认提交 */
.m-expired { border-color: #f4c7c7; background: #fff5f5; color: #9e2424; font-size: 13px; line-height: 1.7; margin-top: 12px; }
.m-warnbox { border-color: #f3dcb6; background: #fffaf2; color: var(--c-warn); font-size: 13px; }
.m-other-order { margin-top: 4px; word-break: break-all; }
.m-other-order a { color: var(--c-primary, #2f6bff); text-decoration: underline; }
.m-draft { margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: #fff4e5; color: var(--c-warn); font-size: 12.5px; line-height: 1.6; word-break: break-all; }
.m-fallback { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fff1f0; color: #a8071a; font-size: 12.5px; font-weight: 600; }
.m-progress { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.m-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--c-primary-soft);
color: var(--c-primary); font-family: inherit; font-size: 11px; }
.m-exp-edit { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.m-exp-lbl { color: var(--c-text-3); }
.m-src { padding: 1px 7px; border-radius: 9px; font-size: 11.5px; background: #e8f6ee; color: var(--c-ok); }
.m-src.上次 { background: #e8effd; color: #2f5bd3; }
.m-src.已修改 { background: #fff3e0; color: var(--c-warn); }
.m-reset { font-size: 12px; color: var(--c-text-3); text-decoration: underline; }
.m-qty small { font-size: 11px; font-weight: 400; color: var(--c-warn); }
.m-line.off { opacity: 0.6; }
.m-fold { cursor: pointer; display: flex; align-items: baseline; flex-wrap: wrap; }
.m-fold i { margin-left: auto; font-style: normal; color: var(--c-text-3); }
.m-count { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.22);
font-variant-numeric: tabular-nums; font-size: 12.5px; }