乡村相册

This commit is contained in:
yanran200730
2022-05-23 18:00:28 +08:00
parent 75034e8c35
commit 72d814c913
8 changed files with 131 additions and 49 deletions

View File

@@ -3,7 +3,7 @@
<div class="userinfo">
<image src="https://pica.zhimg.com/v2-abed1a8c04700ba7d72b45195223e0ff_is.jpg?source=32738c0c" />
<div class="right">
<h2>吴小米</h2>
<h2><AiOpenData v-if="userInfo.wxOpenUserId" type="userName" :openid="userInfo.wxOpenUserId"></AiOpenData></h2>
<p>欢迎使用乡村相册</p>
</div>
</div>
@@ -81,7 +81,8 @@
countPhotoNo: '',
countPhotographer: '',
list: [],
msgInfo: {}
msgInfo: {},
userInfo: {}
}
},
@@ -89,6 +90,7 @@
this.getCountPhotoNo()
this.getAlbumList()
this.getMsgList()
this.getUserInfo()
},
methods: {
@@ -98,6 +100,14 @@
})
},
getUserInfo () {
this.$http.post('/api/user/info').then(res => {
if (res.code === 0) {
this.userInfo = res.data
}
})
},
getCountPhotoNo () {
this.$http.post('/api/appalbumphoto/countPhotoNo').then(res => {
if (res.code === 0) {