<template>
  <div class="dm-wrap phone-traffic">
    <div class="title flex_between">
      <div class="flex_between">
        <img :src="require('@/assets/img/icon-phone.png')" class="img" />
        <h2>话务</h2>
      </div>
      <div class="detail" @click="$emit('toClue', '话务')"><i class="iconfont icon-chakanxiangqing"></i>查看详情</div>
    </div>
    <phone-traffic-sum v-bind="$attrs" />
  </div>
</template>

<script>
import phoneTrafficSum from './phone-traffic-sum';
export default {
  name: 'phone-traffic',
  components: { phoneTrafficSum },
  inheritAttrs: false
};
</script>

<style lang="scss" scoped>
.phone-traffic {
  padding: 22px 20px 30px !important;
  font-family: PingFangSC-Regular, PingFang SC;
  .title {
    height: 32px;
    margin-bottom: 10px;
    line-height: 32px;
    h2 {
      font-size: 16px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 700;
      color: #303133;
      margin-left: 2px;
    }
  }
  .img {
    transform: scale(0.5);
  }
  .flex_between {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .detail {
    padding: 0 10px;
    background: rgba(47, 84, 235, 0.1);
    border-radius: 4px;
    height: 32px;
    color: #2f54eb;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: none;
    &:hover {
      color: #597ef7;
    }
    i {
      margin-right: 2px;
    }
  }
}
</style>
