Files
ChowBox/miniapp/components/box-animation/box-animation.wxml
王鹏 802b4ba229 fix: 修复 VoiceController Map.of 兼容性 + ExploreController 参数不匹配
- VoiceController: Map.of() -> Collections.singletonMap() 兼容 Java 8
- ExploreController: 补齐 takeoutService.roll() 缺失的 taste/priceRange/allergies 参数

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-08 20:02:27 +08:00

53 lines
1.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="animation-overlay box-{{boxType}} {{show ? 'visible' : ''}}" wx:if="{{show}}">
<!-- ═══ Act 1: 光晕扩散 + 背景变暗 ═══ -->
<view class="bg-dimmer {{act >= 1 ? 'active' : ''}}"></view>
<view class="act1-glow-ring {{act >= 1 ? 'active' : ''}}">
<view class="glow-inner"></view>
</view>
<!-- ═══ 盲盒主体 + 盒盖 ═══ -->
<view class="box-stage {{act >= 1 ? 'active' : ''}}">
<!-- 盒盖Act2 飞起) -->
<view class="box-lid {{act >= 2 ? 'active' : ''}}">
<view class="lid-top"></view>
</view>
<!-- 金色光芒Act2 从盒缝透出) -->
<view class="golden-light {{act >= 2 ? 'active' : ''}}"></view>
<!-- 盒体 -->
<view class="box-body {{act >= 2 ? 'compressed' : ''}}">
<text class="box-emoji">{{boxEmoji}}</text>
</view>
<!-- 粒子Act2 溅射) -->
<view class="spark-particles {{act >= 2 ? 'active' : ''}}">
<view class="spark s1">{{sparkEmoji}}</view>
<view class="spark s2">{{sparkEmoji}}</view>
<view class="spark s3">{{sparkEmoji}}</view>
<view class="spark s4">{{sparkEmoji}}</view>
</view>
</view>
<!-- ═══ Act 2: 白色闪屏过渡 ═══ -->
<view class="act2-mask {{act >= 2 ? 'active' : ''}}"></view>
<!-- ═══ Act 3: 内容承载层(弹性弹出) ═══ -->
<view class="act3-content {{act >= 3 ? 'active' : ''}}">
<view class="content-inner">
<slot></slot>
</view>
</view>
<!-- ═══ 彩带纸屑Act3 收尾) ═══ -->
<view class="confetti-stage {{act >= 3 ? 'active' : ''}}">
<view class="confetti c1" wx:for="{{confettiColors}}" wx:key="*this"
style="--c:{{item}}; --x:{{10 + index * 22}}%; --d:{{0.8 + index * 0.15}}s;">
</view>
</view>
</view>