<template>
  <div class="ChatDetail">
    <BaseHeader>
      <template v-slot:center>
        <span class="f16">聊天详情</span>
      </template>
    </BaseHeader>
    <div class="content">
      <div class="peoples">
        <People v-for="item in list " :people="item"></People>
      </div>
      <div class="setting">
        <div class="row">
          <div class="left">消息免打扰</div>
          <div class="right">
            <switches v-model="noMessage" theme="bootstrap" color="success"></switches>
          </div>
        </div>
        <div class="row">
          <div class="left">置顶聊天</div>
          <div class="right">
            <switches v-model="top" theme="bootstrap" color="success"></switches>
          </div>
        </div>
        <div class="row">
          <div class="left">设备备注</div>
          <div class="right">
            <img src="../../assets/img/icon/back.png" alt="">
          </div>
        </div>
        <div class="row">
          <div class="left">举报</div>
          <div class="right">
            <img src="../../assets/img/icon/back.png" alt="">
          </div>
        </div>
        <div class="row">
          <div class="left">拉黑</div>
          <div class="right">
            <img src="../../assets/img/icon/back.png" alt="">
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import Switches from './components/swtich/switches';
import People from "../people/components/People";

export default {
  name: "ChatDetail",
  components: {
    Switches,
    People
  },
  data() {
    return {
      noMessage: false,
      top: false,
      list: [
        {
          type: 1,
          name:'A'
        },
        {
          type: 6,
          name:'多人聊天'
        },
      ]
    }
  },
  computed: {},
  created() {
  },
  methods: {
    t() {
      this.enabled = !this.enabled
    }
  }
}
</script>

<style scoped lang="scss">
@import "../../assets/scss/index";

.ChatDetail {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  overflow: auto;
  color: white;

  .content {
    padding-top: 6rem;

    .peoples {
      padding: 0 2rem;

      .People {
        border-bottom: 1px solid $second-btn-color-tran;
      }
    }

    .setting {
      .row {
        padding-left: 2rem;
        padding-right: 2rem;

        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 4rem;

        &:active {
          opacity: .5;
        }

        .right {
          img {
            height: 2rem;
          }
        }
      }
    }
  }
}
</style>
