12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <view class="chat-container">
- <view wx:if="{{sdkReady && groupReady}}">
- <view class="chat" wx:for="{{messageList}}" wx:key="index">
- <view class="chat-card">
- <view class="chat-name">{{item.name}}:</view>
- <view class="chat-msg">{{item.message}}</view>
- </view>
- </view>
- </view>
- <van-empty wx:if="{{!sdkReady}}" image="" description="聊天室登录中...">
- <edu-button title="点击刷新" bind:click="reLogin" button-style="loginBtn"/>
- </van-empty>
- <view class="loading">
- <van-loading wx:if="{{sdkReady && !groupReady}}" type="spinner" vertical="{{true}}">聊天室加载中...</van-loading>
- </view>
- </view>
- <view class="reply" style="bottom: {{top}}px;" wx:if="{{sdkReady && groupReady && (showMsg || showHand)}}">
- <van-field
- wx:if="{{showMsg}}"
- value="{{ message }}"
- center
- custom-style="background: #F1F1F1;border-radius: 26rpx;font-size: 28rpx;color: #999999;height: 60rpx;width:590rpx;margin:20rpx 0"
- clearable
- placeholder="跟老师打个招呼吧"
- right-icon="/images/icon-send-msg.png"
- border="{{false}}"
- adjust-position="{{false}}"
- bind:focus="onFocus"
- bind:blur="onBlur"
- bind:change="changeMessage"
- bind:click-icon="reply"
- >
- <!-- right-icon="/images/ic_live_comment.png" -->
- </van-field>
- <view class="space" bind:tap="handClick"
- wx:if="{{showHand}}">
- <view class="left">
- <van-count-down time="{{ time }}" use-slot bind:finish="finished" bind:change="onChange"
- wx:if="{{handing}}" class="control-count-down">
- <van-loading size="38rpx" />
- </van-count-down>
- <van-image wx:else width="35rpx" height="35rpx" fit="cover" src="/images/ic_raise_hands.png"/>
- {{handing ? '举手中' : '举手'}}
- </view>
- </view>
- <edu-safe-area/>
- </view>
|