courseExpiration.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="container-body">
  3. <text class="user" v-if="userId">#{{userId}}</text>
  4. <image class="kfqrcode" v-if="qrcode" :src="qrcode" show-menu-by-longpress="true"></image>
  5. <image v-else src="/static/course_expiration_img.png" mode="aspectFill"></image>
  6. <view class="title">{{msg}}</view>
  7. <view style="margin-bottom: 10vh;" v-show="code">状态码:{{code}}</view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. props:['code','qrcode','msg','userId'],
  13. data() {
  14. return {
  15. }
  16. }
  17. }
  18. </script>
  19. <style scoped lang="scss">
  20. .kfqrcode {
  21. height: 460rpx;
  22. width: 460rpx;
  23. }
  24. .container-body {
  25. background-color: #fff;
  26. position: fixed;
  27. top: 0;
  28. right: 0;
  29. z-index: 9998;
  30. justify-content: center;
  31. font-family: PingFang SC, PingFang SC;
  32. font-weight: 400;
  33. font-size: 32rpx;
  34. color: #757575;
  35. line-height: 48rpx;
  36. text-align: center;
  37. height: 100vh;
  38. width: 100vw;
  39. display: flex;
  40. flex-direction: column;
  41. align-items: center;
  42. justify-content: center;
  43. .title {
  44. font-weight: bold;
  45. font-size: 40rpx;
  46. color: #1E2F67;
  47. margin-bottom: 24rpx;
  48. padding: 0 60rpx;
  49. }
  50. image {
  51. width: 428rpx;
  52. height: 360rpx;
  53. margin-bottom: 30rpx;
  54. }
  55. .user {
  56. position: absolute;
  57. right: 24rpx;
  58. top: 124rpx;
  59. z-index: 9999;
  60. }
  61. }
  62. </style>