inleft
2022-08-16 c14e3278893b9dd1022aa488cee53a888c2a4c7e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<template>
    <a-layout>
        <a-layout-header class="scrolling-navbar"
            :style="{position:'fixed',height:'60px',marginBottom:'35px',zIndex: 999, width: '100%' }">
            <tag-Header />
        </a-layout-header>
 
        <keep-alive>
            <router-view @showMyVideo="showMyVideo" @detailBackAction="detailBackAction"></router-view>
        </keep-alive>
 
        <a-layout-footer>
            <AplayerBox />
            <tagFooter />
            <MyVideo ref="MyVideo" @closeMyVideo="closeMyVideo"/>
 
            <a-button v-if="miniVideoPlayData!=null && showMiniBox" class="fadeInRight"
                style="position: fixed;right: 0px;bottom: 130px;" @click="showMyVideo(miniVideoPlayData)">
                {{miniBoxContent}}
                <a-icon type="youtube" style="transform: scale(1.5);" />
            </a-button>
        </a-layout-footer>
 
        <a-back-top>
            <a-icon type="up" />回到顶部
        </a-back-top>
 
    </a-layout>
</template>
 
<script>
    // Dplayer Api地址
    // http://dplayer.js.org/ 
    import tagHeader from "../fixed/header.vue"
    import tagFooter from "../fixed/footer.vue"
    import AplayerBox from "../mini/Aplayer.vue"
    import MyVideo from "../group/MyVideo.vue"
    export default {
        components: {
            tagHeader,
            tagFooter,
            AplayerBox,
            MyVideo,
        },
        data() {
            return {
                miniVideoPlayData: null,
                firstQuery: true,
                showMiniBox: false,
                miniBoxContent: "视频盒子",
            }
        },
        methods: {
            showMyVideo(param) {
                this.miniVideoPlayData = param;
                this.$refs.MyVideo.showModal(param);
            },
            detailBackAction(param) {
                this.miniVideoPlayData = param;
                this.closeMyVideo()
            },
            closeMyVideo() {
                if (this.firstQuery) {
                    this.firstQuery = !this.firstQuery;
                    this.showMiniBox = !this.showMiniBox;
                    this.$notification.info({
                        message: '视频盒子最小化啦..',
                        placement: 'bottomRight',
                    });
 
                    setTimeout(() => {
                        this.miniBoxContent = "";
                    }, 6000);
                }
            },
            // 下载文件
            down: function() {
                console.log(111);
                this.$axios({
                    "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",
                    "method": "get",
                    "responseType": "blob"
 
                }).then((res) => {
 
                    let blob = new Blob([res.data], {
                        type: "application/octet-stream"
                    });
                    let url = window.URL.createObjectURL(blob)
                    let link = document.createElement('a')
                    link.download = "inleft.jpg"
 
                    link.style.display = 'none'
                    link.href = url
                    document.body.appendChild(link)
                    link.click()
                })
            }
 
        }
    }
</script>
 
<style lang="less">
    .app {
        .ant-layout {}
 
        .ant-layout-header {
            backdrop-filter: saturate(180%) blur(1em);
            -webkit-backdrop-filter: blur(5px);
            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%);
        }
 
        .ant-layout-footer {
            background-color: #edf1f299;
            padding: 0px;
            padding-top: 20px;
 
            p {
                margin: auto;
                color: #757575;
            }
 
            a {
                opacity: 0.8;
                color: #757575;
            }
        }
 
        .ant-timeline-item-head {
            background-color: transparent !important;
        }
 
    }
 
    span,
    p {
        font-size: 17px;
        letter-spacing: 0.8px;
        line-height: 22px;
    }
 
    .scrolling-navbar {
        will-change: background, padding, height;
        -webkit-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
        transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
    }
 
    .fade {
        -webkit-animation-name: "fade";
        -webkit-animation-duration: 2s;
        -webkit-animation-iteration-count: 1;
    }
    
     
 
    .fadeInLeft {
        -webkit-animation-name: "fadeInLeft";
        -webkit-animation-duration: 1s;
        -webkit-animation-iteration-count: 1;
    }
 
    .fadeInRight {
        -webkit-animation-name: "fadeInRight";
        -webkit-animation-duration: 1s;
        -webkit-animation-iteration-count: 1;
    }
 
 
    // 动画
    @-webkit-keyframes fadeInLeft {
        0% {
            opacity: 0;
            -webkit-transform: translateX(-120px);
        }
 
        100% {
            opacity: 1;
            -webkit-transform: translateX(0);
        }
    }
 
    @keyframes fadeInLeft {
        0% {
            opacity: 0;
            transform: translateX(-120px);
        }
 
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
 
    @-webkit-keyframes fadeInRight {
        0% {
            opacity: 0;
            -webkit-transform: translateX(120px);
        }
 
        100% {
            opacity: 1;
            -webkit-transform: translateX(0);
        }
    }
 
    @keyframes fadeInRight {
        0% {
            opacity: 0;
            transform: translateX(120px);
        }
 
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
 
    @-webkit-keyframes fade {
        0% {
            opacity: 0;
        }
 
        100% {
            opacity: 1;
        }
    }
 
    @keyframes fade {
        0% {
            opacity: 0;
        }
 
        100% {
            opacity: 1;
        }
    }
</style>