This commit is contained in:
chenlisha02
2025-11-09 20:19:52 +08:00
3 changed files with 3 additions and 4 deletions

View File

@@ -813,7 +813,7 @@ Page<IPageData, IPageInstance>({
this.audioContext.play()
this.setData({ isPlaying: true })
} catch (error) {
wx.showToast({ title: '播放失败', icon: 'none' })
wx.showToast({ title: '音频播放失败', icon: 'none' })
}
}).catch((error) => {
console.error('下载音频文件失败:', error)

View File

@@ -109,7 +109,6 @@ Page({
}
},
checkDayType() {
const currentHour = new Date().getHours();
const currentDate = new Date().toLocaleDateString('zh-CN');

View File

@@ -52,13 +52,13 @@
</view>
</view>
<view class="history-wrap">
<view class="history-card" wx:for="{{groupedHistory}}" wx:key="year">
<view class="history-card" wx:for="{{groupedHistory}}" wx:key="index">
<p class="history-card-title">{{item.year}}年</p>
<view class="history-card-list">
<view class="history-card-item" catch:tap="onImageCardTap" data-image-items="{{historyItem}}" wx:for="{{item.items}}" wx:for-item="historyItem" wx:for-index="index" wx:key="index">
<p class="month-day">{{historyItem.monthDay}}</p>
<scroll-view class="images-list" scroll-x enable-flex>
<view class="image-item-wrap" wx:for="{{historyItem.images}}" wx:for-item="image" wx:key="image_id" catch:tap="onImageTap" data-image-id="{{image.image_id}}">
<view class="image-item-wrap" wx:for="{{historyItem.images}}" wx:for-item="image" wx:key="index" catch:tap="onImageTap" data-image-id="{{image.image_id}}">
<t-skeleton wx:if="{{image.thumbnail_loading}}" class="image-item" theme="image" animation="gradient" loading="{{true}}"></t-skeleton>
<image wx:else class="image-item" src="{{image.thumbnail_url}}" mode="aspectFill" />
</view>