commission-info.vue 2.7 KB

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