<!--/pages/LiveCustomer/LiveCustomer.wxml-->
<!-- 
拍卖待完成:
1.视频可拖拽
2.视频双击可全屏,全屏双击可收缩
3.后台开通拍卖客服,用户进入后打开拍卖;后台不开通,进入后不打开
-->
<!-- 自定义拍卖客服组件 -->
<view class="box">
<movable-area class="LiveCustomer">
    <movable-view  x="{{0}}" y="{{0}}" direction="all" style="{{bool ? 'width: 150px;height:225px;' : 'width:100%;height:100%'}}" catchtouchmove="Caeel">
          <live-player id="player" object-fit="fillCrop" src="{{pullUrl}}" mode="live" autoplay bindtap="doubleClick" bindtouchstart="touchStart" bindtouchend="touchEnd" data-time="{{lastTapTime}}" class="{{bool ? 'Liveplay' : 'LiveCustomerScreen'}}" />
    </movable-view>
    <view class="online_number">
      <text>在线人数{{21 + online_sum}}人</text>
    </view>
  </movable-area>
  <view class="chat" wx:if="{{!bool}}" catchtouchmove="Caeel">
    <scroll-view class="chatbox" scroll-y="true" scroll-top="{{scrollTop}}" >
      <view class="flex-wrp scro" style="flex-direction:column;" wx:for="{{chatList}}" wx:key="{{index}}" >
        <view class="flex-item flex-item-V talk" id="chat">
          <image src="{{item.avatarUrl}}" class="user_img"></image>
          <text class="user">{{item.content ?  item.content : ""}}</text>
        </view>
      </view>
    </scroll-view>
    <view class="send" catchtouchmove="Caeel">
      <input placeholder="说点什么吧~" bindinput="chatText" value="{{chatText}}" confirm-type="done" bindconfirm='send'></input>
      <!-- <button bindtap='send'>发送</button> -->
    </view>
  </view>
</view>

