69 lines
1.8 KiB
Plaintext
69 lines
1.8 KiB
Plaintext
<view class="home">
|
||
<view class="hero-bg">
|
||
<view class="hero-blob blob-1"></view>
|
||
<view class="hero-blob blob-2"></view>
|
||
<view class="hero-blob blob-3"></view>
|
||
<view class="hero-noise"></view>
|
||
</view>
|
||
|
||
<view class="topbar">
|
||
<view class="brand-mini">财务智能问答</view>
|
||
<view class="topbar-more" bindtap="openDrawer">
|
||
<view class="dot"></view>
|
||
<view class="dot"></view>
|
||
<view class="dot"></view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="hero">
|
||
<view class="hero-title">你好,我是财务智能助手</view>
|
||
<view class="hero-sub">支持文字提问、语音识别、上传截图</view>
|
||
</view>
|
||
|
||
<view class="quick-bar">
|
||
<view
|
||
class="quick-chip"
|
||
wx:for="{{quickPrompts}}"
|
||
wx:key="key"
|
||
data-key="{{item.key}}"
|
||
bindtap="onQuickTap"
|
||
>
|
||
<text class="quick-ico">{{item.icon}}</text>
|
||
<text class="quick-label">{{item.label}}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="input-bar">
|
||
<view class="btn-icon" bindtap="goChatAttach">
|
||
<text class="icon">+</text>
|
||
</view>
|
||
<input
|
||
class="input-text"
|
||
placeholder="Ask me anything..."
|
||
placeholder-class="input-ph"
|
||
value="{{question}}"
|
||
bindinput="onQuestionInput"
|
||
confirm-type="send"
|
||
bindconfirm="submit"
|
||
adjust-position="{{true}}"
|
||
/>
|
||
<view class="btn-icon" bindtap="goChatVoice">
|
||
<text class="icon">🎤</text>
|
||
</view>
|
||
</view>
|
||
|
||
<side-drawer
|
||
open="{{drawerOpen}}"
|
||
sessions="{{sessions}}"
|
||
sessions-loading="{{sessionsLoading}}"
|
||
user-name="{{userName}}"
|
||
user-sub="{{userSub}}"
|
||
avatar-char="{{avatarChar}}"
|
||
current-sid="{{null}}"
|
||
bind:close="closeDrawer"
|
||
bind:newchat="closeDrawer"
|
||
bind:selectsession="onSelectSession"
|
||
bind:logout="logout"
|
||
/>
|
||
</view>
|