<template>
  <div id="census">
    <el-row>
      <el-col :span="24" class="basic">
        <el-col :span="24" class="basicTop">
          <span>统计信息</span>
        </el-col>
        <el-col :span="24" class="basicInfo">
          <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="统计信息" name="first">
              <el-col :span="24" class="info">
                <el-col :span="24" class="xuqiuYishenList" v-for="(item, index) in orderList" :key="index">
                  <el-col :span="20" class="num"> 信息号：{{ item.num }} </el-col>
                  <el-col :span="4" class="date">{{ item.date }} </el-col>
                  <el-col :span="10" class="left">
                    <el-col :span="12" class="image">
                      <el-image style="width:100px;height:100px;" :src="item.pic"></el-image>
                    </el-col>
                    <el-col :span="12" class="center">
                      <el-col :span="24" class="name">
                        {{ item.name }}
                      </el-col>
                      <el-col :span="24" class="name"> 类别：{{ item.type }} </el-col>
                      <el-col :span="24" class="name yen"> &yen;{{ item.yen }} </el-col>
                    </el-col>
                  </el-col>
                  <el-col :span="10" class="shenqing">
                    交易说明：
                    <p>{{ item.content }}</p>
                  </el-col>
                  <el-col :span="4" class="btn">
                    <el-link :underline="false">编辑</el-link><br />
                    <el-link :underline="false">彻底删除</el-link><br />
                    <el-link :underline="false">查看详情</el-link>
                  </el-col>
                </el-col>
              </el-col>
              <el-col :span="24" class="page">
                <el-pagination
                  @size-change="handleSizeChange"
                  @current-change="handleCurrentChange"
                  :current-page="currentPage"
                  layout="total, prev, pager, next, jumper"
                  :total="1"
                >
                </el-pagination>
              </el-col>
            </el-tab-pane>
          </el-tabs>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'census',
  props: {
    orderList: null,
  },
  components: {},
  data: () => ({
    activeName: 'first',
    currentPage: 1,
  }),
  created() {},
  computed: {},
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.basicTop {
  height: 59px;
  border-bottom: 1px solid #215299;
}
.basicTop span {
  display: inline-block;
  width: 130px;
  height: 59px;
  text-align: center;
  line-height: 60px;
  background-color: #215299;
  color: #fff;
  font-size: 18px;
}
.basicInfo {
  padding: 20px 40px;
}
/deep/.el-tabs__header {
  margin: 0;
}
/deep/.el-tabs__item {
  font-size: 16px;
  color: #ccc;
}
/deep/.el-tabs__active-bar {
  background-color: #0165bb;
}
/deep/.el-tabs__item.is-active {
  color: #0165bb !important;
}
.info {
  margin: 20px 0 0 0;
  height: 860px;
  overflow: hidden;
}
.xuqiuYishenList {
  border: 1px solid #ccc;
  margin: 0 0 10px 0;
}
.xuqiuYishenList .num {
  height: 40px;
  line-height: 40px;
  background-color: #fafafa;
  padding: 0 10px;
  font-size: 14px;
  color: #888;
}
.xuqiuYishenList .date {
  height: 40px;
  line-height: 40px;
  background-color: #fafafa;
  font-size: 14px;
  color: #888;
  text-align: center;
}
.xuqiuYishenList .left {
  height: 100px;
  margin: 10px 0;
  border-right: 1px solid #ccc;
  padding: 0 0 0 10px;
}
.xuqiuYishenList .left .image {
  width: 100px;
  height: 100px;
}
.xuqiuYishenList .center {
  height: 100px;
  padding: 0 0 0 10px;
}
.xuqiuYishenList .center .name {
  font-size: 16px;
  color: #555;
  height: 30px;
  line-height: 30px;
}
.xuqiuYishenList .center .yen {
  color: #ff0000;
}
.xuqiuYishenList .shenqing {
  height: 100px;
  margin: 10px 0;
  border-right: 1px solid #ccc;
  padding: 0 10px;
  font-size: 14px;
  color: #215299;
}
.xuqiuYishenList .shenqing p {
  color: #555;
  font-size: 14px;
  text-indent: 1rem;
  line-height: 25px;
}
.xuqiuYishenList .btn {
  text-align: center;
  height: 100px;
  margin: 10px 0;
  line-height: 30px;
}
.xuqiuYishenList .btn .el-link {
  color: #215299;
  margin: 0 10px;
}
.page {
  height: 30px;
  line-height: 30px;
  margin: 40px 0;
  text-align: center;
}
</style>
