39 lines
1.6 KiB
Plaintext
39 lines
1.6 KiB
Plaintext
<view class="container">
|
|
<view class="chatlog {{ show_modal.length > 0 ? 'hidden' : '' }}">
|
|
<contentstream id="prompt" wx:if="{{ prompt.length > 0 }}" content="{{ prompt }}" is_prompt="1"></contentstream>
|
|
<contentstream id="response" content="{{ response }}"></contentstream>
|
|
</view>
|
|
<view class="bottom">
|
|
<view class="quick-actions">
|
|
<view bindtap="show_channel" class="quick-action">
|
|
关注公众号
|
|
</view>
|
|
<servicemodal wechat_channel="1" show_hide_button="1" bindhide="hide_modal" wx:if="{{ show_modal == 'channel' }}" />
|
|
<view bindtap="show_service" class="quick-action">
|
|
人工客服
|
|
</view>
|
|
<servicemodal show_hide_button="1" bindhide="hide_modal" wx:if="{{ show_modal == 'service' }}" />
|
|
<view bindtap="goto_camera" class="quick-action">
|
|
AI验证
|
|
</view>
|
|
</view>
|
|
<view class="input-container">
|
|
<input
|
|
class="input-field"
|
|
placeholder="输入您的问题..."
|
|
value="{{ currentMessage }}"
|
|
bindinput="onInputChange"
|
|
confirm-type="send"
|
|
bindconfirm="sendMessage"
|
|
disabled="{{ isLoading }}"
|
|
/>
|
|
<view
|
|
class="send-button {{ currentMessage.length > 0 && !isLoading ? 'active' : '' }}"
|
|
bindtap="sendMessage"
|
|
>
|
|
<text wx:if="{{ !isLoading }}">发送</text>
|
|
<text wx:else>...</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> |