forked from nsjcy/frontEnd/nsjcy

liyj
2020-02-11 e60e253cb3ce0597ded89b56a414c731e28c4ff1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<view class="container-box">
        <view class="camera-box">
                <webrtc-room id="webrtcroom" template="1u3d" autoplay="{{autoplay}}" enableCamera="{{enableCamera}}" roomID="{{roomID}}" userID="{{userID}}" roomCreator="{{roomCreator}}" userSig="{{userSig}}" sdkAppID="{{sdkAppID}}" accountType="{{accountType}}" privateMapKey="{{privateMapKey}}" beauty="{{beauty}}" muted="{{muted}}" debug="{{debug}}" bindRoomEvent="onRoomEvent" bindIMEvent="onIMEvent" enableIM="true"></webrtc-room>
        </view>
        <view class="operate">
                <view class="img-box">
                        <image src="../../Resources/camera{{frontCamera ? '':'-gray'}}.png" bindtap="changeCamera"></image>
                        <text>翻转</text>
                </view>
                <view class="img-box">
                        <image src="../../Resources/{{muted ? 'mic-dis' : 'mic'}}.png" bindtap="changeMute"></image>
                        <text>声音</text>
                </view>
        </view>
        <view class="switchtab">
                <view bindtap="showComment" class="tab ">
                        <view class="text {{showInteractType === SHOWINTERACT_TYPE.COMMENT ? 'checked' : ''}}">
                                聊天
                        </view>
                </view>
        </view>
        <view class="in-container">
                <view class="im_box {{showInteractType === SHOWINTERACT_TYPE.COMMENT ? '' : 'hide'}}">
                        <scroll-view scroll-y scroll-into-view="{{toview}}" class="comment">
                                <view class="comment-detail" wx:for="{{comment}}">
                                        <view wx:if="{{item.name}}" class="color-blue">{{item.name}} {{item.time}}</view>
                                        <view class="{{item.name ? '' : 'color-org'}}">{{item.content}}</view>
                                </view>
                                <view id="scroll-bottom" wx:if="{{toview}}"></view>
                        </scroll-view>
                        <view class="comment-input">
                                <input value="{{inputMsg}}" maxlength="50" bindinput="bindInputMsg" placeholder="输入文字内容" confirm-type="send" bindconfirm="sendComment" cursor-spacing="5" />
                                <!-- <button bindtap="sendComment">发送</button> -->
                        </view>
                </view>
                <view class="board_box {{showInteractType === SHOWINTERACT_TYPE.BOARD ? '' : 'hide'}}">
                        <sketchpad id="white_board" class="sketchpad" height="{{ sketchpad.height }}" width="{{ sketchpad.width }}"></sketchpad>
                </view>
        </view>
</view>