<!--pages/form/index.wxml-->
<view class="form">
  <header-tab title='智汇享' isBack='{{false}}'></header-tab>
  <view class="form-content">
    <t-input label="会议号" placeholder="请输入会议号" maxlength="{{8}}" value="{{meetingForm.roomNum}}" bind:clear="changeMeetingForm" bind:change="changeMeetingForm" clearable data-type='roomNum' />
    <t-input label="入会名称" placeholder="请输入入会名称" value="{{meetingForm.roomName}}" bind:clear="changeMeetingForm" bind:change="changeMeetingForm" clearable data-type='roomName' />
    <view style="display: flex;justify-content: center;">
      <t-button theme="primary" style="width: 90%;margin: 20rpx 0 30rpx;" bind:tap="joinMeeting" wx:if="{{isCamera && isRecord}}">{{isJoin ? '正在加入...' : '加入会议'}}</t-button>
      <t-button theme="primary" style="width: 90%;margin: 20rpx 0 30rpx;" bind:tap="setting" wx:else>
        点击开启摄像头麦克风
      </t-button>
    </view>
  </view>
  <view class="historical-records" wx:if="{{historicalList.length}}">
    <text class="historical-records-title">历史记录</text>
    <view class="historical-records-view">
      <t-cell title="{{item.roomName}}({{item.nickName}})" hover note="{{item.roomNum}}" arrow wx:for="{{historicalList}}" data-item="{{item}}" wx:key="index" bind:tap="setForm" />
    </view>
  </view>
</view>
<t-dialog visible="{{netWorkErrorDialog}}" content="网络已断开！" confirm-btn="{{ { content: '立刻重连', variant: 'base', theme: 'primary' } }}" cancel-btn="取消" bind:confirm="joinMeeting" bind:cancel="closeDialog" close-btn="{{false}}" />
<t-message id="t-message" />