<view class="main"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="cu-chat"><block wx:if="{{item.$orig.senderId==currentUser.uuid}}"><view class="cu-item self"><view class="time-lag">{{''+item.m0+''}}</view><block wx:if="{{item.$orig.type=='text'}}"><view class="main"><view class="content bg-green shadow"><text>{{item.$orig.payload.text}}</text></view></view></block><block wx:else><block wx:if="{{item.$orig.type=='image'}}"><view class="main"><image class="radius" style="{{('width:'+item.$orig.payload.width+'rpx;height'+item.$orig.payload.height+'rpx;')}}" src="{{item.$orig.payload.url}}" mode="widthFix" data-event-opts="{{[['tap',[['yulan',['$0'],[[['messages','',index,'payload.url']]]]]]]}}" bindtap="__e"></image></view></block><block wx:else><view class="main"><go-easy-audio-player vue-id="{{'986f9b04-1-'+index}}" src="{{item.$orig.payload.url}}" duration="{{item.$orig.payload.duration}}" bind:__l="__l"></go-easy-audio-player></view></block></block><view class="cu-avatar radius" style="{{('background-image:url('+currentUser.avatar+');')}}"></view></view></block><block wx:else><view class="cu-item"><view class="cu-avatar radius" style="{{('background-image:url('+doctorInfo.avatar+');')}}"></view><block wx:if="{{item.$orig.type=='text'}}"><view class="main"><view class="content shadow"><text>{{item.$orig.payload.text}}</text></view></view></block><block wx:else><block wx:if="{{item.$orig.type=='image'}}"><view class="main"><image class="radius" style="{{('width:'+item.$orig.payload.width+'rpx;height'+item.$orig.payload.height+'rpx;')}}" src="{{item.$orig.payload.url}}" mode="widthFix" data-event-opts="{{[['tap',[['yulan',['$0'],[[['messages','',index,'payload.url']]]]]]]}}" bindtap="__e"></image></view></block><block wx:else><view class="main"><go-easy-audio-player vue-id="{{'986f9b04-2-'+index}}" src="{{item.$orig.payload.url}}" duration="{{item.$orig.payload.duration}}" bind:__l="__l"></go-easy-audio-player></view></block></block></view></block></view></block><block wx:if="{{doctorstatus!='4'}}"><view class="{{[InputBottom!=0?'cu-bar foot tab input cur':'cu-bar foot input']}}" style="{{('bottom:'+InputBottom+'px')}}"><view data-event-opts="{{[['tap',[['sendvoice',['$event']]]]]}}" class="action" bindtap="__e"><text class="cuIcon-sound text-grey"></text></view><block wx:if="{{!isvoice}}"><input class="solid-bottom" disabled="{{isinput}}" adjust-position="{{false}}" focus="{{false}}" maxlength="300" placeholder="{{textinput}}" cursor-spacing="10" data-event-opts="{{[['focus',[['InputFocus',['$event']]]],['blur',[['InputBlur',['$event']]]],['input',[['__set_model',['','keyword','$event',[]]]]]]}}" value="{{keyword}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></block><block wx:else><button data-event-opts="{{[['touchstart',[['onRecordStart',['$event']]]],['touchend',[['onRecordEnd',['$event']]]]]}}" class="flex-sub" style="font-size:30rpx;height:64rpx;padding:0;" catchtouchstart="__e" catchtouchend="__e">{{audio.recording?'松开发送':'按住发送语音'}}</button></block><view data-event-opts="{{[['tap',[['sendImage',['$event']]]]]}}" class="action" style="margin-right:20rpx;" bindtap="__e"><text class="cuIcon-picfill text-grey"></text></view><button data-event-opts="{{[['tap',[['sendMessage',['$event']]]]]}}" class="cu-btn bg-green shadow" bindtap="__e">发送</button></view></block></view>