feat: Add plant identification feature with image upload, classification results display, and integration into the wiki page.

This commit is contained in:
Blizzard
2026-02-10 14:02:35 +08:00
parent 6ea77c00ce
commit 6f88bc656b
15 changed files with 1481 additions and 491 deletions
+10 -9
View File
@@ -119,26 +119,27 @@
<t-popup visible="{{showIdentifyModal}}" bind:visible-change="onPopupVisibleChange" placement="bottom">
<view class="popup-content">
<view class="popup-header">
<text class="popup-title">识别植物</text>
<text class="popup-title">🌿 植物识别</text>
</view>
<text class="popup-subtitle">拍照或上传图片,AI 帮你识别植物</text>
<view class="upload-options-grid">
<view class="upload-opt-item">
<view class="opt-icon-circle" style="background: #E8F5E9;">
<t-icon name="camera" size="64rpx" color="#2E7D32" />
<view class="upload-opt-item" bindtap="handleIdentify" data-source="camera">
<view class="opt-icon-circle" style="background: linear-gradient(135deg, #E8F5E9, #C8E6C9);">
<t-icon name="camera" size="56rpx" color="#2E7D32" />
</view>
<text>拍照识别</text>
</view>
<view class="upload-opt-item">
<view class="opt-icon-circle" style="background: #E3F2FD;">
<t-icon name="image" size="64rpx" color="#1565C0" />
<view class="upload-opt-item" bindtap="handleIdentify" data-source="album">
<view class="opt-icon-circle" style="background: linear-gradient(135deg, #E3F2FD, #BBDEFB);">
<t-icon name="image" size="56rpx" color="#1565C0" />
</view>
<text>相册上传</text>
<text>相册选取</text>
</view>
</view>
<view class="popup-footer">
<t-button block variant="outline" bind:tap="closeIdentifyModal">取消</t-button>
<view class="cancel-btn" bindtap="closeIdentifyModal">取消</view>
</view>
</view>
</t-popup>