<template>
  <div class="pb_content2">
    <div class="pb_head">
      <van-icon
        name="arrow-left"
        color="#fff"
        class="pb_back"
        size="1.2rem"
        @click="goBack"
      />
      <span>创新</span>
    </div>
    <div class="pb_content_body">
      <div class="fd_box">
        <div class="find_box_head">
          <div class="find_imgbox">
            <img v-lazy="require('../../assets/tu8.png')" alt="" />
          </div>
          <div class="find_headT">
            <span>林小凡</span>
            <span>2021-10-30 10:44</span>
          </div>
        </div>
        <div class="find_ct">大家一起植树啦</div>
        <div class="find_cc">
          植树造林不仅可以绿化和美化家园，同时还可以起到扩大山林资源、防止水土流失、保护农田、调节气候、促进经济发展等作用，是一项利于当代、造福子孙的宏伟工程。为了保护林业资源，美化环境，保持生态平衡，世界上很多国家都根据本国实际情况设立了植树节。随着人们的环保意识不断增强，并积极投身植树造林活动，我们人类生存的环境将会得到不断的改善。
          国外曾有学者对树的生态价值进行过计算：一棵50年树龄的树，产生氧气的价值约31200美元；吸收有毒气体、防止大气污染价值约62500美元；增加土壤肥力价值约31200美元；涵养水源价值37500美元；为鸟类及其他动物提供繁衍场所价值31250美元；产生蛋白质价值2500美元。除去花、果实和木材价值，总计创值约196000美元。
          这一计算是否精确姑且不论，就树木的实用价值而言，确是显而易见的。
        </div>
        <div class="find_image">
          <van-image
            width="auto"
            height="auto"
            fit="cover"
            :src="require('../../assets/tu8.png')"
          >
            <template v-slot:loading>
              <van-loading type="spinner" size="20" />
            </template>
            <template v-slot:error>加载失败</template>
          </van-image>
        </div>
        <div class="find_comment">
          <div>
            <img
              v-lazy="require('../../assets/icon/comment.png')"
              alt=""
            /><span>3</span>
          </div>
          <div>
            <img v-lazy="require('../../assets/icon/zan.png')" alt="" /><span
              >6</span
            >
          </div>
        </div>
        <div class="fd_cBox">
          <div class="fd_cBox_t">评论:</div>
          <div class="fd_cBox_comment">
            <div class="find_imgbox">
              <img v-lazy="require('../../assets/tu8.png')" alt="" />
            </div>
            <van-search
              v-model="value"
              shape="round"
              placeholder="点这里评论"
              left-icon=""
            />
          </div>
          <div class="fd_cBox_commentBox">
            <div class="fd_cBox_commentBox_content">
              <div class="find_imgbox">
                <img v-lazy="require('../../assets/tu8.png')" alt="" />
              </div>
              <div class="fd_cBox_commentBox_c">
                <div>小明家长</div>
                <div>真不错呢~<span>09.09</span></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    goBack() {
      this.$router.isBack = true;
      if (window.history.length <= 1) {
        this.$router.push({ path: "/" });
        return false;
      } else {
        this.$router.go(-1);
      }
    },
  },
};
</script>

<style scoped>
.fd_box {
  padding: 0.5rem 1rem;
  background: #fff;
  width: 93%;
  margin: 0.5rem auto 0.3rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px #d8d8d8;
  box-sizing: border-box;
}
.find_box_head {
  display: flex;
  margin: 0 auto 0.5rem;
  align-items: center;
}
.find_imgbox {
  width: 2rem;
  height: 2rem;
  border-radius: 2rem;
  /* background: green; */
  overflow: hidden;
  margin-right: 0.5rem;
}
.find_imgbox img {
  width: 100%;
  height: 100%;
}
.find_headT {
  display: flex;
  flex-direction: column;
}
.find_headT span:first-child {
  font-size: 0.75rem;
}
.find_headT span:last-child {
  font-size: 0.6rem;
  color: #c4c4c4;
}
.find_ct {
  color: #57ae6d;
  font-size: 0.9rem;
}
.find_cc {
  font-size: 0.7rem;
  margin-top: 0.5rem;
}

.find_image {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.find_image div {
  margin-top: 0.5rem;
}
.find_comment {
  display: flex;
  align-items: flex-end;
  font-size: 0.8rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}
.find_comment div {
  display: flex;
  align-items: flex-end;
}
.find_comment div:first-child {
  margin-right: 1rem;
}
.find_comment img {
  width: 1.3rem;
  margin-right: 0.2rem;
}

.fd_cBox {
  padding: 0.5rem 0;
}

.fd_cBox_t {
  font-size: 0.68rem;
}
.fd_cBox_comment {
  display: flex;
  align-items: center;
}

.fd_cBox_comment >>> .van-search {
  width: calc(100% - 2.3rem);
  padding: 10px 0px;
}

.fd_cBox_commentBox {
  padding: 0 0.5rem;
}
.fd_cBox_commentBox_content {
  display: flex;
  align-items: center;
}
.fd_cBox_commentBox_c {
    font-size: .75rem;
}
.fd_cBox_commentBox_c div:first-child{
    color: rgb(172, 172, 172);
    font-size: .7rem;
}
.fd_cBox_commentBox_c div:last-child{
    display: flex;
    align-items: flex-end;
}
.fd_cBox_commentBox_c div span{
    font-size: .6rem;
    color: rgb(204, 204, 204);
    margin-left: .3rem;
}
</style>
