<template>
  <div class="pb_content" style="background: #fff; max-height: 100%">
    <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="my_wordBox">
        <div class="mwd_title">
          <img v-lazy="require('../../assets/icon/word.png')" alt="" />
          <span>绿色快乐农耕园</span>
        </div>
        <div class="mwd_content">
          生活中多数家长认为，孩子身心健康、聪明、爱学习是第一位的，相比之下，动手操作一些生活中的“小事”没那么重要。其实，劳动蕴含着重要的“学习价值”，劳动也是一种学习。它能够为孩子提供丰富的感知、操作机会，使他在各种操作活动中获得认知发展；还能锻炼各种能力，帮助孩子养成良好的生活习惯，培养责任感和良好品质。
        </div>
        <div class="mwd_img">
          <img v-lazy="require('../../assets/tu8.png')" alt="" />
        </div>
        <div class="mwd_time">
          <span>09-24 18:00</span>
        </div>
        <div class="mwd_comment">
          <span>老师已评价</span>
          <span class="finish">已完成</span>
        </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>
.my_wordBox {
  padding: 1rem 0.6rem;
  background: #fff;
  width: 95%;
  margin: 0.5rem auto;
  border-radius: 0.3rem;
  box-shadow: 0 0 10px #d8d8d8;
  box-sizing: border-box;
}
.mwd_title {
  display: flex;
  align-items: center;
}
.mwd_title img {
  width: 1.3rem;
  margin-right: 0.3rem;
}
.mwd_title span {
  font-size: 0.9rem;
  /* font-weight: 600; */
}

.mwd_content {
  font-size: 0.85rem;
  color: rgb(134, 134, 134);
  margin: 0.2rem 0;
  text-indent: 2em;
}
.mwd_img {
  border-radius: 10px;
  width: 100%;
  overflow: hidden;
}
.mwd_img img {
  width: 100%;
  height: auto;
  margin: 0.3rem;
}
.mwd_time {
  font-size: 0.65rem;
  color: rgb(134, 134, 134);
}

.mwd_comment {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.mwd_comment span:last-child {
  color: red;
}
.mwd_comment .finish {
  color: #46bb65 !important;
}
</style>
