feat: 百科rag

This commit is contained in:
Blizzard
2026-04-23 11:13:23 +08:00
parent 40f3a8cfa8
commit 9fe2fd42e0
23 changed files with 1129 additions and 69 deletions
+16 -5
View File
@@ -17,6 +17,9 @@
enhanced
show-scrollbar="{{false}}"
scroll-top="{{scrollTop}}"
refresher-enabled="{{true}}"
bindrefresherrefresh="onRefresh"
refresher-triggered="{{isRefreshing}}"
>
<view class="search-section">
<view class="search-box-card">
@@ -111,13 +114,9 @@
</view>
<!-- Spacer -->
<view style="height: 160rpx;"></view>
<view style="height: 200rpx;"></view>
</scroll-view>
<view class="floating-add-btn" bindtap="openIdentifyModal">
<t-icon name="scan" size="40rpx" color="#FFF" />
<text>植物识别</text>
</view>
<!-- Identify Popup -->
<t-popup visible="{{showIdentifyModal}}" bind:visible-change="onPopupVisibleChange" placement="bottom">
@@ -147,4 +146,16 @@
</view>
</view>
</t-popup>
<!-- Floating Buttons (must be after popup in DOM to stay on top) -->
<view class="floating-btns" wx:if="{{!showIdentifyModal}}">
<view class="floating-btn chat-btn" bindtap="goToAiChat">
<text class="btn-emoji">🤖</text>
<text>AI问答</text>
</view>
<view class="floating-btn scan-btn" bindtap="openIdentifyModal">
<t-icon name="scan" size="40rpx" color="#FFF" />
<text>植物识别</text>
</view>
</view>
</view>