vipUserItem.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view class="list-item">
  3. <view class="list-item-head x-bc">
  4. <view class="x-f" style="flex: 1;overflow: hidden;">
  5. <u-avatar :src='item.avatar'></u-avatar>
  6. <view class="list-item-head-l">
  7. <view style="flex: 1;overflow: hidden;display: flex;">
  8. <text class="list-item-name one-t">{{item.nickName}}</text>
  9. <image class="list-item-copy" src="@/static/images/copy_icon.png" mode="aspectFill"></image>
  10. </view>
  11. <view class="list-item-re">注册时间:{{item.createTime?item.createTime.substring(0,10):'--'}}</view>
  12. </view>
  13. </view>
  14. <image class="phone" src="@/static/logo.png" mode="aspectFill"></image>
  15. </view>
  16. <view class="list-item-desc">
  17. <view class="taglist">
  18. <view><u-tag text="归属消失殆尽" size="mini" color="#1677ff" bgColor="#fff" borderColor="#fff"></u-tag></view>
  19. <view v-for="(tag,i) in item.tags ? item.tags.split(',') : []">
  20. <u-tag :text="tag" size="mini" color="#999" bgColor="#f5f5f5" borderColor="#f5f5f5"></u-tag>
  21. </view>
  22. </view>
  23. <!-- <view style="margin-top: 5px;">
  24. <text class="label" style="color:red;margin-right: 20px;">停止看课{{item.watchCount || 0}}天</text>
  25. <text class="label">参与营期</text><text class="value-num">{{item.watchCount || 0}}</text>
  26. <text class="label">缺课数量</text><text class="value-num" style="color:red">{{item.watchComlpleteCount || 0}}</text>
  27. </view> -->
  28. </view>
  29. <view class="list-item-footer x-f">
  30. <view class="list-item-footer-btn footer-tagbtn x-f" @click="openModel('tag',item)">改标签</view>
  31. <view class="list-item-footer-btn footer-red x-f" @click="openModel('tag',item)">禁用</view>
  32. <view class="list-item-footer-btn footer-red x-f" @click="openModel('tag',item)">更换归属</view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. item: {
  41. tags: '0000,小红,标签'
  42. }
  43. }
  44. },
  45. methods: {
  46. openModel() {
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .list-item{
  53. padding: 10px;
  54. margin-bottom: 10px;
  55. background-color: #fff;
  56. border-radius: 12px;
  57. &-head {
  58. .phone {
  59. flex-shrink: 0;
  60. width: 30px;
  61. height: 30px;
  62. }
  63. &-l {
  64. flex: 1;
  65. overflow: hidden;
  66. margin-left: 10px;
  67. margin-right: 10px;
  68. }
  69. }
  70. &-copy {
  71. width: 20px;
  72. height: 20px;
  73. }
  74. &-re {
  75. font-size: 10px;
  76. margin-top: 5px;
  77. }
  78. &-desc {
  79. padding: 5px;
  80. color: #999;
  81. font-size: 12px;
  82. }
  83. .label {
  84. margin-right: 4px;
  85. }
  86. .value-num {
  87. margin-right: 18px;
  88. color: #222;
  89. font-weight: bold;
  90. }
  91. .taglist {
  92. display: flex;
  93. align-items: center;
  94. flex-wrap: wrap;
  95. color: #555;
  96. padding-top: 5px;
  97. view {
  98. margin: 0 5px 5px 0;
  99. }
  100. }
  101. &-footer {
  102. justify-content: flex-end;
  103. padding: 6px 0;
  104. .footer-tagbtn {
  105. color: #1677ff;
  106. background-color: #e7f2fe;
  107. border: 1px solid #c9e1fb;
  108. }
  109. .footer-red {
  110. color: #f93e3e;
  111. background-color: #fae7e7;
  112. border: 1px solid #f7a1a1;
  113. }
  114. &-btn {
  115. height: 26px;
  116. padding: 0 10px;
  117. margin-left: 10px;
  118. background-color: #f5f5f5;
  119. border-radius: 25px;
  120. font-weight: 400;
  121. font-size: 10px;
  122. line-height: 26px;
  123. border: 1px solid #f5f5f5;
  124. box-sizing: border-box;
  125. }
  126. }
  127. }
  128. </style>