index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <div class="uc_vip_code_container">
  3. <div class="card text-center padding-top-xl">
  4. <view class="user margin-xl">
  5. <view class="up">
  6. <view class="left">
  7. <img :src="userinfo.portrait"/>
  8. <view>
  9. <text>
  10. <text>{{ userinfo.user_name }}</text>
  11. </text>
  12. <text>{{ userinfo.level_name }} 有效期至 {{ userinfo.validity_time }}</text>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. <img src="https://img.shuimuai.com/web/demo_code.png" class="qrcode margin-xl" alt="">
  18. <view class="text-center">
  19. <text class="text-normal ">邀请卡:&emsp;{{ userinfo.invite_id }}</text>
  20. </view>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import utils from '@/utils/index'
  26. var $this
  27. export default {
  28. name: "uc_vip_code_container",
  29. components: {},
  30. data() {
  31. return {
  32. userinfo: {},
  33. invite_code: ""
  34. }
  35. },
  36. methods: {}
  37. ,
  38. mounted() {
  39. },
  40. created() {
  41. $this = this;
  42. },
  43. onLoad() {
  44. $this.userinfo = wx.getStorageSync('userinfo')
  45. $this.invite_code = wx.getStorageSync('code')
  46. }
  47. }
  48. </script>
  49. <style scoped>
  50. .uc_vip_code_container {
  51. padding: 80px 0px;
  52. }
  53. .card {
  54. width: 347px;
  55. height: 403px;
  56. background: #FFFFFF;
  57. box-shadow: 0px 3px 7px 0px #A6A6A6;
  58. border-radius: 11px;
  59. margin: 0px auto;
  60. }
  61. .user {
  62. width: 100%;
  63. }
  64. .user .up {
  65. width: 100%;
  66. height: 40px;
  67. margin-top: 9px;
  68. display: flex;
  69. align-items: center;
  70. justify-content: space-between;
  71. }
  72. .user .up .left {
  73. height: 40px;
  74. display: flex;
  75. align-items: center;
  76. justify-content: start;
  77. }
  78. .user .up .left image {
  79. width: 40px;
  80. height: 40px;
  81. margin-left: 17px;
  82. margin-right: 8px;
  83. }
  84. .user .up .left view {
  85. height: 40px;
  86. display: flex;
  87. flex-direction: column;
  88. align-items: flex-start;
  89. justify-content: space-between;
  90. }
  91. .user .up .left view text:first-child {
  92. font-size: 15px;
  93. font-weight: bold;
  94. }
  95. .user .up .left view text:last-child {
  96. font-size: 13px;
  97. }
  98. .user .up .right {
  99. height: 40px;
  100. }
  101. .qrcode {
  102. width: 139px;
  103. height: 139px;
  104. }
  105. </style>