添加图片预览
This commit is contained in:
parent
ae8b558360
commit
630d9fe239
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 828 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
@ -25,10 +25,11 @@
|
|||||||
@touchmove="touchMove($event)"
|
@touchmove="touchMove($event)"
|
||||||
@touchend="touchEnd($event)">
|
@touchend="touchEnd($event)">
|
||||||
<div ref="desc" class="desc">
|
<div ref="desc" class="desc">
|
||||||
<header ref="header"></header>
|
<header ref="header" @click="previewImg = require('../../assets/img/header-bg.png')"></header>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<img src="../../assets/img/icon/avatar/2.png" class="head-image">
|
<img src="../../assets/img/icon/avatar/2.png" class="head-image"
|
||||||
|
@click="previewImg = require('../../assets/img/icon/avatar/2.png')">
|
||||||
<div class="heat">
|
<div class="heat">
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<span>获赞</span>
|
<span>获赞</span>
|
||||||
@ -290,6 +291,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</SlideItem>
|
</SlideItem>
|
||||||
</SlideRowList>
|
</SlideRowList>
|
||||||
|
<transition name="fade">
|
||||||
|
<div class="preview-img" v-if="previewImg" @click="previewImg = ''">
|
||||||
|
<img class="resource" :src="previewImg" alt="">
|
||||||
|
<img class="download" src="../../assets/img/icon/components/video/download.png" alt="" @click.stop="$no">
|
||||||
|
</div>
|
||||||
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -304,6 +311,7 @@ export default {
|
|||||||
components: {Posters, Footer, Indicator},
|
components: {Posters, Footer, Indicator},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
previewImg: '',
|
||||||
contentIndex: 0,
|
contentIndex: 0,
|
||||||
baseActiveIndex: 0,
|
baseActiveIndex: 0,
|
||||||
tabContents: [],
|
tabContents: [],
|
||||||
@ -759,6 +767,32 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
|
|
||||||
|
.preview-img {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
top: 0;
|
||||||
|
background: black;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.resource {
|
||||||
|
width: 100vw;
|
||||||
|
max-height: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 2rem;
|
||||||
|
right: 2rem;
|
||||||
|
padding: .3rem;
|
||||||
|
background: @second-btn-color-tran;
|
||||||
|
width: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mask {
|
.mask {
|
||||||
background: #0000004f;
|
background: #0000004f;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user