<view class='page' ref='saveChildRef0'>
  <image src='{{qrCode}}' style='display: none;'>
  </image>
  <canvas
    class='canvas-code'
    style='background:#fff;width:176px;height: 176px; display:block; left:-800rpx;position:absolute;'
    id='myQrcode'
  >
  </canvas>
  <zyh-details-card
    title='{{isRegular?international.Visiting_information[language]:international.Visit_information[language]}}'
    regularList='{{regularList}}'
    status='{{regularList.reviewStatus}}'
    isRegular='{{isRegular}}'
    language='{{language}}'
    ref='saveChildRef1'
  >
  </zyh-details-card>
  <view a:if='{{regularList.reviewStatus===0&&isRegular}}'>
    <view a:if='{{regularList.name}}' class='picker-area card'>
      <view class='choose'>
        <view a:if='{{regularList.name}}' class='btn-area'>
          <btn
            class="{{reviewStatus==2?'white':'reject'}}"
            data-type='2'
            onTap='antmoveAction'
            data-antmove-tap='chooseFun'
          >
            {{international.agree[language]}}
          </btn>
          <btn
            class="{{reviewStatus==1?'white':'reject'}}"
            data-type='1'
            onTap='antmoveAction'
            data-antmove-tap='chooseFun'
          >
            {{international.reject[language]}}
          </btn>
        </view>
      </view>
      <view style="{{reviewStatus==1?'display:none;':'' }}">
        <van-cell
          title='{{international.Channel_access[language]}}'
          border='{{ false }}'
          onClick='showSN'
          ref='saveChildRef2'
        >
          <text>
            {{snListLength?'已选择'+snListLength+'个通道':'请选择通道权限'}}
          </text>
          <van-icon class='icon' name='arrow' ref='saveChildRef3'>
          </van-icon>
        </van-cell>
        <zjy-radio-checkbox
          list='{{machineList}}'
          range-key='sn'
          data-type='snList'
          type='checkbox'
          chooseBuilding='{{chooseSN}}'
          className='block'
          sn='{{true}}'
          onChange='getValue'
          ref='saveChildRef4'
        >
        </zjy-radio-checkbox>
        <van-cell
          title='{{international.Personnel_type[language]}}'
          border='{{ false }}'
          class='label-sm'
          ref='saveChildRef5'
        >
          <zyh-radio-group
            list='{{personTypeList}}'
            value='{{personnelType}}'
            label-key="{{language=='ch'?'name_ch':'name_en'}}"
            value-key='id'
            data-type='personnelType'
            onChange='getValue'
            ref='saveChildRef6'
          >
          </zyh-radio-group>
        </van-cell>
      </view>
      <van-cell-group a:if='{{reviewStatus==1}}' ref='saveChildRef7'>
        <van-cell border='{{ false }}' class='label-sm remark-bgc' ref='saveChildRef8'>
          <van-field
            value='{{ remark }}'
            type='textarea'
            placeholder='请填写备注~'
            autosize='{{true}}'
            border='{{ false }}'
            input-class='textarea'
            onInput='onInput'
            ref='saveChildRef9'
          >
          </van-field>
        </van-cell>
      </van-cell-group>
    </view>
    <btn
      class="sure-btn {{(reviewStatus==2&&snListLength)|| (reviewStatus==1&&remark)?'':'reject'}}"
      onTap='antmoveAction'
      data-antmove-tap='handle'
    >
      {{international.submit[language]}}
    </btn>
  </view>
  <btn
    a:if='{{regularList.reviewStatus==2}}'
    class='sure-btn'
    disabled="{{!isRegular && !uniqueId}}"
    onTap='antmoveAction'
    data-antmove-tap='visitoryDownFaceAgain'
  >
    {{ isRegular ? international.AgainIssued[language] : (uniqueId ? '授权一脸通行' : '已授权一脸通行') }}
  </btn>
</view>