feat: ai问答

This commit is contained in:
Blizzard
2026-04-28 10:36:51 +08:00
parent 0715a16d91
commit 058a575e10
13 changed files with 329 additions and 52 deletions
+19 -14
View File
@@ -7,14 +7,20 @@
</view>
<view class="header-gallery">
<t-swiper
current="{{activeImageIndex}}"
autoplay="{{false}}"
navigation="{{ { type: '' } }}"
list="{{swiperImages}}"
bind:change="onSwiperChange"
height="500rpx"
/>
<block wx:if="{{swiperImages.length > 0}}">
<t-swiper
current="{{activeImageIndex}}"
autoplay="{{false}}"
navigation="{{ { type: '' } }}"
list="{{swiperImages}}"
bind:change="onSwiperChange"
height="500rpx"
/>
</block>
<view wx:else class="header-empty-placeholder">
<text class="empty-plant-emoji">🌱</text>
<text class="empty-photo-hint">去编辑页添加照片吧</text>
</view>
<view class="header-gradient"></view>
<!-- Image Counter -->
@@ -177,12 +183,11 @@
<view wx:for="{{displayRecords}}" wx:key="id" class="timeline-item">
<view class="timeline-dot"></view>
<text class="timeline-date">{{item.date}}</text>
<view class="timeline-content-box">
<view class="timeline-content-box" style="border-left-color: {{item.iconColor || '#81C784'}};">
<view class="timeline-title">
<t-icon wx:if="{{item.type === 'growth'}}" name="thumb-up" size="32rpx" color="#4CAF50" />
<t-icon wx:elif="{{item.type === 'repot'}}" name="swap" size="32rpx" color="#FF9800" />
<t-icon wx:elif="{{item.type === 'pest'}}" name="error-circle" size="32rpx" color="#F44336" />
<t-icon wx:else name="file" size="32rpx" color="#2196F3" />
<view class="timeline-type-badge" style="background: {{item.accentColor || '#E8F5E9'}};">
<t-icon name="{{item.iconName || 'file'}}" size="28rpx" color="{{item.iconColor || '#4CAF50'}}" />
</view>
<text>{{item.title}}</text>
</view>
<text class="timeline-desc">{{item.content}}</text>
@@ -190,7 +195,7 @@
wx:if="{{item.image}}"
src="{{item.image}}"
mode="aspectFill"
style="width: 220rpx; height: 220rpx; border-radius: 16rpx; margin-top: 16rpx;"
style="width: 100%; height: 280rpx; border-radius: 20rpx; margin-top: 20rpx;"
class="timeline-img"
bindtap="handlePreviewRecordImage"
data-src="{{item.image}}"