index.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <camera device-position="back" flash="auto" binderror="errorCamara" id="myCamera" wx:if="{{showcamara}}"
  2. style="width: 100%; height:100vh;">
  3. <cover-view class="mcover-view" style='width: 100%; height:100%; top:45%' wx:if="{{!hidden}}">
  4. <cover-image class="dialog-body wh70" style='right:45%' src="/assets/loading.gif" />
  5. </cover-view>
  6. <cover-view class="mcover-bar" wx:if="{{hidden}}">
  7. <cover-view class="mcover-view">
  8. <cover-view>
  9. <cover-image class="dialog-body circle wh60" src="/assets/img_gallery.png" bindtap="chooseImg" />
  10. </cover-view>
  11. <cover-view class="dialog-body camara" bindtap="takePhoto">
  12. <cover-view class="camara-1"></cover-view>
  13. </cover-view>
  14. <cover-view>
  15. <cover-image class="dialog-body circle wh60" src="/assets/img_close.png" bindtap="goBack" />
  16. </cover-view>
  17. </cover-view>
  18. </cover-view>
  19. </camera>
  20. <scroll-view scroll-y="true" wx:else class="scroll-view">
  21. <view class="identify-box" style="heigth:300rpx;">
  22. <view class="identify-list">
  23. <image wx:if="{{studyUser.cardImg}}" src="{{studyUser.cardImg+'?x-oss-process=image/resize,w_200'}}"
  24. bindlongpress="takeCard" data-src="{{info.card_img}}" class="identify-img" bindtap="previewImage" />
  25. <image wx:else src="/assets/card.png" class="identify-img" bindtap="takeCard" />
  26. </view>
  27. <view class="identify-list">
  28. <image wx:if="{{studyUser.cardBackImg}}" src="{{studyUser.cardBackImg+'?x-oss-process=image/resize,w_200'}}"
  29. data-src="{{studyUser.cardBackImg}}" class="identify-img" bindtap="previewImage" bindlongpress="takeCardBack" />
  30. <image wx:else src="/assets/cardback.png" class="identify-img" bindtap="takeCardBack" />
  31. </view>
  32. </view>
  33. <view class="p20 ">
  34. <view class="info-title">绑定用户信息</view>
  35. <i-panel class="m20 p20" wx:if="{{info.identify}}">
  36. <i-input value="{{ studyUser.nickname }}" error title="*真实姓名" class="mt20" disable />
  37. <i-input value="{{ studyUser.cardId }}" error title="*身份号码" class="mt20" disable />
  38. <i-input value="{{ studyUser.phone }}" error title="*联系方式" class="mt20" disable />
  39. </i-panel>
  40. <form wx:else class="p20" bindsubmit="doIdentify">
  41. <i-input value="{{ studyUser.nickname }}" name="nickname" title="*真实姓名" class="mt20" maxlength="100" />
  42. <i-input value="{{ studyUser.cardId }}" name="cardId" title="*身份号码" class="mt20" maxlength="18" />
  43. <i-input value="{{ studyUser.phone }}" name="phone" title="*联系方式" class="mt20" type="number" maxlength="11"/>
  44. <button wx:if="{{!!studyUser.identify}}" class="i-btn i-btn-square" type="text">已经实名认证</button>
  45. <button wx:else class="i-btn i-btn-primary i-btn-square" form-type="submit">实名认证</button>
  46. </form>
  47. </view>
  48. <view class="tc">
  49. <view>
  50. <text> 已经实名认证的可以快捷登入 </text>
  51. </view>
  52. <button class="mt20" type="primary" bindtap="wxLogin" size="mini">
  53. 快捷登入
  54. </button>
  55. </view>
  56. </scroll-view>