1 |
- <block wx:if="{{scrollHeight>0}}"><scroll-view class="scroll-view" style="{{'height:'+(scrollHeight+'px')+';'+('margin-top:'+(topbarOffsetHeight+'px')+';')}}" scroll-y="true" lower-threshold="200" scroll-top="{{scrollTop}}" scroll-into-view="{{scrollTo}}" scroll-with-animation="true" refresher-enabled="true" refresher-triggered="{{scrollTriggered}}" refresher-threshold="{{45}}" refresher-default-style="white" refresher-background="#151126" data-event-opts="{{[['refresherrefresh',[['scrollRefresh',['$event']]]],['refresherpulling',[['scrollPulling',['$event']]]],['refresherrestore',[['scrollRestore',['$event']]]],['refresherabort',[['scrollAbort',['$event']]]],['scrolltolower',[['scrollToBottom',['$event']]]]]}}" bindrefresherrefresh="__e" bindrefresherpulling="__e" bindrefresherrestore="__e" bindrefresherabort="__e" bindscrolltolower="__e"><view style="width:100%;" id="message-scroll"><block wx:if="{{isCompleted}}"><view class="no-message">没有更多啦</view></block><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="t-message"><block wx:if="{{conversation.type!=='@TIM#SYSTEM'}}"><view id="{{item.$orig.ID}}"><view class="t-message-item"><block wx:if="{{item.$orig.type==='TIMGroupTipElem'}}"><t-u-i-tip-message vue-id="{{'8fa16390-1-'+index}}" message="{{item.$orig}}" bind:__l="__l"></t-u-i-tip-message></block><block wx:if="{{item.$orig.type!=='TIMGroupTipElem'}}"><view class="{{[item.$orig.flow==='out'||item.g0?'t-self-message':'t-recieve-message']}}"><block wx:if="{{item.$orig.flow==='in'&&item.$orig.type!=='TIMCustomElem'||item.$orig.flow==='in'&&item.g1}}"><image class="t-message-avatar" src="{{item.$orig.avatar||'https://sdk-web-1252463788.cos.ap-hongkong.myqcloud.com/component/TUIKit/assets/avatar_21.png'}}"></image></block><block wx:if="{{conversation.type==='C2C'&&item.$orig.flow==='out'}}"><view class="read-receipts"><block wx:if="{{item.$orig.isPeerRead}}"><view>已读</view></block><block wx:else><view>未读</view></block></view></block><view><block wx:if="{{item.$orig.type==='TIMTextElem'}}"><t-u-i-text-message vue-id="{{'8fa16390-2-'+index}}" message="{{item.$orig}}" isMine="{{item.$orig.flow==='out'}}" bind:__l="__l"></t-u-i-text-message></block><block wx:if="{{item.$orig.type==='TIMImageElem'}}"><t-u-i-image-message vue-id="{{'8fa16390-3-'+index}}" message="{{item.$orig}}" isMine="{{item.$orig.flow==='out'}}" bind:__l="__l"></t-u-i-image-message></block><block wx:if="{{item.$orig.type==='TIMVideoFileElem'}}"><t-u-i-video-message vue-id="{{'8fa16390-4-'+index}}" message="{{item.$orig}}" isMine="{{item.$orig.flow==='out'}}" bind:__l="__l"></t-u-i-video-message></block><block wx:if="{{item.$orig.type==='TIMSoundElem'}}"><t-u-i-audio-message vue-id="{{'8fa16390-5-'+index}}" message="{{item.$orig}}" isMine="{{item.$orig.flow==='out'}}" bind:__l="__l"></t-u-i-audio-message></block><block wx:if="{{item.$orig.type==='TIMCustomElem'}}"><t-u-i-custom-message vue-id="{{'8fa16390-6-'+index}}" message="{{item.$orig}}" isMine="{{item.$orig.flow==='out'}}" bind:__l="__l"></t-u-i-custom-message></block><block wx:if="{{item.$orig.type==='TIMFaceElem'}}"><t-u-i-face-message vue-id="{{'8fa16390-7-'+index}}" message="{{item.$orig}}" isMine="{{item.$orig.flow==='out'}}" bind:__l="__l"></t-u-i-face-message></block><block wx:if="{{item.$orig.type==='TIMFileElem'}}"><t-u-i-file-message vue-id="{{'8fa16390-8-'+index}}" message="{{item.$orig}}" isMine="{{item.$orig.flow==='out'}}" bind:__l="__l"></t-u-i-file-message></block></view><block wx:if="{{item.$orig.flow==='out'}}"><image class="t-message-avatar" src="{{item.$orig.avatar||'https://sdk-web-1252463788.cos.ap-hongkong.myqcloud.com/component/TUIKit/assets/avatar_21.png'}}"></image></block></view></block></view></view></block><block wx:else><view id="{{item.$orig.ID}}" data-value="{{item.$orig.ID}}"><t-u-i-system-message vue-id="{{'8fa16390-9-'+index}}" message="{{item.$orig}}" bind:__l="__l"></t-u-i-system-message></view></block></view></block></view><view id="{{endItem}}"></view></scroll-view></block>
|