Merge branch 'main' of https://gitea.xhzone.cn/felix/miniprogram-1 into lisa
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -109,7 +109,6 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
checkDayType() {
|
||||
const currentHour = new Date().getHours();
|
||||
const currentDate = new Date().toLocaleDateString('zh-CN');
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user