bug
This commit is contained in:
@@ -3,8 +3,10 @@
|
|||||||
<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" :mask-custom-style="{background: 'rgba(0, 0, 0, 0)'}" :closeable="false" border-radius="32" mode="bottom" @close="isShow = false, currIndex = -1">
|
<!-- <u-popup v-model="isShow" :mask="false" :closeable="false" border-radius="32" mode="bottom" @close="isShow = false, currIndex = -1">
|
||||||
<div class="photo-bottom">
|
|
||||||
|
</u-popup> -->
|
||||||
|
<div class="photo-bottom" :class="[isShow ? 'active' : '']">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<h2>查看图片</h2>
|
<h2>查看图片</h2>
|
||||||
<p>长按图片进行分享给他人</p>
|
<p>长按图片进行分享给他人</p>
|
||||||
@@ -21,7 +23,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</u-popup>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -132,6 +133,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.photo-bottom {
|
.photo-bottom {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 11;
|
||||||
|
width: 100%;
|
||||||
|
transform: translateY(100%);
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 32px 32px 0 0;
|
||||||
|
transition: all ease 0.4s;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
Reference in New Issue
Block a user