index.axml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="healthy-card-info-container">
  2. <view class="healthy-card-layer">
  3. <image class="healthy-card-background" src="{{cardBackground}}" />
  4. <view
  5. class="user-info-container"
  6. style="{{!!userInfoTop?('top:'+(userInfoPositionTop/50)+'rem'):''}}"
  7. >
  8. <view class="user-name">
  9. {{cardInfo.userName || '用户姓名'}}
  10. </view>
  11. <view class="user-id-card">
  12. {{cardInfo.idCard || '用户身份证号码'}}
  13. </view>
  14. </view>
  15. <view class="qrcode-container">
  16. <image
  17. class="qr-code-image"
  18. src="{{cardInfo.qrCodeUrl}}"
  19. />
  20. <view class="qrcode-code-icon-container" a:if="{{cardInfo.qrCodeImageUrl}}">
  21. <image src="{{cardInfo.qrCodeImageUrl}}" />
  22. </view>
  23. </view>
  24. </view>
  25. <view class="buttons-container">
  26. <button class="cus-button {{time !== 0 ? 'disabled' : 'red'}}" onTap="refreshCard">
  27. {{time === 0 ? '刷新健康卡' : `${time}s`}}
  28. </button>
  29. <view class="cus-button blue" onTap="toDetail">
  30. <text>健康卡详情</text>
  31. </view>
  32. </view>
  33. </view>