@tbox.cn/app-module-alipay-activity 0.3.7 → 1.0.0-alpha.10

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,531 +0,0 @@
1
- /* ===== alipay-activity bumpin(碰出惊喜活动卡,detail/banner 双模式) =====
2
- * 结构:深蓝渐变头(cover/占位徽章 + 标题 + 副题 + 时段徽章)→ 进度(轨道 + 橙渐变 fill)→
3
- * 奖励池(浅灰内嵌块 + 白底条目)→ 活动规则(HTML 富文本块)。banner 模式无 prizes/rules 自然收敛。
4
- * 域变量沿用 .promotion-card 色板。 */
5
- .promotion-bumpin__header {
6
- display: flex;
7
- align-items: center;
8
- gap: 20px;
9
- padding: 28px;
10
- background: var(--promo-activity-gradient);
11
- }
12
-
13
- /* ── 联单全幅背景图模式 ── */
14
- /* 素材变量链(主题品牌资产轨 A1 级联修复):元素只消费不声明(声明截断主题覆写继承);
15
- 服务端 backgroundUrl 走 inline style 自动覆盖本规则(优先语义保持);兜底 = 中立渐变(零品牌资产——B2),
16
- 主题包覆写 --tbox-asset-bumpin-bg。 */
17
- .promotion-bumpin__header--bg {
18
- display: block;
19
- position: relative;
20
- padding: 24px 24px 28px;
21
- background-image: var(--tbox-asset-bumpin-bg, linear-gradient(135deg, #eaf3ff, #d7e7fd));
22
- background-size: cover;
23
- background-position: center;
24
- background-repeat: no-repeat;
25
- min-height: 200px;
26
- }
27
- .promotion-bumpin__header--bg::before {
28
- content: '';
29
- position: absolute;
30
- inset: 0;
31
- border-radius: inherit;
32
- /* 左侧深蓝遮罩:标题清晰可读,右侧图片透出 */
33
- background: linear-gradient(
34
- 105deg,
35
- rgba(5, 10, 40, 0.82) 0%,
36
- rgba(5, 10, 40, 0.60) 50%,
37
- rgba(5, 10, 40, 0.18) 100%
38
- );
39
- }
40
- .promotion-bumpin__header--bg .promotion-bumpin__header-copy {
41
- position: relative;
42
- z-index: 1;
43
- }
44
-
45
- .promotion-bumpin__cover {
46
- flex: 0 0 auto;
47
- width: 116px;
48
- height: 116px;
49
- border-radius: 20px;
50
- object-fit: cover;
51
- box-shadow: 0 8px 22px rgba(2, 18, 55, 0.32);
52
- }
53
- .promotion-bumpin__cover-placeholder {
54
- display: grid;
55
- flex: 0 0 auto;
56
- width: 116px;
57
- height: 116px;
58
- place-items: center;
59
- border-radius: 20px;
60
- color: #fff;
61
- background: rgba(255, 255, 255, 0.16);
62
- }
63
- .promotion-bumpin__header-copy {
64
- display: grid;
65
- gap: 8px;
66
- min-width: 0;
67
- }
68
-
69
- /* ── 活动类型胶囊标签(碰一下联单) ── */
70
- .promotion-bumpin__tag-row {
71
- display: flex;
72
- align-items: center;
73
- gap: 8px;
74
- flex-wrap: wrap;
75
- }
76
- .promotion-bumpin__tag {
77
- display: inline-block;
78
- padding: 4px 14px;
79
- border-radius: 999px;
80
- background: rgba(212, 170, 80, 0.22);
81
- border: 1px solid rgba(212, 170, 80, 0.55);
82
- color: #e8c46a;
83
- font-size: 18px;
84
- font-weight: 600;
85
- line-height: 26px;
86
- letter-spacing: 0.02em;
87
- }
88
-
89
- /* ── 活动状态角标(INIT/PROCESSING 不渲染;未开始/已结束/已领奖三态) ── */
90
- .promotion-bumpin__status {
91
- display: inline-block;
92
- padding: 3px 12px;
93
- border-radius: 999px;
94
- font-size: 16px;
95
- font-weight: 600;
96
- line-height: 22px;
97
- letter-spacing: 0.02em;
98
- }
99
- .promotion-bumpin__status--pending {
100
- background: rgba(255, 255, 255, 0.14);
101
- border: 1px solid rgba(255, 255, 255, 0.38);
102
- color: rgba(255, 255, 255, 0.9);
103
- }
104
- .promotion-bumpin__status--terminal {
105
- background: rgba(120, 120, 120, 0.3);
106
- border: 1px solid rgba(160, 160, 160, 0.5);
107
- color: rgba(255, 255, 255, 0.75);
108
- }
109
- .promotion-bumpin__status--received {
110
- background: rgba(212, 170, 80, 0.22);
111
- border: 1px solid rgba(212, 170, 80, 0.55);
112
- color: #e8c46a;
113
- }
114
-
115
- .promotion-bumpin__title {
116
- display: flex;
117
- align-items: center;
118
- gap: 8px;
119
- overflow-wrap: anywhere;
120
- color: #fff;
121
- font-size: 30px;
122
- font-weight: 700;
123
- line-height: 40px;
124
- }
125
- .promotion-bumpin__title svg {
126
- flex: 0 0 auto;
127
- }
128
- .promotion-bumpin__subtitle {
129
- color: rgba(255, 255, 255, 0.84);
130
- font-size: 22px;
131
- line-height: 30px;
132
- }
133
- .promotion-bumpin__period {
134
- justify-self: start;
135
- padding: 4px 14px;
136
- border-radius: 999px;
137
- background: rgba(255, 255, 255, 0.16);
138
- color: rgba(255, 255, 255, 0.85);
139
- font-size: 18px;
140
- line-height: 26px;
141
- }
142
- .promotion-bumpin__progress {
143
- display: grid;
144
- gap: 10px;
145
- padding: 24px 28px 0;
146
- }
147
- .promotion-bumpin__progress-bar {
148
- height: 14px;
149
- border-radius: 999px;
150
- background: var(--promo-line);
151
- overflow: hidden;
152
- }
153
- .promotion-bumpin__progress-fill {
154
- height: 100%;
155
- border-radius: 999px;
156
- background: var(--promo-cta-orange);
157
- transition: width 0.28s ease;
158
- }
159
- .promotion-bumpin__progress-text {
160
- color: var(--promo-muted);
161
- font-size: 20px;
162
- line-height: 28px;
163
- }
164
-
165
- /* ── steps 步骤节点进度(联单任务)── */
166
- .promotion-bumpin__steps {
167
- display: flex;
168
- align-items: flex-start;
169
- justify-content: space-between;
170
- padding: 20px 24px 8px;
171
- /* 连接线由 step-item 内部布局承载,父容器仅做水平排列 */
172
- }
173
- .promotion-bumpin__step-item {
174
- display: flex;
175
- flex-direction: column;
176
- align-items: center;
177
- gap: 8px;
178
- flex: 1;
179
- position: relative;
180
- }
181
- /* 步骤间连接线(左侧兄弟完成则高亮) */
182
- .promotion-bumpin__step-line {
183
- position: absolute;
184
- top: 20px;
185
- right: 50%;
186
- left: -50%;
187
- height: 3px;
188
- background: rgba(255, 255, 255, 0.18);
189
- /* 拉伸覆盖间距 */
190
- transform: translateY(-50%);
191
- }
192
- .promotion-bumpin__step-line--done {
193
- background: linear-gradient(90deg, #e8a020 0%, #f0c040 100%);
194
- box-shadow: 0 0 6px rgba(232, 160, 32, 0.55);
195
- }
196
-
197
- /* 步骤圆形节点 */
198
- .promotion-bumpin__step-node {
199
- position: relative;
200
- z-index: 1;
201
- display: flex;
202
- align-items: center;
203
- justify-content: center;
204
- width: 44px;
205
- height: 44px;
206
- border-radius: 50%;
207
- border: 2px solid rgba(255, 255, 255, 0.3);
208
- background: rgba(255, 255, 255, 0.12);
209
- color: rgba(255, 255, 255, 0.7);
210
- font-size: 18px;
211
- font-weight: 700;
212
- line-height: 1;
213
- }
214
- /* 已完成节点:白底深色数字 + 金橙边框发光 */
215
- .promotion-bumpin__step-node--done {
216
- background: rgba(255, 255, 255, 0.92);
217
- border-color: rgba(232, 160, 32, 0.8);
218
- color: #1a2a6c;
219
- box-shadow: 0 0 10px rgba(232, 160, 32, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
220
- }
221
- /* 锁定节点(最后一步未解锁):金橙背景 */
222
- .promotion-bumpin__step-node--locked {
223
- background: rgba(212, 158, 40, 0.18);
224
- border-color: rgba(212, 158, 40, 0.7);
225
- color: #e8c060;
226
- box-shadow: 0 0 8px rgba(212, 158, 40, 0.35);
227
- }
228
- /* 步骤底部数字标签 */
229
- .promotion-bumpin__step-label {
230
- font-size: 18px;
231
- color: rgba(255, 255, 255, 0.6);
232
- line-height: 1.2;
233
- white-space: nowrap;
234
- }
235
-
236
- .promotion-bumpin__prizes {
237
- margin: 24px 28px 0;
238
- border: 2px solid var(--promo-line);
239
- border-radius: 24px;
240
- background: #f5f7fa;
241
- overflow: hidden;
242
- }
243
- .promotion-bumpin__prizes-header {
244
- display: flex;
245
- align-items: center;
246
- gap: 8px;
247
- padding: 16px 20px;
248
- color: #b06b2e;
249
- font-size: 22px;
250
- font-weight: 700;
251
- line-height: 30px;
252
- border-bottom: 2px solid var(--promo-line);
253
- }
254
- .promotion-bumpin__prizes-list {
255
- display: grid;
256
- margin: 0;
257
- padding: 0;
258
- list-style: none;
259
- }
260
- .promotion-bumpin__prize-item {
261
- display: flex;
262
- align-items: center;
263
- gap: 16px;
264
- padding: 16px 20px;
265
- background: #fff;
266
- border-bottom: 2px solid var(--promo-line);
267
- }
268
- .promotion-bumpin__prize-item:last-child {
269
- border-bottom: 0;
270
- }
271
- .promotion-bumpin__prize-logo {
272
- flex: 0 0 auto;
273
- width: 72px;
274
- height: 72px;
275
- border-radius: 16px;
276
- object-fit: cover;
277
- }
278
- .promotion-bumpin__prize-logo-placeholder {
279
- flex: 0 0 auto;
280
- width: 72px;
281
- height: 72px;
282
- border-radius: 16px;
283
- background: var(--promo-mint-soft);
284
- }
285
- .promotion-bumpin__prize-copy {
286
- display: grid;
287
- gap: 4px;
288
- min-width: 0;
289
- }
290
- .promotion-bumpin__prize-copy strong {
291
- overflow: hidden;
292
- color: var(--promo-ink);
293
- font-size: 24px;
294
- font-weight: 650;
295
- line-height: 32px;
296
- text-overflow: ellipsis;
297
- white-space: nowrap;
298
- }
299
- .promotion-bumpin__prize-copy small {
300
- overflow: hidden;
301
- color: var(--promo-muted);
302
- font-size: 20px;
303
- line-height: 28px;
304
- text-overflow: ellipsis;
305
- white-space: nowrap;
306
- }
307
- .promotion-bumpin__prizes-toggle {
308
- display: flex;
309
- align-items: center;
310
- justify-content: center;
311
- gap: 6px;
312
- width: 100%;
313
- padding: 16px 20px;
314
- border: none;
315
- background: none;
316
- font-size: 20px;
317
- font-weight: 600;
318
- color: var(--promo-muted);
319
- cursor: pointer;
320
- border-top: 2px solid var(--promo-line);
321
- }
322
- .promotion-bumpin__prizes-toggle:active {
323
- opacity: 0.7;
324
- }
325
- .promotion-bumpin__rules {
326
- margin: 24px 28px 28px;
327
- border-radius: 20px;
328
- background: #f5f7fa;
329
- overflow: hidden;
330
- }
331
- .promotion-bumpin__rules-header {
332
- padding: 14px 20px 0;
333
- color: var(--promo-muted);
334
- font-size: 20px;
335
- font-weight: 700;
336
- line-height: 28px;
337
- }
338
- .promotion-bumpin__rules-content {
339
- padding: 10px 20px 16px;
340
- color: var(--promo-muted);
341
- font-size: 20px;
342
- line-height: 32px;
343
- word-break: break-word;
344
- }
345
- .promotion-bumpin__rules-content img {
346
- max-width: 100%;
347
- }
348
- .promotion-bumpin__cover {
349
- flex: 0 0 auto;
350
- width: 116px;
351
- height: 116px;
352
- border-radius: 20px;
353
- object-fit: cover;
354
- box-shadow: 0 8px 22px rgba(2, 18, 55, 0.32);
355
- }
356
- .promotion-bumpin__cover-placeholder {
357
- display: grid;
358
- flex: 0 0 auto;
359
- width: 116px;
360
- height: 116px;
361
- place-items: center;
362
- border-radius: 20px;
363
- color: #fff;
364
- background: rgba(255, 255, 255, 0.16);
365
- }
366
- .promotion-bumpin__header-copy {
367
- display: grid;
368
- gap: 6px;
369
- min-width: 0;
370
- }
371
- .promotion-bumpin__title {
372
- display: flex;
373
- align-items: center;
374
- gap: 8px;
375
- overflow-wrap: anywhere;
376
- color: #fff;
377
- font-size: 30px;
378
- font-weight: 700;
379
- line-height: 40px;
380
- }
381
- .promotion-bumpin__title svg {
382
- flex: 0 0 auto;
383
- }
384
- .promotion-bumpin__subtitle {
385
- color: rgba(255, 255, 255, 0.84);
386
- font-size: 22px;
387
- line-height: 30px;
388
- }
389
- .promotion-bumpin__period {
390
- justify-self: start;
391
- padding: 4px 14px;
392
- border-radius: 999px;
393
- background: rgba(255, 255, 255, 0.16);
394
- color: #fff;
395
- font-size: 18px;
396
- line-height: 26px;
397
- }
398
- .promotion-bumpin__progress {
399
- display: grid;
400
- gap: 10px;
401
- padding: 24px 28px 0;
402
- }
403
- .promotion-bumpin__progress-bar {
404
- height: 14px;
405
- border-radius: 999px;
406
- background: var(--promo-line);
407
- overflow: hidden;
408
- }
409
- .promotion-bumpin__progress-fill {
410
- height: 100%;
411
- border-radius: 999px;
412
- background: var(--promo-cta-orange);
413
- transition: width 0.28s ease;
414
- }
415
- .promotion-bumpin__progress-text {
416
- color: var(--promo-muted);
417
- font-size: 20px;
418
- line-height: 28px;
419
- }
420
- .promotion-bumpin__prizes {
421
- margin: 24px 28px 0;
422
- border: 2px solid var(--promo-line);
423
- border-radius: 24px;
424
- background: #f5f7fa;
425
- overflow: hidden;
426
- }
427
- .promotion-bumpin__prizes-header {
428
- display: flex;
429
- align-items: center;
430
- gap: 8px;
431
- padding: 16px 20px;
432
- color: #b06b2e;
433
- font-size: 22px;
434
- font-weight: 700;
435
- line-height: 30px;
436
- border-bottom: 2px solid var(--promo-line);
437
- }
438
- .promotion-bumpin__prizes-list {
439
- display: grid;
440
- margin: 0;
441
- padding: 0;
442
- list-style: none;
443
- }
444
- .promotion-bumpin__prize-item {
445
- display: flex;
446
- align-items: center;
447
- gap: 16px;
448
- padding: 16px 20px;
449
- background: #fff;
450
- border-bottom: 2px solid var(--promo-line);
451
- }
452
- .promotion-bumpin__prize-item:last-child {
453
- border-bottom: 0;
454
- }
455
- .promotion-bumpin__prize-logo {
456
- flex: 0 0 auto;
457
- width: 72px;
458
- height: 72px;
459
- border-radius: 16px;
460
- object-fit: cover;
461
- }
462
- .promotion-bumpin__prize-logo-placeholder {
463
- flex: 0 0 auto;
464
- width: 72px;
465
- height: 72px;
466
- border-radius: 16px;
467
- background: var(--promo-mint-soft);
468
- }
469
- .promotion-bumpin__prize-copy {
470
- display: grid;
471
- gap: 4px;
472
- min-width: 0;
473
- }
474
- .promotion-bumpin__prize-copy strong {
475
- overflow: hidden;
476
- color: var(--promo-ink);
477
- font-size: 24px;
478
- font-weight: 650;
479
- line-height: 32px;
480
- text-overflow: ellipsis;
481
- white-space: nowrap;
482
- }
483
- .promotion-bumpin__prize-copy small {
484
- overflow: hidden;
485
- color: var(--promo-muted);
486
- font-size: 20px;
487
- line-height: 28px;
488
- text-overflow: ellipsis;
489
- white-space: nowrap;
490
- }
491
- .promotion-bumpin__prizes-toggle {
492
- display: flex;
493
- align-items: center;
494
- justify-content: center;
495
- gap: 6px;
496
- width: 100%;
497
- padding: 16px 20px;
498
- border: none;
499
- background: none;
500
- font-size: 20px;
501
- font-weight: 600;
502
- color: var(--promo-muted);
503
- cursor: pointer;
504
- border-top: 2px solid var(--promo-line);
505
- }
506
- .promotion-bumpin__prizes-toggle:active {
507
- opacity: 0.7;
508
- }
509
- .promotion-bumpin__rules {
510
- margin: 24px 28px 28px;
511
- border-radius: 20px;
512
- background: #f5f7fa;
513
- overflow: hidden;
514
- }
515
- .promotion-bumpin__rules-header {
516
- padding: 14px 20px 0;
517
- color: var(--promo-muted);
518
- font-size: 20px;
519
- font-weight: 700;
520
- line-height: 28px;
521
- }
522
- .promotion-bumpin__rules-content {
523
- padding: 10px 20px 16px;
524
- color: var(--promo-muted);
525
- font-size: 20px;
526
- line-height: 32px;
527
- word-break: break-word;
528
- }
529
- .promotion-bumpin__rules-content img {
530
- max-width: 100%;
531
- }