|
@@ -1,20 +1,11 @@
|
1
|
1
|
<template>
|
2
|
|
- <div
|
3
|
|
- v-if="show"
|
4
|
|
- class="overlay"
|
5
|
|
- @touchmove.prevent
|
6
|
|
- @mousewheel.prevent
|
7
|
|
- @click="onClose"
|
8
|
|
- >
|
9
|
|
- <div class="warp">
|
10
|
|
- <img :src="info.image" @click.stop class="image" alt="" />
|
11
|
|
- <div class="text" @click.stop>
|
|
2
|
+ <div v-if="show" class="overlay" @click="onClose">
|
|
3
|
+ <div class="warp" @click.stop>
|
|
4
|
+ <img :src="info.image" class="image" alt="" />
|
|
5
|
+ <div class="text" @scroll.passive="() => {}">
|
12
|
6
|
{{ info.content }}
|
13
|
7
|
</div>
|
14
|
8
|
</div>
|
15
|
|
-
|
16
|
|
- <!-- <div class="loader-section section-top"></div>
|
17
|
|
- <div class="loader-section section-bottom"></div> -->
|
18
|
9
|
</div>
|
19
|
10
|
</template>
|
20
|
11
|
|
|
@@ -26,31 +17,13 @@ const props = defineProps({
|
26
|
17
|
type: Function,
|
27
|
18
|
default: () => {},
|
28
|
19
|
},
|
29
|
|
- // onClose:()=>{}
|
30
|
20
|
});
|
31
|
21
|
|
32
|
|
-// const elRef = ref();
|
33
|
|
-// const maskRef = ref();
|
34
|
|
-// const progressStyle = computed(() => ({ width: `${props.percent}%` }));
|
35
|
|
-// const visibleStyle = ref({ })
|
36
|
|
-// const onEnd = () => {
|
37
|
|
-// visibleStyle.value = { display: 'none' }
|
38
|
|
-// }
|
39
|
|
-
|
40
|
|
-const onTouchMove = (e) => {
|
41
|
|
- // 禁止滚动
|
42
|
|
- e.preventDefault();
|
43
|
|
-};
|
44
|
22
|
|
45
|
|
-// watch(() => props.loading, (newVal, oldVal) => {
|
46
|
|
-// window.console.log(show,'showshow')
|
47
|
|
-// })
|
48
|
23
|
</script>
|
49
|
24
|
|
50
|
25
|
<style lang="less" scoped>
|
51
|
|
-// @bg-color: #D7DDD3;
|
52
|
|
-// @tip-color: #933D33;
|
53
|
|
-// @text-color: #fff;
|
|
26
|
+
|
54
|
27
|
|
55
|
28
|
.overlay {
|
56
|
29
|
position: fixed;
|
|
@@ -61,23 +34,48 @@ const onTouchMove = (e) => {
|
61
|
34
|
z-index: 100;
|
62
|
35
|
overflow: hidden;
|
63
|
36
|
background: rgba(0, 0, 0, 0.5);
|
|
37
|
+ display: flex;
|
|
38
|
+ flex-direction: column;
|
|
39
|
+ justify-content: center;
|
|
40
|
+ align-items: center;
|
64
|
41
|
.warp {
|
65
|
42
|
margin: 0 auto;
|
66
|
43
|
width: 80%;
|
67
|
|
- height: 100%;
|
|
44
|
+ height: 80%;
|
|
45
|
+ overflow: hidden;
|
|
46
|
+ display: flex;
|
|
47
|
+ flex-direction: column;
|
68
|
48
|
// background: fff;
|
69
|
49
|
.image {
|
70
|
50
|
width: 100%;
|
71
|
|
- margin-top: 100px;
|
72
|
51
|
}
|
73
|
52
|
.text {
|
74
|
53
|
line-height: 1.6em;
|
75
|
54
|
padding: 0 20px;
|
76
|
55
|
font-size: 20px;
|
77
|
|
- text-indent: 32.4px;
|
|
56
|
+ text-indent: 42px;
|
78
|
57
|
margin-top: 50px;
|
79
|
58
|
color: #fff;
|
|
59
|
+ overflow-y: auto;
|
|
60
|
+ }
|
|
61
|
+
|
|
62
|
+ .text::-webkit-scrollbar {
|
|
63
|
+ display: none;
|
80
|
64
|
}
|
81
|
65
|
}
|
|
66
|
+
|
|
67
|
+ animation: fade-in; /*动画名称*/
|
|
68
|
+ animation-duration: 0.7s; /*动画持续时间*/
|
|
69
|
+}
|
|
70
|
+@keyframes fade-in {
|
|
71
|
+ 0% {
|
|
72
|
+ opacity: 0;
|
|
73
|
+ } /*初始状态 透明度为0*/
|
|
74
|
+ // 40% {
|
|
75
|
+ // opacity: 0.3;
|
|
76
|
+ // } /*过渡状态 透明度为0*/
|
|
77
|
+ 100% {
|
|
78
|
+ opacity: 1;
|
|
79
|
+ } /*结束状态 透明度为1*/
|
82
|
80
|
}
|
83
|
81
|
</style>
|