visitor_qrcode.axml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <view class="vq-container">
  2. <block a:if="{{ !status }}">
  3. <view style="height:28rpx;"></view>
  4. <auth-popup id="authPopup" onAuthResult="authResult"/>
  5. <view class="auth-layout">
  6. <view class="title">您的拜访申请已通过,请获取访客二维码通行。</view>
  7. <view class="submit-btn" hover-class="btn-hover" hover-stay-time="100" onTap="authClick">获取访客二维码</view>
  8. </view>
  9. </block>
  10. <block a:elif="{{ status === 1 && selectIndex >= 0 }}">
  11. <view class="qrcode-layout">
  12. <van-popup
  13. show='{{ popupShow }}'
  14. position='center'
  15. round
  16. onClose="onPopupClose"
  17. overlay-style="background:rgba(0,0,0,0.4);"
  18. custom-style='height: auto;width:640rpx;'>
  19. <view class="popup-layout" style="padding: 56rpx 40rpx 48rpx;overflow: hidden;">
  20. <view class="popup-title">{{ popupTitle || '' }}</view>
  21. <image mode="scaleToFill" style="width:480rpx;height:480rpx;margin-top:24rpx;" src="{{ popupImagePath }}" />
  22. <view class="close-btn" hover-stay-time="100" onTap="onPopupClose">确定</view>
  23. </view>
  24. </van-popup>
  25. <view class="qrcode_head">
  26. <view class="head_top">
  27. <picker title="选择" range-key="adminName" onChange="onQrcodeSelectChange" value="{{selectIndex}}" range="{{qrcodeList}}">
  28. <view style="display: flex;align-items: center;">
  29. <view>地点:</view>
  30. <view>{{ qrcodeList[selectIndex].adminName }}</view>
  31. <van-icon name="arrow-down" size="18px" style="margin-left:20rpx;margin-top:4rpx;" />
  32. </view>
  33. </picker>
  34. </view>
  35. <view class="head_bottom">
  36. <view style="flex:1 1 auto;">拜访人:{{ qrcodeList[selectIndex].name }}</view>
  37. <view style="flex:1 1 auto;">受访人:{{ qrcodeList[selectIndex].visiteeName }}</view>
  38. </view>
  39. </view>
  40. <view class="qrcode_item" a:if="{{ qrcodeList[selectIndex].ethQrcode }}">
  41. <view class="item-left">单机版二维码</view>
  42. <view class="item-right" onTap="qrcodeSelectClick" data-type="0">
  43. <image mode="scaleToFill" style="width:280rpx;height:280rpx;" src="{{ qrcodeList[selectIndex].ethQrcodePath }}" />
  44. <canvas
  45. class='canvas-code'
  46. style='background:#fff;width:176px;height: 176px; display:block; left:-800rpx;position:absolute;'
  47. id='qrcode1'>
  48. </canvas>
  49. </view>
  50. </view>
  51. <view class="qrcode_item" a:if="{{ qrcodeList[selectIndex].vguangQrcode }}">
  52. <view class="item-left">微光互联二维码</view>
  53. <view class="item-right" onTap="qrcodeSelectClick" data-type="1">
  54. <image mode="scaleToFill" style="width:280rpx;height:280rpx;" src="{{ qrcodeList[selectIndex].vguangQrcodePath }}" />
  55. <canvas
  56. class='canvas-code'
  57. style='background:#fff;width:176px;height: 176px; display:block; left:-800rpx;position:absolute;'
  58. id='qrcode2'>
  59. </canvas>
  60. </view>
  61. </view>
  62. </view>
  63. </block>
  64. </view>