<view class="page" onTap="clickAudio">
  <!--  catchTap="closeMask"-->
  <view class="{{isPortraitScreen?'portrait-main':'main'}}">
    <top-title urlPath='../../../' titleText="基本设置" />
    <view class="basic-content">
      <view a:for="{{ radioList }}" a:for-index="radioIndex" class="form-box">
        <text>{{item.name}}</text>
        <view class="radio-group">
          <view
            a:for="{{item.chooseItem}}"
            a:for-index="radioBoxIndex"
            a:for-item="radioBoxItem"
            class="radio"
            data-checkIndex="{{radioIndex}}"
            data-item="{{item}}"
            data-index="{{radioBoxIndex}}"
            onTap="onRadioChange"
          >
            <view class="{{radioBoxItem.checked ? 'radioBox-checked':'radioBox-unchecked'}}" />
            <text class="radioBox-text">{{radioBoxItem.name}}</text>
          </view>
        </view>
      </view>
      <view class="form-box"></view>

      <!-- 通用 -->
      <view class="form-box">
        <text>启用通用二维码</text>
        <view
          class="cus-switch"
          data-checked="{{form.generalQrcode}}"
          data-fieldKey="generalQrcode"
          onTap="onSwitchChange"
        >
          <view class="switch-main {{form.generalQrcode?'checked':''}} capsule">
          </view>
        </view>
      </view>
      <view a:if="{{form.generalQrcode}}" class="form-box">
        <text>通用二维码标题</text>
        <input
          class="form-input"
          onInput="getVal"
          data-key="generalQrcodeTitle"
          value="{{form.generalQrcodeTitle}}"
        />
      </view>
      <view a:else class="form-box"></view>
      <!-- 梯控 -->
      <view class="form-box">
        <text>启用梯控二维码</text>
        <view
          class="cus-switch"
          data-checked="{{form.ethQrcode}}"
          data-fieldKey="ethQrcode"
          onTap="onSwitchChange"
        >
          <view class="switch-main {{form.ethQrcode?'checked':''}} capsule">
          </view>
        </view>
      </view>
      <view a:if="{{form.ethQrcode}}" class="form-box">
        <text>梯控二维码标题</text>
        <input
          class="form-input"
          onInput="getVal"
          data-key="ethQrcodeTitle"
          value="{{form.ethQrcodeTitle}}"
        />
      </view>
      <view a:if="{{form.ethQrcode}}" class="form-box wid">
        <text>梯控二维码接口</text>
        <input
          class="form-input"
          onInput="getVal"
          data-key="ethQrcodeUrl"
          value="{{form.ethQrcodeUrl}}"
        />
        <view class="more-box" catchTap="openMask" data-key="TK">
          <image
            mode="scaleToFill"
            src="https://tx.hz-hanghui.com:8088/yx-fyzd/file/upload/imagesnew/static/settings/more.png"
            class="more-icon"
          />
        </view>
        <view a:if="{{ isShowTK }}" class="select-area">
          <view
            a:for="{{ TKList }}"
            class="item"
            onTap="getVal"
            data-key="TK"
            data-val="{{item}}"
          >
            {{item}}
          </view>
        </view>
      </view>
      <view a:else class="form-box"></view>

      <view a:for="{{ checkBoxList }}" a:for-index="checkIndex" class="form-box wid">
        <text>{{item.name}}</text>
        <view class="checkbox-group">
          <view
            a:for="{{item.chooseItem}}"
            a:for-index="checkboxIndex"
            a:for-item="checkboxItem"
            class="checkbox"
            data-checkIndex="{{checkIndex}}"
            data-item="{{item}}"
            data-index="{{checkboxIndex}}"
            onTap="onCheckBoxChange"
          >
            <view class="{{checkboxItem.checked ? 'checkbox-checked':'checkbox-unchecked'}}" />
            <text class="checkbox-text">{{checkboxItem.name}}</text>
          </view>
        </view>
      </view>

      <block a:if="{{form.reminderAuth}}">
        <!-- 标语页确定倒计时 -->
        <view class="form-box">
          <text>标语页确定倒计时</text>
          <view
            class="cus-switch"
            data-checked="{{form.confirmCountdownSwitch}}"
            data-fieldKey="confirmCountdownSwitch"
            onTap="onSwitchChange"
          >
            <view class="switch-main {{form.confirmCountdownSwitch?'checked':''}} capsule">
            </view>
          </view>
        </view>
        <view a:if="{{form.confirmCountdownSwitch}}" class="form-box">
          <text>倒计时时长（s）</text>
          <view class="left" onTap="minus">-</view>
          <input
            class="form-input number-input"
            data-key="confirmCountdownTime"
            value="{{form.confirmCountdownTime}}"
            onInput="getVal"
            type="number"
          />
          <view class="right" onTap="add">+</view>
        </view>
      </block>

      <bottom-parnel suerName="{{'确定'}}" onSure="sure" logOut="/pages/settings/index/index" />
    </view>
  </view>
</view>
