certificate.wxml 1.0 KB

123456789101112131415161718192021222324252627
  1. <view class='container'>
  2. <view class="card" style="width: {{template.drawWidth*2}}rpx; height: {{template.drawHeight*2}}rpx;">
  3. <edu-painter
  4. style="position:fixed;top:-9999rpx"
  5. palette="{{info}}"
  6. bind:imgOK="onImgOK"
  7. />
  8. <van-image src="{{image}}" width="{{template.drawWidth*2}}rpx" height="{{template.drawHeight*2}}rpx"
  9. wx:if="{{isGraduated && !isPCDeviceUnkonw}}">
  10. </van-image>
  11. <van-empty description="客户端不支持证书预览!" wx:if="{{isGraduated && isPCDeviceUnkonw}}">
  12. </van-empty>
  13. <van-empty description="还没有证书,快去领取吧!" wx:if="{{!isGraduated}}">
  14. <view class="btn-bg">
  15. <edu-button title="领取证书" bind:click="produce" button-style="loginBtn"/>
  16. </view>
  17. </van-empty>
  18. </view>
  19. <view class="btn-bg">
  20. <edu-button title="保存证书" bind:click="save" wx:if="{{isGraduated && !isPCDeviceUnkonw}}"/>
  21. <edu-safe-area/>
  22. </view>
  23. </view>