You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
1.9 KiB

  1. <template>
  2. <view class="all">
  3. <img class="img-share" src="/static/my/shareBackground.png" />
  4. <img class="img-greenBack" src="/static/my/greenBackground.png" />
  5. <img class="img-QRcode" src="/static/my/QRcode.png" />
  6. <img class="img-award" src="/static/my/award.png" />
  7. <img class="img-myFriends" src="/static/my/myFriends.png" />
  8. <img class="img-friends" src="/static/my/shareFriends.png" />
  9. <text class="jwcode">{{ jwcode }}</text>
  10. <button class="invite">立即邀请</button>
  11. </view>
  12. </template>
  13. <script setup>
  14. import {
  15. ref
  16. } from 'vue'
  17. const jwcode = ref('90047681')
  18. </script>
  19. <style>
  20. .all {
  21. position: relative;
  22. width: 750rpx;
  23. height: auto;
  24. }
  25. .img-share {
  26. width: 750rpx;
  27. height: 2118rpx;
  28. position: absolute;
  29. top: 0;
  30. left: 0;
  31. z-index: 1;
  32. }
  33. .img-QRcode{
  34. width:320rpx;
  35. height:320rpx;
  36. position:absolute;
  37. top:26vh;
  38. left:215rpx;
  39. z-index: 3;
  40. }
  41. .img-greenBack {
  42. width: 670rpx;
  43. height: 1740rpx;
  44. position: absolute;
  45. top: 16vh;
  46. /* 为什么要用这个替代 margin-top */
  47. left: 40rpx;
  48. /* 还有 padding-left */
  49. z-index: 2;
  50. }
  51. .img-friends {
  52. width: 602rpx;
  53. height: 840rpx;
  54. position: absolute;
  55. top: 68vh;
  56. left: 74rpx;
  57. z-index: 3;
  58. }
  59. .img-award {
  60. width: 300rpx;
  61. height: 120rpx;
  62. position: absolute;
  63. top: 61vh;
  64. left: 75rpx;
  65. z-index: 3;
  66. }
  67. .img-myFriends {
  68. width: 300rpx;
  69. height: 88rpx;
  70. position: absolute;
  71. top: 61vh;
  72. right: 75rpx;
  73. z-index: 3;
  74. }
  75. .jwcode {
  76. width: 320rpx;
  77. height: 38rpx;
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. position: absolute;
  82. top: 19vh;
  83. left: 212rpx;
  84. z-index: 999;
  85. }
  86. .invite {
  87. width: 320rpx;
  88. height: 80rpx;
  89. border-radius: 40rpx;
  90. background-color: black;
  91. color:white;
  92. display: flex;
  93. justify-content: center;
  94. align-items: center;
  95. position: absolute;
  96. top: 50.7vh;
  97. left: 212rpx;
  98. z-index: 999;
  99. }
  100. </style>