commission-info.vue 3.1 KB

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