<template>
<div class="wrap">
  <div class="navBar">
    <van-nav-bar
        title="培训文档 "
        left-arrow
        left-arrow-color="#FFFFFF"
        :border="false"
        :fixed="true"
        :safe-area-inset-top="true"
        @click-left="goBack"
    >
      <template slot="right">
        <div class="rightWrap">
          <img src="@/assets/serach.png" class="img2"/>
        </div>
      </template>
    </van-nav-bar>
  </div>
  <div class="contentWrap">
        <div class="itemWrap">
            <div class="info flexBetween common">
              <div class="title">会记回家和</div>
              <div class="time">2023-08-24 13:14:00</div>
            </div>
           <div class="imgWrap">
             <img src="@/assets/empty.png">
           </div>
           <div class="num common">111</div>
            <div class="doc flexBetween common">
              <div class="left">培训材料</div>
              <div class="right">
                <span style="color: red;font-size: 14px;margin-right: 8px">未处理</span>
                <span style="opacity: .9;color: #ccc">阅读8</span>
              </div>
            </div>
        </div>
  </div>
</div>
</template>

<script>
import {myMixins} from "@/utils/myMixins"
import {pageList} from  "@/api/mine"
export default {
  name: "trainDocment",
  mixins:[myMixins],
  data(){
    return{
      pageNum:1,
      pageSize:10
    }
  },
  mounted() {
    this.getList()
  },
  methods:{
    async getList(){
      let res= await pageList({
        pageNum:this.pageNum,
        pageSize:this.pageSize,
        userId:54585,
        docType:2
      })
      console.log(res)

    }
  }
}
</script>

<style scoped lang="scss">
@import "@/styles/common.scss";
@import "@/styles/mixin.scss";
.wrap{
  width: 100%;
  height: 100%;
  background-color: #F4F5F7;
  overflow-y: auto;
}
.navBar{
  margin-bottom: 46px;
}
.rightWrap {
  @include flexCenter;
  .img2 {
    @include wh(17px, 17px)
  }
}
.contentWrap{
  padding: 0 8px;
  width: 100%;
  box-sizing: border-box;
  .itemWrap{
    margin-top: 56px;
    @include wh(100%, 300px);
    background: #FFFFFF;
    box-shadow: 0px 2px 10px 0px rgba(216, 216, 216, 0.5);
    border-radius: 3px;
    box-sizing: border-box;
    @include flexColumn;
    justify-content: space-around;
    padding: 6px 0;
    @include fontWeightSize(400, 12px);
    .flexBetween{
      @include flexColBet;
    }
    .common{
      margin: 0 15px ;
    }
    .imgWrap{
      width: 100%;
      height: 200px;
      //background-color: #6C81CD;
      img{
        width: 100%;
        height: 200px;
      }
    }
    .left{
      color: red;
      font-size: 15px;
      font-weight: 500;
    }
  }

}
</style>