feat: Add plant identification feature with image upload, classification results display, and integration into the wiki page.
This commit is contained in:
+10
-9
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user