<template>
  <div class="productdetails">
    <div class="productdetails-main">
      <div class="productdetails-main-container">
        <div class="productdetails-main-top">
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item>首页</el-breadcrumb-item>
            <el-breadcrumb-item>专家辅助商标注册</el-breadcrumb-item>
          </el-breadcrumb>
        </div>
        <div class="productdetails-main-detail">
          <div class="productdetails-left"><img src="" alt="" /></div>
          <div class="productdetails-right">
            <h1>专家辅助商标注册</h1>
            <p>
              专业知产顾问一对一商标检索分析，提高注册效率，为您优化注册方案，全方位保护
            </p>
            <div class="priceMsg">
              <div>
                <span
                  >总价<b>¥{{ servicecharge + officialfee }}</b></span
                >
                <span
                  >官費<b>¥{{ officialfee }}</b></span
                >
                <span
                  >服务费<b>¥{{ servicecharge }}</b></span
                >
              </div>
              <p>
                该服务由公司宝提供，<span>发票请到订单中心-发票管理开取</span>
              </p>
            </div>
            <div class="productdetail-count">
              <p>数量</p>
              <el-input-number
                size="mini"
                v-model="count"
                :min="1"
              ></el-input-number>
            </div>
            <div class="bottom-btn">
              <el-button @click="goPlaceOrder()">立即购买</el-button>
              <span><img src="@/assets/imgs/wenti.png" alt="" />咨询客服</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      count: 1,
      officialfee: 300,
      servicecharge: 380
    };
  },
  methods: {
    goPlaceOrder() {
      this.$router.push({
        path: "/placeorder",
        query: {
          count: this.count,
          type: "zjfz"
        }
      });
    }
  }
};
</script>

<style lang="scss">
.productdetails {
  width: 100%;
  .productdetails-main {
    width: 100%;
    min-height: 786px;
  }
}
.productdetails-main-container {
  max-width: 1190px;
  padding: 0 20px;
  margin: 0 auto;
  .productdetails-main-top {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #cecece;
  }
  .productdetails-main-detail {
    width: 100%;
    display: flex;
    padding: 20px 0;
    .productdetails-left {
      width: 293px;
      height: 293px;
      border: 1px solid rgba(207, 207, 207, 1);
      margin-right: 40px;
    }
    .productdetails-right {
      flex: 1;
      h1 {
        font-size: 20px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: rgba(51, 51, 51, 1);
        line-height: 28px;
        margin-bottom: 5px;
      }
      p {
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: rgba(153, 153, 153, 1);
        line-height: 20px;
      }
      .priceMsg {
        width: 100%;
        padding: 15px 17px;
        background: #f3f7fd;
        margin-bottom: 20px;
        margin-top: 12px;
        div {
          width: 100%;
          margin-bottom: 12px;
          span {
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: rgba(153, 153, 153, 1);
            line-height: 17px;
            margin-right: 40px;
            b {
              font-size: 23px;
              color: #ff5b00;
              margin-left: 20px;
            }
          }
        }
        p {
          font-size: 12px;
          font-family: PingFangSC-Light, PingFang SC;
          font-weight: 300;
          color: rgba(153, 153, 153, 1);
          line-height: 17px;
          span {
            color: #3071fe;
          }
        }
      }
      .productdetail-count {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        p {
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: rgba(153, 153, 153, 1);
          line-height: 20px;
          margin-right: 12px;
        }
      }
      .bottom-btn {
        display: flex;
        align-items: center;
        button {
          width: 128px;
          height: 36px;
          background: rgba(48, 113, 254, 1);
          border: 1px solid rgba(48, 113, 254, 1);
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          line-height: 20px;
          padding: 0;
          border-radius: 0;
          margin-right: 10px;
          span {
            color: rgba(255, 255, 255, 1);
          }
        }
        span {
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: rgba(48, 113, 254, 1);
          line-height: 20px;
          cursor: pointer;
          img {
            display: inline-block;
            width: 16px;
            margin-right: 7px;
          }
        }
      }
    }
  }
}
</style>
