<template>
  <div class="trademark">
    <h3>
      <b></b>
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item
          ><span @click="showTable">企业证照信息</span></el-breadcrumb-item
        >
        <el-breadcrumb-item>商标注册证</el-breadcrumb-item>
      </el-breadcrumb>
    </h3>
    <table>
      <thead class="trademark-table-header">
        <tr>
          <td>序号</td>
          <td>商标图样</td>
          <td>商标名</td>
          <td>注册号</td>
          <td>类别</td>
          <td>状态</td>
          <td>申请时间</td>
          <td>详情</td>
        </tr>
      </thead>
      <tbody class="trademark-table-body">
        <tr v-for="(item, index) in trademarkList" :key="index">
          <td>序号</td>
          <td><img :src="item.img" alt="" /></td>
          <td>{{ item.name }}</td>
          <td>{{ item.zhucehao }}</td>
          <td>{{ item.leibie }}</td>
          <td>{{ item.status }}</td>
          <td>{{ item.time }}</td>
          <td>详情</td>
        </tr>
      </tbody>
    </table>
    <el-pagination
      background
      layout="prev, pager, next"
      :page-size="pageSize"
      :total="trademarkList.length"
      @current-change="handleCurrentChange"
    >
    </el-pagination>
  </div>
</template>

<script>
import img from "../../../assets/imgs/company/zhengzhao2.png";
export default {
  data() {
    return {
      pageSize: 5,
      trademarkList: [
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        },
        {
          img: img,
          name: "213",
          zhucehao: "1231321321asdasd213",
          leibie: 0,
          status: "已注册",
          time: "2017-12-08"
        }
      ],
      itemList:[]
    };
  },
  methods: {
    handleCurrentChange(val) {
      console.log(val);
      this.itemList = this.trademarkList.slice(val-1,)
    },
    indexMethod(index) {
      return index * 2;
    },
    //翻转
    showTable() {
      console.log(12312313);
      this.$emit("unshowOne");
    }
  }
};
</script>

<style lang="scss">
.trademark {
  width: 100%;
  h3 {
    .el-breadcrumb {
      .el-breadcrumb__item:nth-child(1) {
        .el-breadcrumb__inner {
          font-size: 16px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: rgba(51, 51, 51, 1);
          line-height: 22px;
          cursor: pointer;
        }
      }
      .el-breadcrumb__item:nth-child(2) {
        .el-breadcrumb__inner {
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: rgba(20, 120, 240, 1);
          line-height: 22px;
        }
      }
    }
  }
  table {
    width: 100%;
    .trademark-table-header {
      width: 100%;
      tr {
        width: 100%;
        td {
          width: 12.5% !important;
        }
      }
    }
    .trademark-table-body {
      width: 100%;
      tr {
        width: 100%;
        td {
          width: 12.5% !important;
          padding: 15px;
          img {
            width: 60px;
            height: 34px;
            border: 2px solid #ccc;
            display: inline-block;
          }
        }
      }
    }
  }
}
</style>
