live-reply.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <view class="chat-container">
  2. <view wx:if="{{sdkReady && groupReady}}">
  3. <view class="chat" wx:for="{{messageList}}" wx:key="index">
  4. <view class="chat-card">
  5. <view class="chat-name">{{item.name}}:</view>
  6. <view class="chat-msg">{{item.message}}</view>
  7. </view>
  8. </view>
  9. </view>
  10. <van-empty wx:if="{{!sdkReady}}" image="" description="聊天室登录中...">
  11. <edu-button title="点击刷新" bind:click="reLogin" button-style="loginBtn"/>
  12. </van-empty>
  13. <view class="loading">
  14. <van-loading wx:if="{{sdkReady && !groupReady}}" type="spinner" vertical="{{true}}">聊天室加载中...</van-loading>
  15. </view>
  16. </view>
  17. <view class="reply" style="bottom: {{top}}px;" wx:if="{{sdkReady && groupReady && (showMsg || showHand)}}">
  18. <van-field
  19. wx:if="{{showMsg}}"
  20. value="{{ message }}"
  21. center
  22. custom-style="background: #F1F1F1;border-radius: 26rpx;font-size: 28rpx;color: #999999;height: 60rpx;width:590rpx;margin:20rpx 0"
  23. clearable
  24. placeholder="跟老师打个招呼吧"
  25. right-icon="/images/icon-send-msg.png"
  26. border="{{false}}"
  27. adjust-position="{{false}}"
  28. bind:focus="onFocus"
  29. bind:blur="onBlur"
  30. bind:change="changeMessage"
  31. bind:click-icon="reply"
  32. >
  33. <!-- right-icon="/images/ic_live_comment.png" -->
  34. </van-field>
  35. <view class="space" bind:tap="handClick"
  36. wx:if="{{showHand}}">
  37. <view class="left">
  38. <van-count-down time="{{ time }}" use-slot bind:finish="finished" bind:change="onChange"
  39. wx:if="{{handing}}" class="control-count-down">
  40. <van-loading size="38rpx" />
  41. </van-count-down>
  42. <van-image wx:else width="35rpx" height="35rpx" fit="cover" src="/images/ic_raise_hands.png"/>
  43. {{handing ? '举手中' : '举手'}}
  44. </view>
  45. </view>
  46. <edu-safe-area/>
  47. </view>