消息接口

This commit is contained in:
yanran200730
2022-05-30 16:33:22 +08:00
parent 6a5b244d92
commit bd2c72e81c
2 changed files with 7 additions and 2 deletions

View File

@@ -43,7 +43,7 @@
</div>
</div>
<div class="photo-item__wrapper">
<div class="photo-item" @click="linkTo('./Photo?url=' + item.photoUrl + '&id=' + item.id)" v-for="(item, index) in list" :key="index">
<div class="photo-item" @click="linkTo('./Photo?id=' + item.id)" v-for="(item, index) in list" :key="index">
<image :src="item.photoUrl" mode="aspectFill" />
<div class="photo-item__text">
<h2><AiOpenData v-if="item.createUserId" type="userName" :openid="item.createUserId"></AiOpenData></h2>

View File

@@ -36,7 +36,12 @@
onLoad (query) {
this.id = query.id
this.img = query.url
this.$http.post(`/api/appalbumphoto/queryDetailById?id=${query.id}`).then(res => {
if (res.code == 0) {
this.img = res.data.photoUrl
}
})
},
methods: {