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