@tbox.cn/app-module-mall-core 1.0.0-alpha.1 → 1.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,352 +0,0 @@
1
- .activity-detail-presentation {
2
- --activity-detail-ink: #263022;
3
- --activity-detail-muted: #6f7969;
4
- --activity-detail-accent: #0a6eb8;
5
- width: 100%;
6
- min-width: 0;
7
- overflow: hidden;
8
- color: var(--activity-detail-ink);
9
- background: #ffffff;
10
-
11
- &__poster {
12
- display: block;
13
- width: 100%;
14
- height: 100%;
15
- }
16
-
17
- &__hero {
18
- position: relative;
19
- width: 100%;
20
- overflow: hidden;
21
- aspect-ratio: 353 / 240;
22
- background: #fff8e9;
23
- }
24
-
25
- &__hero--inline {
26
- height: 152PX;
27
- aspect-ratio: auto;
28
- }
29
-
30
- /* 素材变量链(主题品牌资产轨 A1 级联修复):stage 桌面默认 + compact 移动断点覆写;
31
- 元素只消费不声明(声明截断主题覆写继承),兜底 = 中立渐变(零品牌资产——B2),
32
- 主题包经 html[data-theme] 段覆写两语义位 */
33
- &__poster {
34
- background-image: var(--tbox-asset-home-poster-stage, linear-gradient(135deg, #eaf3ff, #d7e7fd));
35
- background-size: cover;
36
- background-position: center;
37
- }
38
-
39
- @media screen and (max-width: 392PX) {
40
- /* page 变体移动断点切 compact 裁切(strip 变体恒 stage——原 picture/source 语义保持) */
41
- .activity-detail-presentation__poster:not(.activity-detail-presentation__poster--stage) {
42
- background-image: var(--tbox-asset-home-poster-compact, linear-gradient(135deg, #eaf3ff, #d7e7fd));
43
- }
44
- }
45
-
46
- &__body {
47
- position: relative;
48
- z-index: 1;
49
- min-width: 0;
50
- margin-top: -50PX;
51
- padding: 4PX 0 18PX;
52
- background: #ffffff;
53
- border-radius: 22PX 22PX 0 0;
54
- box-shadow: 0 -10PX 28PX rgba(38, 48, 34, 0.08);
55
-
56
- > * {
57
- width: 100%;
58
- box-sizing: border-box;
59
- }
60
-
61
- // 首页详情通过 RawCardRenderer 渲染,SDK 会额外包一层通用卡框。
62
- // 详情页本身已经是完整表面,这里只保留该层的渲染职责,避免卡片套卡片;
63
- // 对话流的通用卡框位于整个 presentation 外部,不会命中此规则。
64
- > .tbox-card {
65
- margin: 0;
66
- overflow: visible;
67
- background: transparent;
68
- border: 0;
69
- border-radius: 0;
70
- box-shadow: none;
71
- animation: none;
72
- }
73
-
74
- .promotion-bumpin {
75
- margin: 0;
76
- overflow: visible;
77
- background: #ffffff;
78
- border: 0;
79
- border-radius: 0;
80
- box-shadow: none;
81
- }
82
-
83
- .promotion-bumpin__header,
84
- .promotion-bumpin__header--bg {
85
- display: block;
86
- min-height: 0;
87
- padding: 20PX 22PX 14PX;
88
- background: #ffffff !important;
89
- background-image: none !important;
90
- }
91
-
92
- .promotion-bumpin__header--bg::before,
93
- .promotion-bumpin__cover,
94
- .promotion-bumpin__cover-placeholder {
95
- display: none;
96
- }
97
-
98
- .promotion-bumpin__header-copy {
99
- position: relative;
100
- z-index: 1;
101
- display: grid;
102
- max-width: 100%;
103
- gap: 7PX;
104
- }
105
-
106
- .promotion-bumpin__tag {
107
- justify-self: start;
108
- padding: 3PX 10PX;
109
- color: #19744a;
110
- font-size: 13PX;
111
- line-height: 19PX;
112
- background: #edf8f1;
113
- border: 0;
114
- }
115
-
116
- .promotion-bumpin__title {
117
- margin: 0;
118
- color: var(--activity-detail-ink);
119
- font-size: 20PX;
120
- font-weight: 750;
121
- line-height: 28PX;
122
- }
123
-
124
- .promotion-bumpin__period,
125
- .promotion-bumpin__subtitle {
126
- justify-self: start;
127
- padding: 0;
128
- color: var(--activity-detail-muted);
129
- font-size: 14PX;
130
- line-height: 21PX;
131
- background: transparent;
132
- }
133
-
134
- .promotion-bumpin__progress {
135
- gap: 4PX;
136
- margin: 0 16PX;
137
- padding: 6PX 14PX 5PX;
138
- overflow: hidden;
139
- background: #f2f8fc;
140
- border: 1PX solid rgba(10, 110, 184, 0.12);
141
- border-radius: 14PX;
142
- }
143
-
144
- .promotion-bumpin__steps {
145
- padding: 0 6PX;
146
- }
147
-
148
- .promotion-bumpin__step-item {
149
- gap: 2PX;
150
- }
151
-
152
- .promotion-bumpin__step-node {
153
- width: 22PX;
154
- height: 22PX;
155
- color: #0d6fae;
156
- font-size: 11PX;
157
- background: #eaf8ff;
158
- border-color: #1682cb;
159
-
160
- svg {
161
- width: 12PX;
162
- height: 12PX;
163
- }
164
- }
165
-
166
- .promotion-bumpin__step-node--done {
167
- color: #ffffff;
168
- background: var(--activity-detail-accent);
169
- border-color: var(--activity-detail-accent);
170
- box-shadow: 0 3PX 9PX rgba(10, 110, 184, 0.22);
171
- }
172
-
173
- .promotion-bumpin__step-node--locked {
174
- color: #ffffff;
175
- background: #1475b6;
176
- border-color: #ffdc6a;
177
- }
178
-
179
- .promotion-bumpin__step-line {
180
- top: 11PX;
181
- height: 2PX;
182
- background: rgba(22, 126, 194, 0.22);
183
- }
184
-
185
- .promotion-bumpin__step-line--done,
186
- .promotion-bumpin__progress-fill {
187
- background: var(--activity-detail-accent);
188
- box-shadow: none;
189
- }
190
-
191
- .promotion-bumpin__step-label,
192
- .promotion-bumpin__progress-text {
193
- color: var(--activity-detail-muted);
194
- font-size: 10.5PX;
195
- line-height: 13PX;
196
- }
197
-
198
- .promotion-bumpin__progress-bar {
199
- height: 8PX;
200
- background: rgba(10, 110, 184, 0.14);
201
- }
202
-
203
- .promotion-bumpin__prizes,
204
- .promotion-bumpin__rules {
205
- margin: 16PX 16PX 0;
206
- overflow: hidden;
207
- background: #ffffff;
208
- border: 1PX solid rgba(106, 119, 137, 0.16);
209
- border-radius: 14PX;
210
- box-shadow: 0 3PX 12PX rgba(70, 91, 122, 0.06);
211
- }
212
-
213
- .promotion-bumpin__prizes-header,
214
- .promotion-bumpin__rules-header {
215
- padding: 12PX 14PX 10PX;
216
- color: var(--activity-detail-ink);
217
- font-size: 16PX;
218
- font-weight: 650;
219
- line-height: 22PX;
220
- border-bottom: 1PX solid rgba(106, 119, 137, 0.12);
221
- }
222
-
223
- .promotion-bumpin__prizes-header {
224
- gap: 8PX;
225
-
226
- svg {
227
- width: 26PX;
228
- height: 26PX;
229
- padding: 6PX;
230
- flex-shrink: 0;
231
- color: var(--activity-detail-accent);
232
- background: #edf6ff;
233
- border-radius: 8PX;
234
- }
235
- }
236
-
237
- .promotion-bumpin__rules-header {
238
- padding-bottom: 10PX;
239
- }
240
-
241
- .promotion-bumpin__prize-item {
242
- gap: 12PX;
243
- padding: 12PX 14PX;
244
- background: #ffffff;
245
- border-bottom: 1PX solid rgba(106, 119, 137, 0.1);
246
- }
247
-
248
- .promotion-bumpin__prize-logo,
249
- .promotion-bumpin__prize-logo-placeholder {
250
- width: 42PX;
251
- height: 42PX;
252
- border-radius: 12PX;
253
- }
254
-
255
- .promotion-bumpin__prize-copy strong {
256
- color: var(--activity-detail-ink);
257
- font-size: 16PX;
258
- line-height: 22PX;
259
- }
260
-
261
- .promotion-bumpin__prize-copy small,
262
- .promotion-bumpin__prize-amount {
263
- color: var(--activity-detail-muted);
264
- font-size: 13.5PX;
265
- line-height: 20PX;
266
- }
267
-
268
- .promotion-bumpin__prizes-toggle {
269
- padding: 11PX 14PX;
270
- color: var(--activity-detail-muted);
271
- font-size: 14PX;
272
- line-height: 20PX;
273
- background: #f8fafc;
274
- border-top: 1PX solid rgba(106, 119, 137, 0.1);
275
- }
276
-
277
- .promotion-bumpin__rules-content {
278
- padding: 12PX 14PX 14PX;
279
- color: var(--activity-detail-muted);
280
- font-size: 14.5PX;
281
- line-height: 24PX;
282
- }
283
- }
284
-
285
- &--inline {
286
- container-type: inline-size;
287
- border-radius: 14PX;
288
- contain: layout paint;
289
-
290
- .activity-detail-presentation__body {
291
- margin-top: -14PX;
292
- padding: 0 0 8PX;
293
- border-radius: 16PX 16PX 0 0;
294
- box-shadow: none;
295
- }
296
-
297
- .activity-detail-presentation__body .promotion-bumpin__title {
298
- font-size: 20PX;
299
- line-height: 28PX;
300
- }
301
-
302
- .activity-detail-presentation__detail-trigger {
303
- display: flex;
304
- width: 100%;
305
- min-height: 32PX;
306
- margin: 8PX 0 0;
307
- padding: 0;
308
- align-items: center;
309
- justify-content: center;
310
- gap: 2PX;
311
- color: #686d69;
312
- font: inherit;
313
- font-size: 12PX;
314
- font-weight: 400;
315
- line-height: 18PX;
316
- background: transparent;
317
- border: 0;
318
- border-radius: 0;
319
- box-shadow: none;
320
- cursor: pointer;
321
-
322
- svg {
323
- flex-shrink: 0;
324
- }
325
-
326
- &:active {
327
- opacity: 0.68;
328
- }
329
-
330
- &:focus-visible {
331
- outline: 2PX solid rgba(9, 107, 250, 0.28);
332
- outline-offset: 2PX;
333
- border-radius: 5PX;
334
- }
335
- }
336
- }
337
- }
338
-
339
- @container (max-width: 340PX) {
340
- .activity-detail-presentation--inline {
341
- .activity-detail-presentation__body .promotion-bumpin__title {
342
- font-size: 19PX;
343
- line-height: 27PX;
344
- }
345
-
346
- .activity-detail-presentation__body .promotion-bumpin__header,
347
- .activity-detail-presentation__body .promotion-bumpin__header--bg {
348
- padding-right: 18PX;
349
- padding-left: 18PX;
350
- }
351
- }
352
- }
@@ -1,256 +0,0 @@
1
- .member-login-sheet {
2
- position: fixed;
3
- inset: 0;
4
- z-index: 1100;
5
-
6
- &__mask {
7
- position: absolute;
8
- inset: 0;
9
- background: rgba(19, 26, 16, 0.42);
10
- animation: member-login-mask-in 180ms ease-out both;
11
- }
12
-
13
- &__panel {
14
- position: absolute;
15
- right: 0;
16
- bottom: 0;
17
- left: 0;
18
- display: flex;
19
- width: 100%;
20
- height: 58vh;
21
- height: 58dvh;
22
- max-width: 560PX;
23
- max-height: calc(100dvh - env(safe-area-inset-top, 0PX) - 12PX);
24
- min-height: 0;
25
- margin: 0 auto;
26
- overflow: hidden;
27
- background: #ffffff;
28
- border-radius: 28PX 28PX 0 0;
29
- box-shadow: 0 -14PX 44PX rgba(35, 47, 28, 0.16);
30
- animation: member-login-sheet-in 260ms cubic-bezier(0.22, 0.72, 0.24, 1) both;
31
- }
32
-
33
- &__handle {
34
- position: absolute;
35
- top: 9PX;
36
- left: 50%;
37
- z-index: 3;
38
- width: 38PX;
39
- height: 4PX;
40
- border-radius: 999PX;
41
- background: rgba(50, 61, 45, 0.2);
42
- transform: translateX(-50%);
43
- }
44
-
45
- &__close {
46
- position: absolute;
47
- top: 18PX;
48
- right: 18PX;
49
- z-index: 4;
50
- display: grid;
51
- width: 36PX;
52
- height: 36PX;
53
- padding: 0;
54
- color: #3d4738;
55
- background: rgba(255, 255, 255, 0.86);
56
- border: 1PX solid rgba(61, 71, 56, 0.1);
57
- border-radius: 50%;
58
- box-shadow: 0 4PX 16PX rgba(55, 66, 47, 0.08);
59
- outline: none;
60
- place-items: center;
61
- -webkit-tap-highlight-color: transparent;
62
-
63
- &:focus-visible {
64
- box-shadow: 0 0 0 3PX rgba(99, 137, 61, 0.24), 0 4PX 16PX rgba(55, 66, 47, 0.08);
65
- }
66
- }
67
-
68
- &__scroll {
69
- display: flex;
70
- flex: 1;
71
- flex-direction: column;
72
- width: 100%;
73
- min-height: 0;
74
- padding-bottom: env(safe-area-inset-bottom, 0PX);
75
- overflow-y: auto;
76
- overscroll-behavior: contain;
77
- scrollbar-width: none;
78
- -webkit-overflow-scrolling: touch;
79
-
80
- &::-webkit-scrollbar {
81
- display: none;
82
- }
83
- }
84
-
85
- &__hero {
86
- position: relative;
87
- flex: 1 1 190PX;
88
- min-height: 160PX;
89
- width: 100%;
90
- overflow: hidden;
91
- background-color: #faf4e9;
92
- /* 素材变量链(主题品牌资产轨 A1 级联修复):元素只消费不声明(声明截断主题覆写继承),
93
- 兜底 = 中立渐变(零品牌资产——B2),主题包经 html[data-theme] 段覆写 --tbox-asset-member-login-hero */
94
- background-image: var(--tbox-asset-member-login-hero, linear-gradient(135deg, #fff6e0, #f9f1df));
95
- background-size: cover;
96
- background-position: 50% 52%;
97
- }
98
-
99
- &__tear {
100
- position: relative;
101
- z-index: 2;
102
- flex-shrink: 0;
103
- width: 100%;
104
- height: 16PX;
105
- margin-top: -15PX;
106
- background: #ffffff;
107
- clip-path: polygon(0 70%, 8% 28%, 15% 72%, 24% 22%, 33% 66%, 43% 18%, 53% 72%, 63% 25%, 72% 68%, 82% 20%, 91% 64%, 100% 32%, 100% 100%, 0 100%);
108
- }
109
-
110
- &__content {
111
- flex-shrink: 0;
112
- padding: 12PX 24PX calc(14PX + env(safe-area-inset-bottom, 0PX));
113
- text-align: center;
114
-
115
- h2 {
116
- margin: 0;
117
- color: #303b2b;
118
- font-size: 20PX;
119
- font-weight: 700;
120
- line-height: 1.3;
121
- letter-spacing: 0.01em;
122
- }
123
- }
124
-
125
- &__description {
126
- margin: 6PX 0 0;
127
- color: #737c6d;
128
- font-size: 14PX;
129
- font-weight: 400;
130
- line-height: 1.45;
131
- }
132
-
133
- &__login {
134
- display: flex;
135
- align-items: center;
136
- justify-content: center;
137
- width: min(100%, 292PX);
138
- min-height: 44PX;
139
- margin: 16PX auto 0;
140
- padding: 0 16PX;
141
- color: #ffffff;
142
- font-size: 15PX;
143
- font-weight: 600;
144
- line-height: 1;
145
- background: #91ad60;
146
- border: 0;
147
- border-radius: 12PX;
148
- box-shadow: 0 6PX 14PX rgba(89, 112, 55, 0.16);
149
- transform: translateY(0);
150
- transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
151
- -webkit-tap-highlight-color: transparent;
152
-
153
- &:active:not(:disabled) {
154
- box-shadow: 0 4PX 12PX rgba(89, 112, 55, 0.16);
155
- transform: scale(0.98);
156
- }
157
-
158
- &:disabled {
159
- cursor: not-allowed;
160
- opacity: 0.68;
161
- }
162
- }
163
-
164
- // 终态(not-enrolled/failed)按钮组:暂不 + 重试(双列栅格)
165
- &__status-actions {
166
- display: grid;
167
- grid-template-columns: 1fr 1fr;
168
- width: min(100%, 292PX);
169
- margin: 16PX auto 0;
170
- gap: 10PX;
171
-
172
- button {
173
- min-height: 44PX;
174
- padding: 0 10PX;
175
- color: #596153;
176
- font-size: 15PX;
177
- font-weight: 600;
178
- background: #f3f5f0;
179
- border: 0;
180
- border-radius: 12PX;
181
- outline: none;
182
- -webkit-tap-highlight-color: transparent;
183
-
184
- &:last-child {
185
- color: #ffffff;
186
- background: #91ad60;
187
- }
188
-
189
- &:disabled {
190
- cursor: not-allowed;
191
- opacity: 0.68;
192
- }
193
-
194
- &:focus-visible {
195
- box-shadow: 0 0 0 3PX rgba(99, 137, 61, 0.24);
196
- }
197
-
198
- &:active:not(:disabled) {
199
- transform: scale(0.98);
200
- }
201
- }
202
- }
203
- }
204
-
205
- @keyframes member-login-mask-in {
206
- from { opacity: 0; }
207
- to { opacity: 1; }
208
- }
209
-
210
- @keyframes member-login-sheet-in {
211
- from { transform: translateY(100%); }
212
- to { transform: translateY(0); }
213
- }
214
-
215
- @media (max-height: 620PX) {
216
- .member-login-sheet {
217
- &__panel {
218
- height: 64dvh;
219
- }
220
-
221
- &__hero {
222
- flex-basis: 116PX;
223
- min-height: 116PX;
224
- }
225
-
226
- &__content {
227
- padding-top: 8PX;
228
- }
229
-
230
- &__description {
231
- margin-top: 4PX;
232
- }
233
-
234
- &__login {
235
- margin-top: 14PX;
236
- min-height: 42PX;
237
- }
238
- }
239
- }
240
-
241
- @media (orientation: landscape) and (max-height: 500PX) {
242
- .member-login-sheet__panel {
243
- height: 88dvh;
244
- }
245
- }
246
-
247
- @media (prefers-reduced-motion: reduce) {
248
- .member-login-sheet__mask,
249
- .member-login-sheet__panel {
250
- animation: none;
251
- }
252
-
253
- .member-login-sheet__login {
254
- transition: none;
255
- }
256
- }
@@ -1,4 +0,0 @@
1
- /* 顶部历史入口在场时商圈主屏不再叠加自身顶部留白(kit ChatPage 槽位包裹层结构下) */
2
- .history-entry ~ .chat-page__home-slot .mall-home {
3
- padding-top: 0;
4
- }