visitor_qrcode.axml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. <view class="qrcode_head">
  13. <view class="head_top">
  14. <picker title="选择" range-key="adminName" onChange="onQrcodeSelectChange" value="{{selectIndex}}" range="{{qrcodeList}}">
  15. <view style="display: flex;align-items: center;">
  16. <view>地点:</view>
  17. <view>{{ qrcodeList[selectIndex].adminName }}</view>
  18. <van-icon name="arrow-down" size="18px" style="margin-left:20rpx;margin-top:4rpx;" />
  19. </view>
  20. </picker>
  21. </view>
  22. <view class="head_bottom">
  23. <view style="flex:1 1 auto;">拜访人:{{ qrcodeList[selectIndex].name }}</view>
  24. <view style="flex:1 1 auto;">受访人:{{ qrcodeList[selectIndex].visiteeName }}</view>
  25. </view>
  26. </view>
  27. <view class="qrcode-prompt">
  28. <image mode="scaleToFill" style="width:280rpx;height:40rpx;" src="/static/visitor_qrcode/ic_qrcode.png" />
  29. </view>
  30. <view class="qrocde-tabs">
  31. <view class="tabs-item {{ showQrCodePosition === index ? 'tab-item-selected' : null}}" onTap="onQrcodeTabsChange" data-type="{{ index }}" a:for="{{ qrcodeList[selectIndex].titles }}">{{ item }}</view>
  32. </view>
  33. <view class="qrcode-content" a:if="{{ qrcodeList[selectIndex].qrcodesPath }}">
  34. <view class="content-image">
  35. <image mode="scaleToFill" style="width:250px;height:250px;" src="{{ qrcodeList[selectIndex].qrcodesPath[showQrCodePosition] }}" />
  36. <canvas
  37. class='canvas-code'
  38. style='background:#fff;width:250px;height:250px; display:block; left:-800rpx;position:absolute;'
  39. id='qrcode'>
  40. </canvas>
  41. </view>
  42. <view class="qrcode-title">{{ qrcodeList[selectIndex].titles[showQrCodePosition] }}</view>
  43. </view>
  44. </view>
  45. </block>
  46. </view>