commission-info.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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: 690rpx;
  30. height: 192rpx;
  31. margin: -88rpx 20rpx 0 20rpx;
  32. padding-top: 88rpx;
  33. background: v-bind(headerBg) no-repeat;
  34. background-size: 100% 100%;
  35. .head-img-box {
  36. margin-right: 20rpx;
  37. width: 100rpx;
  38. height: 100rpx;
  39. border-radius: 50%;
  40. position: relative;
  41. background: #fce0ad;
  42. .head-img {
  43. width: 92rpx;
  44. height: 92rpx;
  45. border-radius: 50%;
  46. position: absolute;
  47. top: 50%;
  48. left: 50%;
  49. transform: translate(-50%, -50%);
  50. }
  51. }
  52. .card-top {
  53. box-sizing: border-box;
  54. padding-bottom: 34rpx;
  55. .user-name {
  56. font-size: 32rpx;
  57. font-weight: bold;
  58. color: #692e04;
  59. line-height: 30rpx;
  60. margin-bottom: 20rpx;
  61. }
  62. .log-btn {
  63. width: 84rpx;
  64. height: 42rpx;
  65. border: 2rpx solid rgba(#ffffff, 0.33);
  66. border-radius: 21rpx;
  67. font-size: 22rpx;
  68. font-weight: 400;
  69. color: #ffffff;
  70. margin-bottom: 20rpx;
  71. }
  72. .look-btn {
  73. color: #fff;
  74. width: 40rpx;
  75. height: 40rpx;
  76. }
  77. }
  78. .user-info-box {
  79. .tag-box {
  80. background: #ff6000;
  81. border-radius: 18rpx;
  82. line-height: 36rpx;
  83. .tag-img {
  84. width: 36rpx;
  85. height: 36rpx;
  86. border-radius: 50%;
  87. margin-left: -2rpx;
  88. }
  89. .tag-title {
  90. font-size: 24rpx;
  91. padding: 0 10rpx;
  92. font-weight: 500;
  93. line-height: 36rpx;
  94. color: #fff;
  95. }
  96. }
  97. }
  98. }
  99. </style>