index.wxml 1.3 KB

1
  1. <view><block wx:if="{{renderDom.type==='image'}}"><view class="image-message"><image class="msg-img" src="{{renderDom.imageUrl}}" mode="widthFix" data-event-opts="{{[['tap',[['previewImage',['$event']]]]]}}" bindtap="__e"></image></view></block><block wx:if="{{renderDom.type==='video'}}"><view data-event-opts="{{[['tap',[['playerHander',['$event']]]]]}}" class="video-message" bindtap="__e"><image class="poster" src="{{renderDom.videoCover}}" mode="aspectFill"></image><image class="video-icon" src="{{assetsUrl+'talk-playing.png'}}" mode="aspectFit"></image></view></block><block wx:if="{{renderDom.type==='system'}}"><view data-event-opts="{{[['tap',[['playerHander',['$event']]]]]}}" class="system-message" bindtap="__e"><block wx:if="{{renderDom.text!==''}}"><view class="err-title">{{''+renderDom.text+''}}</view></block><view class="err-line"><text class="err-text">{{renderDom.context}}</text><text data-event-opts="{{[['tap',[['toPath',['$0'],['renderDom.highlightLink']]]]]}}" class="err-text" style="{{'color:'+(''+renderDom.highlightColor)+';'}}" bindtap="__e">{{''+renderDom.highlightContext+''}}</text></view></view></block><block wx:if="{{renderDom.type==='notSupport'}}"><view class="message-body-span text-message"><view class="message-body-span-text">{{renderDom[0].text}}</view></view></block></view>