@tbox.cn/app-module-alipay-activity 0.2.3

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.
Files changed (44) hide show
  1. package/AGENTS.md +16 -0
  2. package/LICENSE +21 -0
  3. package/README.md +48 -0
  4. package/dist/bumpin-VKHLYCKG.css +527 -0
  5. package/dist/chunk-RM7IUA3M.js +634 -0
  6. package/dist/client/index.d.ts +11 -0
  7. package/dist/client/index.js +235 -0
  8. package/dist/index.d.ts +7 -0
  9. package/dist/index.js +26 -0
  10. package/dist/linked-card-background-MVGUOJ7J.jpg +0 -0
  11. package/dist/server/index.d.ts +224 -0
  12. package/dist/server/index.js +28 -0
  13. package/package.json +69 -0
  14. package/schemas/credentials/alipay-open-v1.json +12 -0
  15. package/skills/alipay-activity/SKILL.md +59 -0
  16. package/src/client/assets/linked-card-background.jpg +0 -0
  17. package/src/client/assets.d.ts +10 -0
  18. package/src/client/cards/bumpin-activity/index.tsx +213 -0
  19. package/src/client/components/ImageWithFallback.tsx +37 -0
  20. package/src/client/index.ts +18 -0
  21. package/src/client/styles/bumpin.css +527 -0
  22. package/src/client/utils/sanitize-activity-html.ts +40 -0
  23. package/src/index.ts +1 -0
  24. package/src/server/cards/bumpin-activity/meta.ts +44 -0
  25. package/src/server/cards/bumpin-activity/samples.ts +164 -0
  26. package/src/server/handler.ts +87 -0
  27. package/src/server/index.ts +79 -0
  28. package/src/server/integrations/alipay/adapter.ts +210 -0
  29. package/src/server/integrations/alipay/client.ts +127 -0
  30. package/src/server/integrations/alipay/provider.ts +9 -0
  31. package/src/server/ports.ts +68 -0
  32. package/src/server/tools.ts +212 -0
  33. package/tbox.module.json +39 -0
  34. package/tests/adapter.test.ts +178 -0
  35. package/tests/bumpin-card-status.test.tsx +80 -0
  36. package/tests/client.test.ts +93 -0
  37. package/tests/intent-routing.test.ts +118 -0
  38. package/tests/ports.test.ts +160 -0
  39. package/tests/pretool-routing.test.ts +37 -0
  40. package/tests/samples.test.ts +29 -0
  41. package/tests/skill.test.ts +39 -0
  42. package/tests/tools.test.ts +193 -0
  43. package/tsconfig.json +8 -0
  44. package/tsup.config.ts +36 -0
@@ -0,0 +1,527 @@
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
+ .promotion-bumpin__header--bg {
15
+ display: block;
16
+ position: relative;
17
+ padding: 24px 24px 28px;
18
+ background-size: cover;
19
+ background-position: center;
20
+ background-repeat: no-repeat;
21
+ min-height: 200px;
22
+ }
23
+ .promotion-bumpin__header--bg::before {
24
+ content: '';
25
+ position: absolute;
26
+ inset: 0;
27
+ border-radius: inherit;
28
+ /* 左侧深蓝遮罩:标题清晰可读,右侧图片透出 */
29
+ background: linear-gradient(
30
+ 105deg,
31
+ rgba(5, 10, 40, 0.82) 0%,
32
+ rgba(5, 10, 40, 0.60) 50%,
33
+ rgba(5, 10, 40, 0.18) 100%
34
+ );
35
+ }
36
+ .promotion-bumpin__header--bg .promotion-bumpin__header-copy {
37
+ position: relative;
38
+ z-index: 1;
39
+ }
40
+
41
+ .promotion-bumpin__cover {
42
+ flex: 0 0 auto;
43
+ width: 116px;
44
+ height: 116px;
45
+ border-radius: 20px;
46
+ object-fit: cover;
47
+ box-shadow: 0 8px 22px rgba(2, 18, 55, 0.32);
48
+ }
49
+ .promotion-bumpin__cover-placeholder {
50
+ display: grid;
51
+ flex: 0 0 auto;
52
+ width: 116px;
53
+ height: 116px;
54
+ place-items: center;
55
+ border-radius: 20px;
56
+ color: #fff;
57
+ background: rgba(255, 255, 255, 0.16);
58
+ }
59
+ .promotion-bumpin__header-copy {
60
+ display: grid;
61
+ gap: 8px;
62
+ min-width: 0;
63
+ }
64
+
65
+ /* ── 活动类型胶囊标签(碰一下联单) ── */
66
+ .promotion-bumpin__tag-row {
67
+ display: flex;
68
+ align-items: center;
69
+ gap: 8px;
70
+ flex-wrap: wrap;
71
+ }
72
+ .promotion-bumpin__tag {
73
+ display: inline-block;
74
+ padding: 4px 14px;
75
+ border-radius: 999px;
76
+ background: rgba(212, 170, 80, 0.22);
77
+ border: 1px solid rgba(212, 170, 80, 0.55);
78
+ color: #e8c46a;
79
+ font-size: 18px;
80
+ font-weight: 600;
81
+ line-height: 26px;
82
+ letter-spacing: 0.02em;
83
+ }
84
+
85
+ /* ── 活动状态角标(INIT/PROCESSING 不渲染;未开始/已结束/已领奖三态) ── */
86
+ .promotion-bumpin__status {
87
+ display: inline-block;
88
+ padding: 3px 12px;
89
+ border-radius: 999px;
90
+ font-size: 16px;
91
+ font-weight: 600;
92
+ line-height: 22px;
93
+ letter-spacing: 0.02em;
94
+ }
95
+ .promotion-bumpin__status--pending {
96
+ background: rgba(255, 255, 255, 0.14);
97
+ border: 1px solid rgba(255, 255, 255, 0.38);
98
+ color: rgba(255, 255, 255, 0.9);
99
+ }
100
+ .promotion-bumpin__status--terminal {
101
+ background: rgba(120, 120, 120, 0.3);
102
+ border: 1px solid rgba(160, 160, 160, 0.5);
103
+ color: rgba(255, 255, 255, 0.75);
104
+ }
105
+ .promotion-bumpin__status--received {
106
+ background: rgba(212, 170, 80, 0.22);
107
+ border: 1px solid rgba(212, 170, 80, 0.55);
108
+ color: #e8c46a;
109
+ }
110
+
111
+ .promotion-bumpin__title {
112
+ display: flex;
113
+ align-items: center;
114
+ gap: 8px;
115
+ overflow-wrap: anywhere;
116
+ color: #fff;
117
+ font-size: 30px;
118
+ font-weight: 700;
119
+ line-height: 40px;
120
+ }
121
+ .promotion-bumpin__title svg {
122
+ flex: 0 0 auto;
123
+ }
124
+ .promotion-bumpin__subtitle {
125
+ color: rgba(255, 255, 255, 0.84);
126
+ font-size: 22px;
127
+ line-height: 30px;
128
+ }
129
+ .promotion-bumpin__period {
130
+ justify-self: start;
131
+ padding: 4px 14px;
132
+ border-radius: 999px;
133
+ background: rgba(255, 255, 255, 0.16);
134
+ color: rgba(255, 255, 255, 0.85);
135
+ font-size: 18px;
136
+ line-height: 26px;
137
+ }
138
+ .promotion-bumpin__progress {
139
+ display: grid;
140
+ gap: 10px;
141
+ padding: 24px 28px 0;
142
+ }
143
+ .promotion-bumpin__progress-bar {
144
+ height: 14px;
145
+ border-radius: 999px;
146
+ background: var(--promo-line);
147
+ overflow: hidden;
148
+ }
149
+ .promotion-bumpin__progress-fill {
150
+ height: 100%;
151
+ border-radius: 999px;
152
+ background: var(--promo-cta-orange);
153
+ transition: width 0.28s ease;
154
+ }
155
+ .promotion-bumpin__progress-text {
156
+ color: var(--promo-muted);
157
+ font-size: 20px;
158
+ line-height: 28px;
159
+ }
160
+
161
+ /* ── steps 步骤节点进度(联单任务)── */
162
+ .promotion-bumpin__steps {
163
+ display: flex;
164
+ align-items: flex-start;
165
+ justify-content: space-between;
166
+ padding: 20px 24px 8px;
167
+ /* 连接线由 step-item 内部布局承载,父容器仅做水平排列 */
168
+ }
169
+ .promotion-bumpin__step-item {
170
+ display: flex;
171
+ flex-direction: column;
172
+ align-items: center;
173
+ gap: 8px;
174
+ flex: 1;
175
+ position: relative;
176
+ }
177
+ /* 步骤间连接线(左侧兄弟完成则高亮) */
178
+ .promotion-bumpin__step-line {
179
+ position: absolute;
180
+ top: 20px;
181
+ right: 50%;
182
+ left: -50%;
183
+ height: 3px;
184
+ background: rgba(255, 255, 255, 0.18);
185
+ /* 拉伸覆盖间距 */
186
+ transform: translateY(-50%);
187
+ }
188
+ .promotion-bumpin__step-line--done {
189
+ background: linear-gradient(90deg, #e8a020 0%, #f0c040 100%);
190
+ box-shadow: 0 0 6px rgba(232, 160, 32, 0.55);
191
+ }
192
+
193
+ /* 步骤圆形节点 */
194
+ .promotion-bumpin__step-node {
195
+ position: relative;
196
+ z-index: 1;
197
+ display: flex;
198
+ align-items: center;
199
+ justify-content: center;
200
+ width: 44px;
201
+ height: 44px;
202
+ border-radius: 50%;
203
+ border: 2px solid rgba(255, 255, 255, 0.3);
204
+ background: rgba(255, 255, 255, 0.12);
205
+ color: rgba(255, 255, 255, 0.7);
206
+ font-size: 18px;
207
+ font-weight: 700;
208
+ line-height: 1;
209
+ }
210
+ /* 已完成节点:白底深色数字 + 金橙边框发光 */
211
+ .promotion-bumpin__step-node--done {
212
+ background: rgba(255, 255, 255, 0.92);
213
+ border-color: rgba(232, 160, 32, 0.8);
214
+ color: #1a2a6c;
215
+ box-shadow: 0 0 10px rgba(232, 160, 32, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
216
+ }
217
+ /* 锁定节点(最后一步未解锁):金橙背景 */
218
+ .promotion-bumpin__step-node--locked {
219
+ background: rgba(212, 158, 40, 0.18);
220
+ border-color: rgba(212, 158, 40, 0.7);
221
+ color: #e8c060;
222
+ box-shadow: 0 0 8px rgba(212, 158, 40, 0.35);
223
+ }
224
+ /* 步骤底部数字标签 */
225
+ .promotion-bumpin__step-label {
226
+ font-size: 18px;
227
+ color: rgba(255, 255, 255, 0.6);
228
+ line-height: 1.2;
229
+ white-space: nowrap;
230
+ }
231
+
232
+ .promotion-bumpin__prizes {
233
+ margin: 24px 28px 0;
234
+ border: 2px solid var(--promo-line);
235
+ border-radius: 24px;
236
+ background: #f5f7fa;
237
+ overflow: hidden;
238
+ }
239
+ .promotion-bumpin__prizes-header {
240
+ display: flex;
241
+ align-items: center;
242
+ gap: 8px;
243
+ padding: 16px 20px;
244
+ color: #b06b2e;
245
+ font-size: 22px;
246
+ font-weight: 700;
247
+ line-height: 30px;
248
+ border-bottom: 2px solid var(--promo-line);
249
+ }
250
+ .promotion-bumpin__prizes-list {
251
+ display: grid;
252
+ margin: 0;
253
+ padding: 0;
254
+ list-style: none;
255
+ }
256
+ .promotion-bumpin__prize-item {
257
+ display: flex;
258
+ align-items: center;
259
+ gap: 16px;
260
+ padding: 16px 20px;
261
+ background: #fff;
262
+ border-bottom: 2px solid var(--promo-line);
263
+ }
264
+ .promotion-bumpin__prize-item:last-child {
265
+ border-bottom: 0;
266
+ }
267
+ .promotion-bumpin__prize-logo {
268
+ flex: 0 0 auto;
269
+ width: 72px;
270
+ height: 72px;
271
+ border-radius: 16px;
272
+ object-fit: cover;
273
+ }
274
+ .promotion-bumpin__prize-logo-placeholder {
275
+ flex: 0 0 auto;
276
+ width: 72px;
277
+ height: 72px;
278
+ border-radius: 16px;
279
+ background: var(--promo-mint-soft);
280
+ }
281
+ .promotion-bumpin__prize-copy {
282
+ display: grid;
283
+ gap: 4px;
284
+ min-width: 0;
285
+ }
286
+ .promotion-bumpin__prize-copy strong {
287
+ overflow: hidden;
288
+ color: var(--promo-ink);
289
+ font-size: 24px;
290
+ font-weight: 650;
291
+ line-height: 32px;
292
+ text-overflow: ellipsis;
293
+ white-space: nowrap;
294
+ }
295
+ .promotion-bumpin__prize-copy small {
296
+ overflow: hidden;
297
+ color: var(--promo-muted);
298
+ font-size: 20px;
299
+ line-height: 28px;
300
+ text-overflow: ellipsis;
301
+ white-space: nowrap;
302
+ }
303
+ .promotion-bumpin__prizes-toggle {
304
+ display: flex;
305
+ align-items: center;
306
+ justify-content: center;
307
+ gap: 6px;
308
+ width: 100%;
309
+ padding: 16px 20px;
310
+ border: none;
311
+ background: none;
312
+ font-size: 20px;
313
+ font-weight: 600;
314
+ color: var(--promo-muted);
315
+ cursor: pointer;
316
+ border-top: 2px solid var(--promo-line);
317
+ }
318
+ .promotion-bumpin__prizes-toggle:active {
319
+ opacity: 0.7;
320
+ }
321
+ .promotion-bumpin__rules {
322
+ margin: 24px 28px 28px;
323
+ border-radius: 20px;
324
+ background: #f5f7fa;
325
+ overflow: hidden;
326
+ }
327
+ .promotion-bumpin__rules-header {
328
+ padding: 14px 20px 0;
329
+ color: var(--promo-muted);
330
+ font-size: 20px;
331
+ font-weight: 700;
332
+ line-height: 28px;
333
+ }
334
+ .promotion-bumpin__rules-content {
335
+ padding: 10px 20px 16px;
336
+ color: var(--promo-muted);
337
+ font-size: 20px;
338
+ line-height: 32px;
339
+ word-break: break-word;
340
+ }
341
+ .promotion-bumpin__rules-content img {
342
+ max-width: 100%;
343
+ }
344
+ .promotion-bumpin__cover {
345
+ flex: 0 0 auto;
346
+ width: 116px;
347
+ height: 116px;
348
+ border-radius: 20px;
349
+ object-fit: cover;
350
+ box-shadow: 0 8px 22px rgba(2, 18, 55, 0.32);
351
+ }
352
+ .promotion-bumpin__cover-placeholder {
353
+ display: grid;
354
+ flex: 0 0 auto;
355
+ width: 116px;
356
+ height: 116px;
357
+ place-items: center;
358
+ border-radius: 20px;
359
+ color: #fff;
360
+ background: rgba(255, 255, 255, 0.16);
361
+ }
362
+ .promotion-bumpin__header-copy {
363
+ display: grid;
364
+ gap: 6px;
365
+ min-width: 0;
366
+ }
367
+ .promotion-bumpin__title {
368
+ display: flex;
369
+ align-items: center;
370
+ gap: 8px;
371
+ overflow-wrap: anywhere;
372
+ color: #fff;
373
+ font-size: 30px;
374
+ font-weight: 700;
375
+ line-height: 40px;
376
+ }
377
+ .promotion-bumpin__title svg {
378
+ flex: 0 0 auto;
379
+ }
380
+ .promotion-bumpin__subtitle {
381
+ color: rgba(255, 255, 255, 0.84);
382
+ font-size: 22px;
383
+ line-height: 30px;
384
+ }
385
+ .promotion-bumpin__period {
386
+ justify-self: start;
387
+ padding: 4px 14px;
388
+ border-radius: 999px;
389
+ background: rgba(255, 255, 255, 0.16);
390
+ color: #fff;
391
+ font-size: 18px;
392
+ line-height: 26px;
393
+ }
394
+ .promotion-bumpin__progress {
395
+ display: grid;
396
+ gap: 10px;
397
+ padding: 24px 28px 0;
398
+ }
399
+ .promotion-bumpin__progress-bar {
400
+ height: 14px;
401
+ border-radius: 999px;
402
+ background: var(--promo-line);
403
+ overflow: hidden;
404
+ }
405
+ .promotion-bumpin__progress-fill {
406
+ height: 100%;
407
+ border-radius: 999px;
408
+ background: var(--promo-cta-orange);
409
+ transition: width 0.28s ease;
410
+ }
411
+ .promotion-bumpin__progress-text {
412
+ color: var(--promo-muted);
413
+ font-size: 20px;
414
+ line-height: 28px;
415
+ }
416
+ .promotion-bumpin__prizes {
417
+ margin: 24px 28px 0;
418
+ border: 2px solid var(--promo-line);
419
+ border-radius: 24px;
420
+ background: #f5f7fa;
421
+ overflow: hidden;
422
+ }
423
+ .promotion-bumpin__prizes-header {
424
+ display: flex;
425
+ align-items: center;
426
+ gap: 8px;
427
+ padding: 16px 20px;
428
+ color: #b06b2e;
429
+ font-size: 22px;
430
+ font-weight: 700;
431
+ line-height: 30px;
432
+ border-bottom: 2px solid var(--promo-line);
433
+ }
434
+ .promotion-bumpin__prizes-list {
435
+ display: grid;
436
+ margin: 0;
437
+ padding: 0;
438
+ list-style: none;
439
+ }
440
+ .promotion-bumpin__prize-item {
441
+ display: flex;
442
+ align-items: center;
443
+ gap: 16px;
444
+ padding: 16px 20px;
445
+ background: #fff;
446
+ border-bottom: 2px solid var(--promo-line);
447
+ }
448
+ .promotion-bumpin__prize-item:last-child {
449
+ border-bottom: 0;
450
+ }
451
+ .promotion-bumpin__prize-logo {
452
+ flex: 0 0 auto;
453
+ width: 72px;
454
+ height: 72px;
455
+ border-radius: 16px;
456
+ object-fit: cover;
457
+ }
458
+ .promotion-bumpin__prize-logo-placeholder {
459
+ flex: 0 0 auto;
460
+ width: 72px;
461
+ height: 72px;
462
+ border-radius: 16px;
463
+ background: var(--promo-mint-soft);
464
+ }
465
+ .promotion-bumpin__prize-copy {
466
+ display: grid;
467
+ gap: 4px;
468
+ min-width: 0;
469
+ }
470
+ .promotion-bumpin__prize-copy strong {
471
+ overflow: hidden;
472
+ color: var(--promo-ink);
473
+ font-size: 24px;
474
+ font-weight: 650;
475
+ line-height: 32px;
476
+ text-overflow: ellipsis;
477
+ white-space: nowrap;
478
+ }
479
+ .promotion-bumpin__prize-copy small {
480
+ overflow: hidden;
481
+ color: var(--promo-muted);
482
+ font-size: 20px;
483
+ line-height: 28px;
484
+ text-overflow: ellipsis;
485
+ white-space: nowrap;
486
+ }
487
+ .promotion-bumpin__prizes-toggle {
488
+ display: flex;
489
+ align-items: center;
490
+ justify-content: center;
491
+ gap: 6px;
492
+ width: 100%;
493
+ padding: 16px 20px;
494
+ border: none;
495
+ background: none;
496
+ font-size: 20px;
497
+ font-weight: 600;
498
+ color: var(--promo-muted);
499
+ cursor: pointer;
500
+ border-top: 2px solid var(--promo-line);
501
+ }
502
+ .promotion-bumpin__prizes-toggle:active {
503
+ opacity: 0.7;
504
+ }
505
+ .promotion-bumpin__rules {
506
+ margin: 24px 28px 28px;
507
+ border-radius: 20px;
508
+ background: #f5f7fa;
509
+ overflow: hidden;
510
+ }
511
+ .promotion-bumpin__rules-header {
512
+ padding: 14px 20px 0;
513
+ color: var(--promo-muted);
514
+ font-size: 20px;
515
+ font-weight: 700;
516
+ line-height: 28px;
517
+ }
518
+ .promotion-bumpin__rules-content {
519
+ padding: 10px 20px 16px;
520
+ color: var(--promo-muted);
521
+ font-size: 20px;
522
+ line-height: 32px;
523
+ word-break: break-word;
524
+ }
525
+ .promotion-bumpin__rules-content img {
526
+ max-width: 100%;
527
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * sanitizeActivityHtml — 活动规则富文本过滤(零依赖,DOM API)。
3
+ * 数据源是支付宝开放平台 activityRuleDetail(半信任外部 API)。
4
+ * 剥离脚本面(script/iframe 等危险标签 + on* 事件属性 + javascript: 协议)。
5
+ */
6
+ const DROP_TAGS = new Set([
7
+ 'script', 'iframe', 'object', 'embed', 'style', 'link', 'meta', 'base', 'form', 'input',
8
+ 'svg', 'math',
9
+ ]);
10
+
11
+ const URL_ATTRS = new Set(['href', 'src', 'xlink:href', 'formaction', 'action', 'poster', 'background']);
12
+
13
+ export function sanitizeActivityHtml(html: string): string {
14
+ if (typeof DOMParser === 'undefined') return '';
15
+ const doc = new DOMParser().parseFromString(html, 'text/html');
16
+ const walk = (node: Element): void => {
17
+ for (const child of [...node.children]) {
18
+ if (DROP_TAGS.has(child.tagName.toLowerCase())) {
19
+ child.remove();
20
+ continue;
21
+ }
22
+ for (const attr of [...child.attributes]) {
23
+ const name = attr.name.toLowerCase();
24
+ if (name.startsWith('on')) {
25
+ child.removeAttribute(attr.name);
26
+ continue;
27
+ }
28
+ if (URL_ATTRS.has(name)) {
29
+ const value = attr.value.trim().toLowerCase();
30
+ const isJs = value.startsWith('javascript:');
31
+ const isData = value.startsWith('data:') && !value.startsWith('data:image/');
32
+ if (isJs || isData) child.removeAttribute(attr.name);
33
+ }
34
+ }
35
+ walk(child);
36
+ }
37
+ };
38
+ walk(doc.body);
39
+ return doc.body.innerHTML;
40
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './server/index';
@@ -0,0 +1,44 @@
1
+ import type { CardMeta } from '@tbox.cn/app-contracts';
2
+ import {
3
+ promotionBumpInActivityCardDataSchema,
4
+ type PromotionBumpInActivityCardData,
5
+ } from '@tbox.cn/app-contracts-mall';
6
+ import { samples } from './samples';
7
+
8
+ export type AlipayActivityBumpInCardData = PromotionBumpInActivityCardData;
9
+
10
+ const meta: CardMeta<typeof promotionBumpInActivityCardDataSchema> = {
11
+ cardType: 'promotion-bumpin-activity',
12
+ dataSchema: promotionBumpInActivityCardDataSchema,
13
+ displayName: '碰出惊喜活动',
14
+ description: '支付宝碰出惊喜互动营销活动(进度 + 奖励池)',
15
+ sampleData: {
16
+ activityRef: 'demo:bumpin:activity:1',
17
+ title: '碰一下 | 出惊喜',
18
+ mainTitle: '碰一下支付 5 笔,得 88 元惊喜礼包',
19
+ tagLabel: '碰一下联单',
20
+ actStatus: 'PROCESSING',
21
+ totalProgress: '5',
22
+ currentProgress: '1',
23
+ progressUnit: '笔',
24
+ startAtText: '2026-08-01',
25
+ endAtText: '2026-08-31',
26
+ vouchers: [
27
+ {
28
+ prizeId: 'PZ1741674669',
29
+ voucherName: '88元惊喜礼包',
30
+ voucherType: 'ITEM_REDUCTION_AMOUNT',
31
+ reductionAmount: '88',
32
+ thresholdAmountText: '满100元可用',
33
+ unit: '元',
34
+ merchantName: '示例商户',
35
+ },
36
+ ],
37
+ mode: 'detail',
38
+ progressStyle: 'steps',
39
+ },
40
+ samples,
41
+ schemaVersion: 1,
42
+ };
43
+
44
+ export default meta;