<template>
  <div class="container">
    <div class="image">
      <img alt src="@/assets/img/evalute.png" />
    </div>
    <div class="text">为您查询到{{ this.result }}条结果</div>
    <div :key="index" v-for="(item, index) in info" @click="pageJump()">
      <el-card body-style="padding:10px">
        <div>
          <img alt src="@/assets/img/bianhao.png" />
          评估报告编号：
          <b>{{ item.number }}</b>
        </div>
        <div>
          <img alt src="@/assets/img/name.png" />
          被征收人姓名：
          <b>{{ item.name }}</b>
        </div>
        <div>
          <img alt src="@/assets/img/address.png" />
          被征收人房屋地址：
          <b>{{ item.address }}</b>
        </div>
        <div>
          <img alt src="@/assets/img/money.png" />
          评估总金额：
          <b style="color: red">{{ item.money }}</b>
        </div>
        <div class="line">
          <img alt src="@/assets/img/hengxian.png" />
        </div>
        <div class="content">
          <div class=" backgroundColor">
            <img alt src="@/assets/img/renyuan.png" />
            <span> 评估人员：{{ item.person }}</span>
          </div>
          <div class="backgroundColor">
            <img alt src="@/assets/img/shijian.png" />
            <span> 评估时间：{{ item.time }}</span>
          </div>
        </div>
      </el-card>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      result: "2",
      info: [
        {
          number: "044",
          name: "胡守钧",
          address: "宁波市江北区四洲街16号404",
          money: "180234元",
          person: "王勇",
          time: "2021-9-1"
        },
        {
          number: "044",
          name: "胡守钧",
          address: "宁波市江北区四洲街16号404",
          money: "180234元",
          person: "王勇",
          time: "2021-9-1"
        }
      ]
    };
  },
  created() {
    this.onInit();
    console.log(1234);
  },
  methods: {
    onInit() {
      this.onLoadData();
    },
    onLoadData() {
      console.log(this.$route.params);
      this.type = this.$route.params.type;
    },
    pageJump() {
      this.$router.push("/evaluteResult");
    }
  }
};
</script>

<style lang="less" scoped>
.container {
  font-size: 12px;
  .image {
    margin-top: 20px;
    text-align: center;
    img {
      width: 90%;
    }
  }
  .text {
    font-weight: bolder;
    margin: 10px 0;
    text-align: center;
    color: #2d6df2;
  }

  .el-card {
    margin: 0 10px 10px;
    .el-card__body {
      > div {
        margin: 14px 0;
        display: flex;
        align-items: center;
        img {
          margin-right: 6px;
        }
        b {
          font-size: 14px;
        }
      }
      .line {
        opacity: 1;
        img {
          width: 100%;
        }
        img {
          height: 2px;
        }
      }
      .content {
        display: flex;
        justify-content: space-between;
        > div {
          display: flex;
          align-items: center;
        }
        .backgroundColor {
          background-color: #e3ebfd;
          img {
            margin-right: 10px;
          }
          span {
            padding-right: 10px;
          }
        }
      }
    }
  }
}
</style>
