<template>
  <div class="product-analysis-report">
    <div class="page-mian">
      <div class="pdf-left">
        <embed class="embed" width="100%" height="100%" src="https://test-certificate-frontend-api.ezijing.com/files/6816543487312265216.pdf" />
      </div>
      <div class="right-content">
        <input type="text" class="code" placeholder="请输入基金简称+基金代码" />
        <div class="title">产品分析报告</div>
        <!-- 产品概括 -->
        <product></product>
        <!-- 投资目标 -->
        <invest-target></invest-target>
        <!-- 业绩比较基准 -->
        <compares></compares>
        <!-- 风险收益特征 -->
        <features></features>
        <!-- 基金涉及费用 -->
        <cost ref="cost"></cost>
        <!-- 提交 -->
        <div class="submit-btn" @click="submit">提交报告</div>
      </div>
    </div>
  </div>
</template>

<script>
import Product from '../components/Products.vue'
import InvestTarget from '../components/InvestTarget.vue'
import Compares from '../components/Compares.vue'
import Features from '../components/Features.vue'
import Cost from '../components/Cost.vue'
export default {
  components: {
    Product,
    InvestTarget,
    Compares,
    Features,
    Cost
  },
  methods: {
    submit() {
      console.log(this.$refs.cost.form)
    }
  }
}
</script>

<style lang="scss" scoped>
input {
  background: none;
  border: none;
  outline: none;
}
.product-analysis-report {
  padding: 33px 100px;
  .page-mian {
    overflow: hidden;
    background: #fff;
    display: flex;
    padding: 20px;
    .right-content {
      width: 674px;
      background: #f8f8f8;
      border: 1px solid #dcdcdc;
      border-radius: 10px;
      .code {
        width: 370px;
        margin: 35px auto 0;
        height: 47px;
        display: block;
        text-align: center;
        border-bottom: 1px solid #b4b4b4;
        &::-webkit-input-placeholder {
          color: #afafaf;
        }
      }
      .submit-btn {
        width: 119px;
        background: #68b8a4;
        border-radius: 16px;
        text-align: center;
        margin: 42px auto;
        line-height: 32px;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
      }
      .title {
        font-size: 24px;
        font-weight: bold;
        color: #4cac94;
        line-height: 100%;
        text-align: center;
        margin-top: 27px;
      }
    }
    .pdf-left {
      flex: 1;
      margin-right: 10px;
      height: 500px;
    }
  }
}
</style>
