commission-info.vue 3.0 KB

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