MyAlbum.vue 1.9 KB
<template>
 <div class="introduction">
     <h2 @click="back"><</h2>
     <h1>我的相册</h1>
    <van-uploader v-model="fileList" multiple :max-count="6" @click="add"  upload-text="添加照片"/>
 <!-- <div class="btn" @click="go">下一步</div> -->
     <p>提示:需上传生活照和工作照,禁止P图.</p>
  <!-- <ShowHidden :isvisibleadd="showHidden"></ShowHidden> -->
 </div>
</template>
<script>
// import ShowHidden  from '../components/ShowHide.vue';
export default {
  name: 'introduction',
  components: {
    //  ShowHidden
  },
  data () {
    return {
       message:'',
       fileList:[],
       showHidden:false
    }
  },
   methods:{
     back () {
         this.$router.go(-1);
     },
     go () {
          this.$router.push('/photoz')
     },
     add () {
       let that=this
      let params={
         'fileList':that.fileList
      }
        that.$axios.post('/api/Center/photo_sel',params).then((res)=>{

              this.fileList = res.data
              console.log(res)
        }

        ).catch((err)=>{
          console.log(err)
        })

     }
   }
}
</script>
<style lang="scss" scoped>
  .introduction{
    width:100%;
    height:110%;
    background:#11A7FC;
    padding-top:5%;
    padding-left:5%;
    overflow:hidden;
    position:relative;
     h2{
      font-size:.2rem;
      color:#fff;
      margin-bottom:.5rem;
    }
    h1{
      font-size:.28rem;
      color:#ccc;
    }
    .van-field{
      margin-top:.3rem;
      width:90%;
      height:1.9rem;
      border-radius:.2rem;
    }
    .btn{
      width:90%;
      height:.4rem;
      background:#fff;
      font-size:.2rem;
      color:#11A7FC;
      line-height:.4rem;
      text-align:center;
      margin-top:.9rem;
      font-weight:bold;
      border-radius:.2rem;
    }
    p{
      font-size:.14rem;
      color:#fff;
      text-align:center;
      position:absolute;
      bottom:20%;
      left:20%;
    }
  }
</style>