commit | author | age
|
d3f921
|
1 |
<template> |
41b36f
|
2 |
<a-layout> |
019990
|
3 |
<a-layout-header class="scrolling-navbar" |
I |
4 |
:style="{position:'fixed',height:'60px',marginBottom:'35px',zIndex: 999, width: '100%' }"> |
|
5 |
<tag-Header /> |
41b36f
|
6 |
</a-layout-header> |
I |
7 |
|
6bcd13
|
8 |
<keep-alive> |
146176
|
9 |
<router-view @showMyVideo="showMyVideo"></router-view> |
6bcd13
|
10 |
</keep-alive> |
146176
|
11 |
|
41b36f
|
12 |
<a-layout-footer> |
019990
|
13 |
<AplayerBox /> |
41b36f
|
14 |
<tagFooter /> |
105729
|
15 |
<MyVideo ref="MyVideo" /> |
af029b
|
16 |
<a-button v-if="miniVideoPlayData!=null" class="fadeInRight" |
I |
17 |
style="position: fixed;right: 0px;bottom: 120px;" @click="showMyVideo(miniVideoPlayData)"> |
|
18 |
视频盒子 |
|
19 |
<a-icon type="youtube" /> |
|
20 |
</a-button> |
41b36f
|
21 |
</a-layout-footer> |
f9c38e
|
22 |
|
b505f3
|
23 |
<a-back-top> |
I |
24 |
<a-icon type="up" />回到顶部 |
|
25 |
</a-back-top> |
|
26 |
|
41b36f
|
27 |
</a-layout> |
d3f921
|
28 |
</template> |
I |
29 |
|
|
30 |
<script> |
41b36f
|
31 |
import tagHeader from "../fixed/header.vue" |
I |
32 |
import tagFooter from "../fixed/footer.vue" |
019990
|
33 |
import AplayerBox from "../mini/Aplayer.vue" |
146176
|
34 |
import MyVideo from "../group/MyVideo.vue" |
d3f921
|
35 |
export default { |
I |
36 |
components: { |
41b36f
|
37 |
tagHeader, |
I |
38 |
tagFooter, |
019990
|
39 |
AplayerBox, |
146176
|
40 |
MyVideo, |
d3f921
|
41 |
}, |
I |
42 |
data() { |
|
43 |
return { |
af029b
|
44 |
miniVideoPlayData: null, |
I |
45 |
showMiniBox: false |
d3f921
|
46 |
} |
56a4b8
|
47 |
}, |
d629d9
|
48 |
methods: { |
105729
|
49 |
showMyVideo(param) { |
af029b
|
50 |
this.miniVideoPlayData = param; |
I |
51 |
console.log("开启mini盒子"); |
|
52 |
|
|
53 |
|
105729
|
54 |
this.$refs.MyVideo.showModal(param); |
af029b
|
55 |
if (!this.showMiniBox) { |
I |
56 |
this.$notification.info({ |
|
57 |
message: '这里是盒子的最小化啦..', |
|
58 |
placement: 'bottomRight', |
|
59 |
}); |
|
60 |
this.showMiniBox = true; |
|
61 |
} |
146176
|
62 |
}, |
d629d9
|
63 |
// 下载文件 |
L |
64 |
down: function() { |
|
65 |
console.log(111); |
|
66 |
this.$axios({ |
|
67 |
"url": "http://192.168.40.149:9000/test2/save/%E6%B5%8B%E8%AF%95%E9%83%A8/%E6%96%87%E4%BB%B6%E7%BB%84/OIP-C.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minioadmin/20220113/us-east-1/s3/aws4_request&X-Amz-Date=20220113T085350Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=36db32d3fe577716ada0655379327e837efdfd3a133be6051281ae9eaad8e04f", |
|
68 |
"method": "get", |
|
69 |
"responseType": "blob" |
|
70 |
|
|
71 |
}).then((res) => { |
|
72 |
|
|
73 |
let blob = new Blob([res.data], { |
|
74 |
type: "application/octet-stream" |
|
75 |
}); |
|
76 |
let url = window.URL.createObjectURL(blob) |
|
77 |
let link = document.createElement('a') |
41b36f
|
78 |
link.download = "inleft.jpg" |
I |
79 |
|
d629d9
|
80 |
link.style.display = 'none' |
L |
81 |
link.href = url |
|
82 |
document.body.appendChild(link) |
|
83 |
link.click() |
|
84 |
}) |
|
85 |
} |
|
86 |
|
|
87 |
} |
d3f921
|
88 |
} |
I |
89 |
</script> |
|
90 |
|
|
91 |
<style lang="less"> |
41b36f
|
92 |
.app { |
ad2b70
|
93 |
.ant-layout {} |
L |
94 |
|
|
95 |
.ant-layout-header { |
d629d9
|
96 |
backdrop-filter: saturate(180%) blur(1em); |
019990
|
97 |
-webkit-backdrop-filter: blur(5px); |
d629d9
|
98 |
background: linear-gradient(90deg, rgba(247, 149, 51, 0.101961) 0, rgba(243, 112, 85, 0.101961) 15%, rgba(239, 78, 123, 0.101961) 30%, rgba(161, 102, 171, 0.101961) 44%, rgba(80, 115, 184, 0.101961) 58%, rgba(16, 152, 173, 0.101961) 72%, rgba(7, 179, 155, 0.101961) 86%, rgba(109, 186, 130, 0.101961) 100%); |
d3f921
|
99 |
} |
I |
100 |
|
|
101 |
.ant-layout-footer { |
ad2b70
|
102 |
background-color: #edf1f299; |
L |
103 |
padding: 0px; |
41b36f
|
104 |
padding-top: 20px; |
ad2b70
|
105 |
|
L |
106 |
p { |
|
107 |
margin: auto; |
|
108 |
color: #757575; |
|
109 |
} |
|
110 |
|
|
111 |
a { |
|
112 |
opacity: 0.8; |
|
113 |
color: #757575; |
|
114 |
} |
d3f921
|
115 |
} |
I |
116 |
|
f9c38e
|
117 |
.ant-timeline-item-head { |
I |
118 |
background-color: transparent !important; |
|
119 |
} |
|
120 |
|
d3f921
|
121 |
} |
I |
122 |
|
|
123 |
span, |
|
124 |
p { |
|
125 |
font-size: 17px; |
|
126 |
letter-spacing: 0.8px; |
ad2b70
|
127 |
line-height: 22px; |
L |
128 |
} |
019990
|
129 |
|
aab811
|
130 |
.scrolling-navbar { |
019990
|
131 |
will-change: background, padding, height; |
I |
132 |
-webkit-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out; |
|
133 |
transition: background 0.5s ease-in-out, padding 0.5s ease-in-out; |
aab811
|
134 |
} |
ad2b70
|
135 |
|
L |
136 |
.fade { |
|
137 |
-webkit-animation-name: "fade"; |
|
138 |
-webkit-animation-duration: 2s; |
|
139 |
-webkit-animation-iteration-count: 1; |
d3f921
|
140 |
} |
I |
141 |
|
|
142 |
.fadeInLeft { |
|
143 |
-webkit-animation-name: "fadeInLeft"; |
|
144 |
-webkit-animation-duration: 1s; |
|
145 |
-webkit-animation-iteration-count: 1; |
|
146 |
} |
|
147 |
|
|
148 |
.fadeInRight { |
|
149 |
-webkit-animation-name: "fadeInRight"; |
|
150 |
-webkit-animation-duration: 1s; |
|
151 |
-webkit-animation-iteration-count: 1; |
|
152 |
} |
|
153 |
|
|
154 |
|
|
155 |
// 动画 |
|
156 |
@-webkit-keyframes fadeInLeft { |
|
157 |
0% { |
|
158 |
opacity: 0; |
|
159 |
-webkit-transform: translateX(-120px); |
|
160 |
} |
|
161 |
|
|
162 |
100% { |
|
163 |
opacity: 1; |
|
164 |
-webkit-transform: translateX(0); |
|
165 |
} |
|
166 |
} |
|
167 |
|
|
168 |
@keyframes fadeInLeft { |
|
169 |
0% { |
|
170 |
opacity: 0; |
|
171 |
transform: translateX(-120px); |
|
172 |
} |
|
173 |
|
|
174 |
100% { |
|
175 |
opacity: 1; |
|
176 |
transform: translateX(0); |
|
177 |
} |
|
178 |
} |
|
179 |
|
|
180 |
@-webkit-keyframes fadeInRight { |
|
181 |
0% { |
|
182 |
opacity: 0; |
|
183 |
-webkit-transform: translateX(120px); |
|
184 |
} |
|
185 |
|
|
186 |
100% { |
|
187 |
opacity: 1; |
|
188 |
-webkit-transform: translateX(0); |
|
189 |
} |
|
190 |
} |
|
191 |
|
|
192 |
@keyframes fadeInRight { |
|
193 |
0% { |
|
194 |
opacity: 0; |
|
195 |
transform: translateX(120px); |
|
196 |
} |
|
197 |
|
|
198 |
100% { |
|
199 |
opacity: 1; |
|
200 |
transform: translateX(0); |
|
201 |
} |
|
202 |
} |
|
203 |
|
|
204 |
@-webkit-keyframes fade { |
|
205 |
0% { |
|
206 |
opacity: 0; |
|
207 |
} |
|
208 |
|
|
209 |
100% { |
|
210 |
opacity: 1; |
|
211 |
} |
|
212 |
} |
|
213 |
|
|
214 |
@keyframes fade { |
|
215 |
0% { |
|
216 |
opacity: 0; |
|
217 |
} |
|
218 |
|
|
219 |
100% { |
|
220 |
opacity: 1; |
|
221 |
} |
|
222 |
} |
|
223 |
</style> |