<template>
  <div v-if="show">
  <div class="overlay" style="z-index: 2006;">
  <div class="popup popup-center" style="background-color: transparent; z-index: 2007;">
    <div class="team-dialog">
      <div class="team-content">
        <ul class="team-content-ul" v-for="(member) in teamMemberList">
          <li class="team-content-li" >
            <div  class="team-item" style="position: relative;">
              <div v-if="member.captainKbn == 0" class="king"></div>
              <div class="van-image van-image--round" style="width: 1rem; height: 1rem;">
                <img :src="member.userImg" class="van-image__img">
              </div>
              <div v-if="member.captainKbn == 0"  class="team-l-text">团长</div>
                <img src="" alt="" class="team-l">
              <span class="team-item-text">{{member.nickName | twostar}}</span>
            </div>
          </li>
        </ul> <div style="clear: both;"></div>
      </div>
    </div>
    <img src="https://img10.360buyimg.com/imgzone/jfs/t1/87643/39/12919/1447/5e4f3c7dEc11db3a6/3c76fe7463b75d7f.png" @click="closeClick" alt="" style="width: 0.6rem; height: 0.6rem; display: block; margin: 0.4rem auto 0px;">
  </div>
  </div>
  </div>
</template>

<script>


import dateUtil from "../../../util/dateUtil";

export default {
  props: ["datas"],
  components: {
  },
  data() {
    return {
      teamList:[],
    };
  },

  methods: {

    closeClick() {
      document.querySelector('body').removeAttribute('style');
      this.submit();
    },


  },
  filters: {
    //时间转换
    dateTime(val) {
      if (val) {
        return dateUtil.formatTime(val, 'yyyy-MM-dd hh:mm');
      }
      return val;
    },
    twostar: function(value) {
      if (!value) {
        return ""
      }
      return value.substr(0, 1) + "**" + value.substr(-1, 1)
    }
  }
};
</script>

<style lang="scss">
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.7);
  }
  .team-dialog {
    background: url(https://img10.360buyimg.com/imgzone/jfs/t1/119643/12/812/49844/5ea022f9Ea9797c7e/76cf85ca1e4f556b.png) no-repeat;
    background-size: 100%;
    width: 6.5rem;
    height: 8rem;
    padding-top: 1.4rem;
    box-sizing: border-box;
  }
  .popup-center {
    top: 50%;
    left: 50%;
    transform: translate3d(-50%,-50%,0);
  }
  .popup {
    position: fixed;
    max-height: 100%;
    overflow-y: auto;
    background-color: #fff;
    -webkit-transition: -webkit-transform .3s;
    transition: -webkit-transform .3s;
    transition: transform .3s;
    transition: transform .3s,-webkit-transform .3s;
    -webkit-overflow-scrolling: touch;
  }
  .team-content-ul {
    position: relative;
    top: .25rem;
    width: 5.8rem;
  }
  .ol{
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ul{
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .team-content-li {
    width: 1.3rem;
    float: left;
    text-align: center;
    font-size: 12px;
  }
  .king {
    background: url(http://img10.360buyimg.com/imgzone/jfs/t1/116081/9/2191/1668/5ea02114E5248bc97/4bdf07fc604f1f6b.png) no-repeat;
    background-size: 100%;
    width: .37rem;
    height: .36rem;
    position: absolute;
    top: -.14rem;
    left: .1rem;
  }
  .van-image--round {
    overflow: hidden;
    border-radius: 50%;
  }
  .van-image {
    position: relative;
    display: inline-block;
  }
  .team-l-text {
    background: url(http://img10.360buyimg.com/imgzone/jfs/t1/92016/5/19519/1782/5ea0211dEed248c72/a6dc44f7bed44a29.png) no-repeat;
    background-size: 100%;
    width: .62rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: .27rem;
    color: #8e2e00;
    font-size: .17rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: .8rem;
  }
  .team-l {
    width: .8rem;
    position: absolute;
    top: .8rem;
    left: .3rem;
  }
  .team-item-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .team-content-li {
    width: 1.4rem;
    float: left;
    text-align: center;
  }

</style>
