<template>
  <div class="pb_content">
    <div class="pb_head">
      <span>创新</span>
      <div class="pb_left" @click="goTo('release')">
        <img
          style="width: 1.2rem"
          v-lazy="require('../../assets/icon/camera.png')"
          alt=""
        />
      </div>
    </div>
    <div class="pb_content_body">
      <div class="find_head">最新推荐</div>
      <div class="find_content" v-for="x in 10" :key="x">
        <div class="find_box" @click="goTo('findDetail')">
          <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 van-ellipsis">大家一起植树啦</div>
          <div class="find_cc van-ellipsis">
            春季万物复苏，建议您带孩子走进大自然，用相机记录下精彩瞬间
          </div>
          <div class="find_cImgbox">
            <div class="find_cImg">
              <van-image
                width="3rem"
                height="3rem"
                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
              ><van-image
                width="3rem"
                height="3rem"
                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>
          <div class="find_commentInput">
            <van-search
              v-model="value"
              shape="round"
              placeholder="点这里评论"
              left-icon=""
            />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "main-keep-alive",
  data() {
    return {};
  },
  methods: {
    goTo(path) {
      this.$router.push(path);
    },
  },
  activated() {},
};
</script>

<style scoped>
.find_head {
  color: #656565;
  width: 93%;
  margin: 0.5rem auto;
  font-family: "黑体";
  font-size: 1.1rem;
  font-weight: 500;
}
.find_box {
  padding: 0.5rem 1rem;
  background: #fff;
  width: 93%;
  margin: 0 auto 0.3rem;
  border-radius: 1rem;
  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.8rem;
}
.find_cImgbox {
  display: flex;
  justify-content: space-between;
  margin: 0.3rem 0 0;
}
.find_cImg {
}
.find_cImg div {
  margin-right: 0.5rem;
}
.find_comment {
  display: flex;
  align-items: flex-end;
  font-size: 0.8rem;
}
.find_comment div:first-child {
  margin-right: 1rem;
}
.find_comment img {
  width: 1.3rem;
  margin-right: 0.2rem;
}
.find_comment div {
  display: flex;
  align-items: flex-end;
}
.find_commentInput {
}
.find_commentInput >>> .van-search {
  padding: 10px 0px;
}
.find_commentInput >>> .van-search__content {
  background: #f2f2f2;
}
</style>
