fix: 动作详情GIF动图播放 + 收藏按钮避让胶囊

This commit is contained in:
2026-07-22 16:02:04 +08:00
parent 98126c62ec
commit 47c4801f34
9 changed files with 924 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
<view class="page" wx:if="{{exercise}}">
<navbar title="{{exercise.displayName || exercise.name}}" show-back />
<view class="favbtn" style="top: {{statusBarHeight + 12}}px;" bindtap="onToggleFav">
<view class="favbtn" style="top: {{favTop}}px; right: {{favRight}}px;" bindtap="onToggleFav">
<text>{{favorited ? '♥' : '♡'}}</text>
</view>
@@ -14,6 +14,8 @@
lazy-load="true"
binderror="onHeroError" />
<view wx:else class="hero__ph">🏋️</view>
<!-- 上层叠一个动图播放器Canvas 逐帧播放 GIF微信 image 不播 GIF -->
<gif-player wx:if="{{heroGif}}" class="hero__gif" src="{{heroGif}}" />
</view>
<view class="body section">