MyAlbum.vue
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<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>