TeamItem.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <div class="tema-list" v-if="teamData">
  3. <el-row :gutter="100">
  4. <el-col :span="11" v-for="(item,index) in teamData" :key="index">
  5. <div class="tema-item" >
  6. <div class="left">
  7. <div class="avatar">
  8. <img src="@/assets/normal_avatar.png" alt="">
  9. </div>
  10. <div class="tema-info">
  11. <p>{{item.name}}<span>{{item.position}}</span></p>
  12. <p>账号ID:{{item.accountno}}</p>
  13. <p>手机号码:{{item.phonenumber}}</p>
  14. </div>
  15. </div>
  16. <div class="right">
  17. <slot name="icon" :data="item"></slot>
  18. <slot name="remove" :data="item"></slot>
  19. </div>
  20. </div>
  21. </el-col>
  22. </el-row>
  23. </div>
  24. <el-empty description="暂无数据" v-else></el-empty>
  25. </template>
  26. <script>
  27. export default {
  28. name: 'TeamItem',
  29. data () {
  30. return {
  31. };
  32. },
  33. props: ['teamData'],
  34. computed: {
  35. },
  36. watch: {
  37. },
  38. methods: {},
  39. };
  40. </script>
  41. <style scoped>
  42. * {
  43. box-sizing: border-box;
  44. }
  45. .tema-list {
  46. margin: 30px 50px 0 50px;
  47. display: flex;
  48. flex-wrap: wrap;
  49. }
  50. .tema-list .tema-item {
  51. width: 410px;
  52. height: 114px;
  53. background: #ffffff;
  54. border-radius: 4px 4px 4px 4px;
  55. border: 1px solid #cccccc;
  56. display: flex;
  57. justify-content: space-between;
  58. padding: 16px 30px 16px 20px;
  59. align-items: center;
  60. transition: box-shadow 0.1s ease-in;
  61. margin: 0 56px 30px 0;
  62. cursor: pointer;
  63. }
  64. .tema-list .tema-item:hover {
  65. box-shadow: 0px 5px 10px 1px rgba(0, 0, 0, 0.16);
  66. }
  67. .tema-list .tema-item .left {
  68. display: flex;
  69. align-items: center;
  70. }
  71. .tema-list .tema-item .left .avatar {
  72. width: 64px;
  73. height: 64px;
  74. }
  75. .tema-list .tema-item .left .avatar img {
  76. width: 100%;
  77. height: 100%;
  78. }
  79. .tema-list .tema-item .left .tema-info {
  80. margin-left: 20px;
  81. }
  82. .tema-list .tema-item .left .tema-info p {
  83. margin-bottom: 10px;
  84. }
  85. .tema-list .tema-item .left .tema-info p:nth-child(1) {
  86. font-size: 16px;
  87. font-weight: bold;
  88. color: #333333;
  89. }
  90. .tema-list .tema-item .left .tema-info p:nth-child(1) span {
  91. font-size: 14px;
  92. font-weight: 400;
  93. color: #666666;
  94. margin-left: 30px;
  95. }
  96. .tema-list .tema-item .left .tema-info p:nth-child(2) {
  97. font-size: 14px;
  98. font-weight: 400;
  99. color: #666666;
  100. }
  101. .tema-list .tema-item .left .tema-info p:nth-child(3) {
  102. font-size: 14px;
  103. font-weight: 400;
  104. color: #666666;
  105. }
  106. .tema-list .tema-item .right {
  107. height: 100%;
  108. display: flex;
  109. flex-direction: column;
  110. justify-content: space-between;
  111. }
  112. .el-empty {
  113. position:absolute;
  114. top: 50%;
  115. left: 50%;
  116. transform: translate(-50%,-50%);
  117. }
  118. </style>