<template>
  <div class="home_wrapper">
    <header-nav
      :currentNav="2"
      returnUrl="/sunVillage/consulting"
      :headings="headingsTitle"
    ></header-nav>
    <div class="consulting_header">
      <div class="user_wrap">
        <div class="title">咨询人</div>
        <div class="content">刘文芳</div>
      </div>
      <div class="time_wrap">
        <div class="title">咨询时间</div>
        <div class="content">2022-02-11 11:15:00</div>
      </div>
    </div>
    <div class="form_main">
      <div class="flex_item">
        <div class="title">标题</div>
        <div class="ipt_main">
          <input type="text" class="ipt" placeholder="请输入标题" />
        </div>
      </div>
      <div class="flex_item">
        <div class="title">咨询内容</div>
        <div class="ipt_main">
          <textarea
            rows="2"
            class="textarea"
            placeholder="请输入咨询内容"
          ></textarea>
        </div>
      </div>
    </div>
    <div class="form_submit">
      <div class="submit_btn">提交咨询</div>
    </div>
  </div>
</template>


<style scoped lang="scss">
.home_wrapper {
  width: 100%;
  padding-top: 198px;
  min-height: 100vh;
  background: #fff;
  .consulting_header {
    height: 75px;
    display: flex;
    margin: 0 24px;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    .title {
      width: 138px;
      color: #999;
    }
    .user_wrap {
      width: 312px;
      display: flex;
    }
    .time_wrap {
      flex: 1;
      display: flex;
    }
    .content {
      display: flex;
      align-items: center;
      font-size: 24px;
    }
  }
  .form_main {
    margin: 35px 24px 0;
    font-size: 28px;
    .flex_item {
      display: flex;
      margin-bottom: 70px;
      .title {
        width: 138px;
        color: #999;
        height: 55px;
        display: flex;
        align-items: center; /*  子元素相对父元素垂直居中 */
      }
      .ipt_main {
        flex: 1;
        .ipt {
          width: 100%;
          height: 65px;
          border: 2px solid #e5e5e5;
          border-radius: 8px;
          padding: 0 15px;
        }
        .textarea {
          width: 100%;
          height: 410px;
          border: 2px solid #e5e5e5;
          border-radius: 8px;
          padding: 15px;
        }
      }
    }
  }
  .form_submit {
    display: flex;
    justify-content: center; /* 相对父元素水平居中 */
    align-items: center; /*  子元素相对父元素垂直居中 */
    .submit_btn {
      width: 340px;
      height: 80px;
      background: #07c160;
      color: #fff;
      font-size: 32px;
      line-height: 80px;
      text-align: center;
      border-radius: 10px;
    }
  }
}
</style>


<script>
import headerNav from "@/components/sunVillage/common/header.vue";

export default {
  name: "sunVillageConsulting",
  components: { headerNav },
  data() {
    return {
      headingsTitle: "我的咨询",
    };
  },
  mounted() {},
  methods: {
    skip(url) {
      this.$router.push(url);
    },
  },
};
</script>