| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <template>
- <div class="tema-list" v-if="teamData">
- <el-row :gutter="100">
- <el-col :span="11" v-for="(item,index) in teamData" :key="index">
- <div class="tema-item" >
- <div class="left">
- <div class="avatar">
- <img src="@/assets/normal_avatar.png" alt="">
- </div>
- <div class="tema-info">
- <p>{{item.name}}<span>{{item.position}}</span></p>
- <p>账号ID:{{item.accountno}}</p>
- <p>手机号码:{{item.phonenumber}}</p>
- </div>
- </div>
- <div class="right">
- <slot name="icon" :data="item"></slot>
- <slot name="remove" :data="item"></slot>
- </div>
- </div>
- </el-col>
- </el-row>
- </div>
- <el-empty description="暂无数据" v-else></el-empty>
- </template>
- <script>
- export default {
- name: 'TeamItem',
- data () {
- return {
- };
- },
- props: ['teamData'],
- computed: {
- },
- watch: {
- },
- methods: {},
- };
- </script>
- <style scoped>
- * {
- box-sizing: border-box;
- }
- .tema-list {
- margin: 30px 50px 0 50px;
- display: flex;
- flex-wrap: wrap;
- }
- .tema-list .tema-item {
- width: 410px;
- height: 114px;
- background: #ffffff;
- border-radius: 4px 4px 4px 4px;
- border: 1px solid #cccccc;
- display: flex;
- justify-content: space-between;
- padding: 16px 30px 16px 20px;
- align-items: center;
- transition: box-shadow 0.1s ease-in;
- margin: 0 56px 30px 0;
- cursor: pointer;
- }
- .tema-list .tema-item:hover {
- box-shadow: 0px 5px 10px 1px rgba(0, 0, 0, 0.16);
- }
- .tema-list .tema-item .left {
- display: flex;
- align-items: center;
- }
- .tema-list .tema-item .left .avatar {
- width: 64px;
- height: 64px;
- }
- .tema-list .tema-item .left .avatar img {
- width: 100%;
- height: 100%;
- }
- .tema-list .tema-item .left .tema-info {
- margin-left: 20px;
- }
- .tema-list .tema-item .left .tema-info p {
- margin-bottom: 10px;
- }
- .tema-list .tema-item .left .tema-info p:nth-child(1) {
- font-size: 16px;
- font-weight: bold;
- color: #333333;
- }
- .tema-list .tema-item .left .tema-info p:nth-child(1) span {
- font-size: 14px;
- font-weight: 400;
- color: #666666;
- margin-left: 30px;
- }
- .tema-list .tema-item .left .tema-info p:nth-child(2) {
- font-size: 14px;
- font-weight: 400;
- color: #666666;
- }
- .tema-list .tema-item .left .tema-info p:nth-child(3) {
- font-size: 14px;
- font-weight: 400;
- color: #666666;
- }
- .tema-list .tema-item .right {
- height: 100%;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- .el-empty {
- position:absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%,-50%);
- }
- </style>
|