zbDetails.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="home">
  2. <view class="big_box">
  3. <trtc-room id="trtcroom" config="{{rtcConfig}}" scene="live" bind:myevent='refuse' bind:myevent1='answer'></trtc-room>
  4. <view class="area">
  5. <view class="chatbox">
  6. <scroll-view scroll-y="true" style="width:100%;height:100%" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-into-view="{{bottom}}" scroll-top="{{scrollTop}}">
  7. <view style="padding:30rpx">
  8. <view wx:for="{{chatContent}}" wx:for-index="idx" wx:for-item="item" wx:key="idx" class="chat_text">
  9. <view style="color:rgba(102,102,102);font-size:25rpx">{{item.currentTime}}</view>
  10. <text style="color:#eb3f33">{{item.nick}} : </text>{{item.payload.text}}
  11. <!-- <text style="color:#eb3f33;">{{item.nick}}:</text>{{item.payload.text}} -->
  12. <!--    <text style="color:#eb3f33;"> {{item.nick}} : </text> <text style="font-weight:500;"> {{item.payload.text}} </text> -->
  13. </view>
  14. </view>
  15. <view id="scrollBottom" style="height:10rpx"></view>
  16. </scroll-view>
  17. </view>
  18. <view class="puthands_box">
  19. <input disabled='{{!talkStatus}}' placeholder-class="input_placeholder" bindinput="bindKeyInput" placeholder="说点什么吧~" class="chat_input_class" value="{{inputValue}}" />
  20. <view class="{{talkStatus?'send':'nosend'}}" bindtap="sendMessage">发送</view>
  21. <view class="{{talkStatus?'send':'nosend'}}" bindtap="handsup">举手</view>
  22. </view>
  23. </view>
  24. <!-- <view class="modol" wx:if="{{showmodal}}">
  25. <image src="../../images/lmbj.png" class="lm"></image>
  26. <view class="t1">老师向你发起连麦申请</view>
  27. <view class="t2"><text class="t3">{{second}}</text>秒之后自动关闭</view>
  28. <button class="t4" style="width:300rpx" bindtap="answer">接听</button>
  29. <button class="t5" style="width:300rpx" bindtap="refuse">关闭</button>
  30. </view> -->
  31. </view>
  32. </view>