<view class="page">
  <view
    class="{{isShowInterviewee||isShowVisitorLog?'mask':''}} {{isPortraitScreen?'portrait-main':'main'}}"
    catchTap="closeMask"
  >
    <top-title urlPath='../../../' titleText="高级设置" />
    <view class="advanced-content">
      <view class="form-box">
        <text>使用时间期限</text>
        <input class="form-input" value="{{form.expirationDate}}" disabled="{{true}}" />
      </view>
      <view class="form-box">
        <text>启用支付宝刷脸登记</text>
        <view
          class="cus-switch"
          data-checked="{{form.useAlipayFace}}"
          data-fieldKey="useAlipayFace"
          onTap="onSwitchChange"
        >
          <view class="switch-main {{form.useAlipayFace?'checked':''}} capsule">
          </view>
        </view>
      </view>
      <view class="form-box">
        <text>启用刷身份证登记</text>
        <view
          class="cus-switch"
          data-checked="{{form.useIdcard}}"
          data-fieldKey="useIdcard"
          onTap="onSwitchChange"
        >
          <view class="switch-main {{form.useIdcard?'checked':''}} capsule">
          </view>
        </view>
      </view>

      <view a:if="{{form.useIdcard}}" class="form-box">
        <text>刷证是否人证比对</text>
        <view class="radio-group">
          <view
            a:for="{{chooseObj['usePersonCard'].chooseItem}}"
            a:for-index="radioBoxIndex"
            a:for-item="radioBoxItem"
            class="radio"
            data-item="{{radioBoxItem}}"
            data-index="{{radioBoxIndex}}"
            data-fieldKey="usePersonCard"
            onTap="onRadioChange"
          >
            <view class="{{radioBoxItem.checked ? 'radioBox-checked':'radioBox-unchecked'}}" />
            <text class="radioBox-text">{{radioBoxItem.name}}</text>
          </view>
        </view>
      </view>
      <view a:else class="form-box">
      </view>

      <view class="form-box">
        <text>启用无证登记</text>
        <view
          class="cus-switch"
          data-checked="{{form.noIdcardRegister}}"
          data-fieldKey="noIdcardRegister"
          onTap="onSwitchChange"
        >
          <view class="switch-main {{form.noIdcardRegister?'checked':''}} capsule">
          </view>
        </view>
      </view>

      <view a:if="{{form.noIdcardRegister}}" class="form-box">
        <text>无证是否输入手机号</text>
        <view class="radio-group">
          <view
            a:for="{{chooseObj['noIdcardInputPhone'].chooseItem}}"
            a:for-index="radioBoxIndex"
            a:for-item="radioBoxItem"
            class="radio"
            data-item="{{radioBoxItem}}"
            data-index="{{radioBoxIndex}}"
            data-fieldKey="noIdcardInputPhone"
            onTap="onRadioChange"
          >
            <view class="{{radioBoxItem.checked ? 'radioBox-checked':'radioBox-unchecked'}}" />
            <text class="radioBox-text">{{radioBoxItem.name}}</text>
          </view>
        </view>
      </view>
      <view a:else class="form-box">
      </view>
      <view class="form-box">
        <text>启用微信扫码登记</text>
        <view
          class="cus-switch"
          data-checked="{{form.wxScanRegister}}"
          data-fieldKey="wxScanRegister"
          onTap="onSwitchChange"
        >
          <view class="switch-main {{form.wxScanRegister?'checked':''}} capsule">
          </view>
        </view>
      </view>
      <view a:if="{{ form.wxScanRegister }}" class="form-box wid">
        <text>微信二维码地址</text>
        <input
          class="form-input"
          onInput="getVal"
          data-key="wxQrcodeUrl"
          value="{{form.wxQrcodeUrl}}"
        />
        <view class="more-box" catchTap="openChoose" data-key="wxQrcodeUrl">
          <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="{{ isShowWx}}" class="select-area">
          <view
            a:for="{{ WXList }}"
            class="{{WXList.length<=index+1?'item ':'item border'}}"
            onTap="getVal"
            data-key="wxQrcodeUrl"
            data-name="{{item}}"
          >
            {{item}}
          </view>
        </view>
      </view>
      <view class=" form-box wid">
        <text>启用支付宝扫码登记</text>
        <view
          class="cus-switch"
          data-checked="{{form.zfbScanRegister}}"
          data-fieldKey="zfbScanRegister"
          onTap="onSwitchChange"
        >
          <view class="switch-main {{form.zfbScanRegister?'checked':''}} capsule">
          </view>
        </view>
      </view>
      <view
        a:if="{{form.zfbScanRegister}}"
        class="form-box wid  {{isPortraitScreen ? 'flex-column-start detail-box':''}}"
      >
        <text>支付宝二维码地址</text>
        <input
          class="form-input"
          onInput="getVal"
          data-key="zfbQrcodeUrl"
          value="{{form.zfbQrcodeUrl}}"
        />
        <view class="more-box" catchTap="openChoose" data-key="zfbQrcodeUrl">
          <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="{{ isShowZfb}}" class="select-area">
          <view
            a:for="{{ ZFBList }}"
            class="{{ZFBList.length<=index+1?'item ':'item border'}}"
            onTap="getVal"
            data-key="zfbQrcodeUrl"
            data-name="{{item}}"
          >
            {{item}}
          </view>
        </view>
      </view>


      <view class="form-box wid" a:if="{{form.transitPushSwitch}}">
        <text>访客记录推送地址</text>
        <input
          class="form-input"
          onInput="getVal"
          data-key="transitPushUrl"
          value="{{form.transitPushUrl}}"
        />
        <view class="more-box" catchTap="openChoose" data-key="transitPushUrl">
          <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="{{ isShowVisitorLog}}" class="select-area">
          <view
            a:for="{{ VisitorLogList }}"
            class="{{VisitorLogList.length<=index+1?'item ':'item border'}}"
            onTap="getVal"
            data-key="transitPushUrl"
            data-name="{{item}}"
          >
            {{item}}
          </view>
        </view>
      </view>


      <view class="form-box wid">
        <text>获取受访人列表地址</text>
        <input
          class="form-input"
          onInput="getVal"
          data-key="visiteeUrl"
          value="{{form.visiteeUrl}}"
        />
        <view class="more-box" catchTap="openChoose" data-key="visiteeUrl">
          <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="{{ isShowInterviewee}}" class="select-area">
          <view
            a:for="{{ IntervieweeList }}"
            class="{{IntervieweeList.length<=index+1?'item ':'item border'}}"
            onTap="getVal"
            data-key="visiteeUrl"
            data-name="{{item}}"
          >
            {{item}}
          </view>
        </view>
      </view>
      <bottom-parnel suerName="{{'确定'}}" onSure="sure" logOut="/pages/settings/index/index" />
    </view>
  </view>
