inviteItem.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="invite-item">
  3. <image
  4. class="item-logo"
  5. :src="info.fullAvatar"
  6. alt="商品图"
  7. />
  8. <view class="item-info">
  9. <view class="info-title">{{ info.name }} <text class="ghs-info" v-if="info.style ==2">供货商</text></view>
  10. <view class="info-row">
  11. <text class="info-tag">{{ info.adminName }}</text>
  12. <text class="info-tag">{{ info.mobile }} </text>
  13. <text class="info-tag light">{{ info.fee }} </text>
  14. </view>
  15. </view>
  16. <view :class="['status']">
  17. <text v-if="info.status == '2'" :class="['iconfont', 'icondagou']"> </text>
  18. <text v-else class="status-name">{{ getStatusName }}</text>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. info: {
  26. required: true
  27. }
  28. },
  29. computed: {
  30. getStatusName() {
  31. let name = "";
  32. switch (this.info.status) {
  33. case "1":
  34. name = "待审核";
  35. break;
  36. case "2":
  37. name = "试用中";
  38. break;
  39. case "3":
  40. name = "未通过";
  41. break;
  42. case "4":
  43. name = "已购买";
  44. break;
  45. case "5":
  46. name = "已失效";
  47. break;
  48. default:
  49. break;
  50. }
  51. return name;
  52. }
  53. }
  54. };
  55. </script>
  56. <style lang="scss" scoped>
  57. .invite-item {
  58. margin-bottom: 3upx;
  59. padding: 30upx;
  60. display: flex;
  61. align-items: center;
  62. box-shadow: 0upx 1upx 0upx 0upx #eeeeee;
  63. background-color: #fff;
  64. .item-logo {
  65. margin-right: 20upx;
  66. flex-shrink: 0;
  67. width: 80upx;
  68. height: 80upx;
  69. border-radius: 50%;
  70. }
  71. .item-info {
  72. flex: 1;
  73. margin-right: 20upx;
  74. .info-title {
  75. font-size: 30upx;
  76. font-weight: 400;
  77. color: #333333;
  78. }
  79. .ghs-info{
  80. color:#BBBB44;
  81. font-size:19upx;
  82. margin-left:20upx;
  83. border:1upx solid #BBBB44;
  84. border-radius: 10upx;
  85. padding:0 4upx 0 4upx;
  86. }
  87. .info-row {
  88. margin-top: 10upx;
  89. display: flex;
  90. align-items: center;
  91. }
  92. .info-tag {
  93. margin-right: 20upx;
  94. font-size: 24upx;
  95. font-weight: 400;
  96. color: #999999;
  97. &.light {
  98. color: $redColor;
  99. }
  100. }
  101. }
  102. .status {
  103. display: flex;
  104. flex-direction: column;
  105. align-items: flex-end;
  106. flex-shrink: 0;
  107. width: 100upx;
  108. color: $redColor;
  109. .status-name {
  110. margin-top: 10upx;
  111. font-size: 26upx;
  112. }
  113. .icondagou {
  114. font-size: 46upx;
  115. color: $mainColor;
  116. }
  117. // &.primary {
  118. // color: #3385ff;
  119. // }
  120. // &.gray {
  121. // color: #cccccc;
  122. // }
  123. // &.warn {
  124. // color: #ffaf1d;
  125. // }
  126. // &.fail {
  127. // color: $redColor;
  128. // }
  129. }
  130. }
  131. </style>