This commit is contained in:
yanran200730
2022-05-31 14:36:03 +08:00
parent 7d98049044
commit 0d762ed348

View File

@@ -1,9 +1,9 @@
<template> <template>
<div class="photo"> <div class="photo" v-if="pageShow">
<div class="photo-wrapper"> <div class="photo-wrapper">
<image mode="widthFix" :src="img" @click="isShow = true" /> <image mode="widthFix" :src="img" @click="isShow = true" />
</div> </div>
<u-popup v-model="isShow" :closeable="false" border-radius="32" mode="bottom" @close="isShow = false, currIndex = -1"> <u-popup v-model="isShow" :mask-custom-style="{background: 'rgba(0, 0, 0, 0)'}" :closeable="false" border-radius="32" mode="bottom" @close="isShow = false, currIndex = -1">
<div class="photo-bottom"> <div class="photo-bottom">
<div class="top"> <div class="top">
<h2>查看图片</h2> <h2>查看图片</h2>
@@ -36,17 +36,24 @@
return { return {
img: '', img: '',
id: '', id: '',
isShow: true isShow: false,
pageShow: false
} }
}, },
onLoad (query) { onLoad (query) {
this.id = query.id this.id = query.id
this.$loading()
this.$http.post(`/api/appalbumphoto/queryDetailById?id=${query.id}`).then(res => { this.$http.post(`/api/appalbumphoto/queryDetailById?id=${query.id}`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.img = res.data.photoUrl this.img = res.data.photoUrl
} }
this.$nextTick(() => {
this.pageShow = true
this.isShow = true
})
}) })
}, },