You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.2 KiB
1 line
3.2 KiB
<view class="page data-v-0f00adf4"><tabbar vue-id="1775f8c0-1" index="{{1}}" class="data-v-0f00adf4" bind:__l="__l"></tabbar><scroll-view class="scroll-view data-v-0f00adf4" scroll-y="{{true}}" scroll-with-animation="{{true}}" scroll-top="{{top}}"><view style="padding:30rpx 30rpx 240rpx;" class="data-v-0f00adf4"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['msgClick',['$0',index],[[['list','',index]]]]]]]}}" class="{{['message','data-v-0f00adf4',item.userType]}}" bindtap="__e"><block wx:if="{{item.userType==='friend'}}"><image class="avatar data-v-0f00adf4" src="{{item.avatar}}" mode="widthFix"></image></block><block wx:if="{{item.messageType==='image'}}"><view class="content data-v-0f00adf4"><image src="{{item.content}}" mode="widthFix" class="data-v-0f00adf4"></image></view></block><block wx:else><block wx:if="{{item.isLoading}}"><view class="content loading-content data-v-0f00adf4"><view class="loading-dots data-v-0f00adf4"><block wx:for="{{3}}" wx:for-item="i" wx:for-index="__i0__" wx:key="*this"><view class="dot data-v-0f00adf4"></view></block></view></view></block><block wx:else><block wx:if="{{item.messageType==='voice'}}"><view class="content voice-content data-v-0f00adf4"><a-trumpet vue-id="{{'1775f8c0-2-'+index}}" isPlay="{{item.isplay}}" class="data-v-0f00adf4" bind:__l="__l"></a-trumpet>{{''+item.content+''}}</view></block><block wx:else><view class="content data-v-0f00adf4">{{''+item.content+''}}</view></block></block></block><block wx:if="{{item.userType==='self'}}"><image class="avatar data-v-0f00adf4" src="{{item.avatar}}" mode="widthFix"></image></block></view></block></view></scroll-view><view class="tool data-v-0f00adf4"><block wx:if="{{messageType==='text'}}"><block class="data-v-0f00adf4"><image class="left-icon data-v-0f00adf4" src="../../static/voice.png" mode="widthFix" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"></image><input class="input data-v-0f00adf4" type="text" data-event-opts="{{[['confirm',[['send',['$event']]]],['input',[['__set_model',['','content','$event',[]]]]]]}}" value="{{content}}" bindconfirm="__e" bindinput="__e"/><image class="thumb data-v-0f00adf4" src="../../static/thumb.png" mode="widthFix" data-event-opts="{{[['tap',[['chooseImage',['$event']]]]]}}" bindtap="__e"></image></block></block><block wx:else><block wx:if="{{messageType==='voice'}}"><block class="data-v-0f00adf4"><image class="left-icon data-v-0f00adf4" src="../../static/text.png" mode="widthFix" data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" bindtap="__e"></image><text data-event-opts="{{[['touchstart',[['touchstart',['$event']]]],['touchend',[['touchend',['$event']]]]]}}" class="voice-crl data-v-0f00adf4" bindtouchstart="__e" bindtouchend="__e">{{recordStart?'松开 发送':'按住 说话'}}</text></block></block></block></view><block wx:if="{{recordStart}}"><view class="audio-animation data-v-0f00adf4"><view class="audio-wave data-v-0f00adf4"><block wx:for="{{10}}" wx:for-item="item" wx:for-index="__i1__"><text class="audio-wave-text data-v-0f00adf4" style="{{'animation-delay:'+(item/10+'s')+';'}}"></text></block><view class="text data-v-0f00adf4">松开 发送</view></view></view></block></view> |