commission-info.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!-- 分销商信息 -->
  2. <template>
  3. <!-- 用户资料 -->
  4. <view class="user-card ss-flex ss-col-bottom">
  5. <view class="card-top ss-flex ss-row-between">
  6. <view class="ss-flex">
  7. <view class="head-img-box">
  8. <image class="head-img" :src="sheep.$url.cdn(userInfo.avatar)" mode="aspectFill"></image>
  9. </view>
  10. <view class="ss-flex-col">
  11. <view class="user-name">{{ userInfo.nickname }}</view>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script setup>
  18. import sheep from '@/sheep';
  19. import { computed, reactive } from 'vue';
  20. const userInfo = computed(() => sheep.$store('user').userInfo);
  21. const headerBg = sheep.$url.css('/static/img/shop/commission/background.png');
  22. const state = reactive({
  23. showMoney: false,
  24. });
  25. </script>
  26. <style lang="scss" scoped>
  27. // 用户资料卡片
  28. .user-card {
  29. width: 700rpx;
  30. height: 192rpx;
  31. margin: 0 auto;
  32. margin-top: -88rpx;
  33. padding-top: 88rpx;
  34. background: v-bind(headerBg) no-repeat;
  35. background-size: 100% 100%;
  36. .head-img-box {
  37. margin-right: 20rpx;
  38. width: 100rpx;
  39. height: 100rpx;
  40. border-radius: 50%;
  41. position: relative;
  42. background: #fce0ad;
  43. .head-img {
  44. width: 92rpx;
  45. height: 92rpx;
  46. border-radius: 50%;
  47. position: absolute;
  48. top: 50%;
  49. left: 50%;
  50. transform: translate(-50%, -50%);
  51. }
  52. }
  53. .card-top {
  54. box-sizing: border-box;
  55. padding-bottom: 34rpx;
  56. .user-name {
  57. font-size: 32rpx;
  58. font-weight: bold;
  59. color: #692e04;
  60. line-height: 30rpx;
  61. margin-bottom: 20rpx;
  62. }
  63. .log-btn {
  64. width: 84rpx;
  65. height: 42rpx;
  66. border: 2rpx solid rgba(#ffffff, 0.33);
  67. border-radius: 21rpx;
  68. font-size: 22rpx;
  69. font-weight: 400;
  70. color: #ffffff;
  71. margin-bottom: 20rpx;
  72. }
  73. .look-btn {
  74. color: #fff;
  75. width: 40rpx;
  76. height: 40rpx;
  77. }
  78. }
  79. .user-info-box {
  80. .tag-box {
  81. background: #ff6000;
  82. border-radius: 18rpx;
  83. line-height: 36rpx;
  84. .tag-img {
  85. width: 36rpx;
  86. height: 36rpx;
  87. border-radius: 50%;
  88. margin-left: -2rpx;
  89. }
  90. .tag-title {
  91. font-size: 24rpx;
  92. padding: 0 10rpx;
  93. font-weight: 500;
  94. line-height: 36rpx;
  95. color: #fff;
  96. }
  97. }
  98. }
  99. }
  100. </style>