<view class="page"><view class="container"><block wx:if="{{$root.g0===0}}"><text class="noData">没有对话记录</text></block><scroll-view class="msg-list" scroll-into-view="{{scrollIntoView}}" scroll-y="true" enable-flex="{{true}}"><block wx:for="{{$root.l0}}" wx:for-item="msg" wx:for-index="index" wx:key="index"><view class="msg-item"><uni-dateformat class="create_time" vue-id="{{'6e1d75c0-1-'+index}}" date="{{msg.$orig.create_time}}" format="MM/dd hh:mm:ss" bind:__l="__l"></uni-dateformat><view class="{{[(!msg.$orig.isAi)?'reverse':'']}}"><view class="userInfo"><image class="avatar" src="{{msg.$orig.isAi?'../../static/uni-ai.png':'../../static/avatar.png'}}" mode="widthFix"></image></view><view style="flex-direction:column;"><view class="content"><uni-ai-msg vue-id="{{'6e1d75c0-2-'+index}}" md="{{msg.$orig.content}}" bind:__l="__l"></uni-ai-msg><block wx:if="{{msg.g1}}"><text class="blinking-cursor">|</text></block></view></view><block wx:if="{{msg.g2}}"><uni-icons class="msgStateIcon" vue-id="{{'6e1d75c0-3-'+index}}" color="{{msg.$orig.state===0?'#999':'#d22'}}" type="{{msg.m0}}" data-event-opts="{{[['^click',[['e0']]]]}}" data-event-params="{{({msg:msg.$orig})}}" bind:click="__e" bind:__l="__l"></uni-icons></block></view></view></block><view id="last-msg-item"></view></scroll-view><view class="foot-box"><view class="trash"><uni-icons vue-id="6e1d75c0-4" type="trash" size="24" color="#888" data-event-opts="{{[['^click',[['clear']]]]}}" bind:click="__e" bind:__l="__l"></uni-icons></view><view class="textarea-box"><textarea class="textarea" auto-height="{{true}}" disabled="{{inputBoxDisabled}}" placeholder="{{placeholderText}}" maxlength="{{-1}}" placeholder-class="input-placeholder" data-event-opts="{{[['input',[['__set_model',['','content','$event',[]]]]]]}}" value="{{content}}" bindinput="__e"></textarea></view><button class="send" disabled="{{inputBoxDisabled||!content}}" data-event-opts="{{[['tap',[['beforeSendMsg',['$event']]]]]}}" bindtap="__e">发送</button></view></view><label class="set-stream"><text style="font-size:12px;">stream:</text><switch style="transform:scale(0.7);" checked="{{stream}}" data-event-opts="{{[['change',[['changeStream',['$event']]]]]}}" bindchange="__e"></switch></label></view>