<camera device-position="back" flash="auto" binderror="errorCamara" id="myCamera" wx:if="{{showcamara}}"
  style="width: 100%; height:100vh;">
  <cover-view class="mcover-view" style='width: 100%; height:100%; top:45%' wx:if="{{!hidden}}">
    <cover-image class="dialog-body wh70" style='right:45%' src="/assets/loading.gif" />
  </cover-view>
  <cover-view class="mcover-bar" wx:if="{{hidden}}">
    <cover-view class="mcover-view">
      <cover-view>
        <cover-image class="dialog-body circle wh60" src="/assets/img_gallery.png" bindtap="chooseImg" />
      </cover-view>
      <cover-view class="dialog-body camara" bindtap="takePhoto">
        <cover-view class="camara-1"></cover-view>
      </cover-view>

      <cover-view>
        <cover-image class="dialog-body circle wh60" src="/assets/img_close.png" bindtap="goBack" />
      </cover-view>
    </cover-view>
  </cover-view>
</camera>

<scroll-view scroll-y="true" wx:else class="scroll-view">
  <view class="identify-box" style="heigth:300rpx;">
    <view class="identify-list">
      <image wx:if="{{studyUser.cardImg}}" src="{{studyUser.cardImg+'?x-oss-process=image/resize,w_200'}}"
        bindlongpress="takeCard" data-src="{{info.card_img}}" class="identify-img" bindtap="previewImage" />
      <image wx:else src="/assets/card.png" class="identify-img" bindtap="takeCard" />
    </view>
    <view class="identify-list">
      <image wx:if="{{studyUser.cardBackImg}}" src="{{studyUser.cardBackImg+'?x-oss-process=image/resize,w_200'}}"
        data-src="{{studyUser.cardBackImg}}" class="identify-img" bindtap="previewImage" bindlongpress="takeCardBack" />
      <image wx:else src="/assets/cardback.png" class="identify-img" bindtap="takeCardBack" />
    </view>
  </view>

  <view class="p20 ">
    <view class="info-title">用户信息</view>
    <i-panel class="m20 p20" wx:if="{{info.identify}}">
      <i-input value="{{ studyUser.nickname }}" error title="*身份姓名" class="mt20" disable />
      <i-input value="{{ studyUser.cardId }}" error title="*身份号码" class="mt20" disable />
      <i-input value="{{ studyUser.phone }}" error title="*联系方式" class="mt20" disable />
    </i-panel>

    <form wx:else class="p20" bindsubmit="doIdentify">
      <i-input  value="{{ studyUser.nickname }}" name="nickname"  title="*身份姓名" class="mt20" maxlength="100" />
      <i-input value="{{ studyUser.cardId }}"  name="cardId" title="*身份号码" class="mt20" maxlength="18"  />
      <i-input value="{{ studyUser.phone }}"  name="phone" title="*联系方式" class="mt20" type="number" maxlength="11"/>

      <button wx:if="{{!!studyUser.identify}}" class="i-btn  i-btn-square" type="text">已经实名认证</button>
      <button wx:else class="i-btn  i-btn-primary i-btn-square" form-type="submit">实名认证</button>
    </form>
  </view>

  <view class="tc">
    <view>
      <text> 已经实名认证的可以快捷登入 </text>
    </view>
    <button class="mt20" type="primary"  bindtap="wxLogin"  size="mini">
      快捷登入
    </button>
  </view>
</scroll-view>