inleft
2022-01-21 b505f3648a10dd998ae9fe7a6edb1bf125d7d6a6
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
b505f3 8         <router-view></router-view>
41b36f 9
I 10         <a-layout-footer>
019990 11             <AplayerBox />
41b36f 12             <tagFooter />
I 13         </a-layout-footer>
b505f3 14         
I 15         <a-back-top>
16             <a-icon type="up" />回到顶部
17         </a-back-top>
18
41b36f 19     </a-layout>
d3f921 20 </template>
I 21
22 <script>
41b36f 23     import tagHeader from "../fixed/header.vue"
I 24     import tagFooter from "../fixed/footer.vue"
019990 25     import AplayerBox from "../mini/Aplayer.vue"
d3f921 26     export default {
I 27         components: {
41b36f 28             tagHeader,
I 29             tagFooter,
019990 30             AplayerBox,
d3f921 31         },
I 32         data() {
33             return {
34
35             }
56a4b8 36         },
d629d9 37         methods: {
b505f3 38
d629d9 39             // 下载文件
L 40             down: function() {
41                 console.log(111);
42                 this.$axios({
43                     "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",
44                     "method": "get",
45                     "responseType": "blob"
46
47                 }).then((res) => {
48
49                     let blob = new Blob([res.data], {
50                         type: "application/octet-stream"
51                     });
52                     let url = window.URL.createObjectURL(blob)
53                     let link = document.createElement('a')
41b36f 54                     link.download = "inleft.jpg"
I 55
d629d9 56                     link.style.display = 'none'
L 57                     link.href = url
58                     document.body.appendChild(link)
59                     link.click()
60                 })
61             }
62
63         }
d3f921 64     }
I 65 </script>
66
67 <style lang="less">
41b36f 68     .app {
ad2b70 69         .ant-layout {}
L 70
71         .ant-layout-header {
d629d9 72             backdrop-filter: saturate(180%) blur(1em);
019990 73             -webkit-backdrop-filter: blur(5px);
d629d9 74             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 75         }
I 76
77         .ant-layout-footer {
ad2b70 78             background-color: #edf1f299;
L 79             padding: 0px;
41b36f 80             padding-top: 20px;
ad2b70 81
L 82             p {
83                 margin: auto;
84                 color: #757575;
85             }
86
87             a {
88                 opacity: 0.8;
89                 color: #757575;
90             }
d3f921 91         }
I 92
93     }
94
95     span,
96     p {
97         font-size: 17px;
98         letter-spacing: 0.8px;
ad2b70 99         line-height: 22px;
L 100     }
019990 101
aab811 102     .scrolling-navbar {
019990 103         will-change: background, padding, height;
I 104         -webkit-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
105         transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
aab811 106     }
ad2b70 107
L 108     .fade {
109         -webkit-animation-name: "fade";
110         -webkit-animation-duration: 2s;
111         -webkit-animation-iteration-count: 1;
d3f921 112     }
I 113
114     .fadeInLeft {
115         -webkit-animation-name: "fadeInLeft";
116         -webkit-animation-duration: 1s;
117         -webkit-animation-iteration-count: 1;
118     }
119
120     .fadeInRight {
121         -webkit-animation-name: "fadeInRight";
122         -webkit-animation-duration: 1s;
123         -webkit-animation-iteration-count: 1;
124     }
125
126
127     // 动画
128     @-webkit-keyframes fadeInLeft {
129         0% {
130             opacity: 0;
131             -webkit-transform: translateX(-120px);
132         }
133
134         100% {
135             opacity: 1;
136             -webkit-transform: translateX(0);
137         }
138     }
139
140     @keyframes fadeInLeft {
141         0% {
142             opacity: 0;
143             transform: translateX(-120px);
144         }
145
146         100% {
147             opacity: 1;
148             transform: translateX(0);
149         }
150     }
151
152     @-webkit-keyframes fadeInRight {
153         0% {
154             opacity: 0;
155             -webkit-transform: translateX(120px);
156         }
157
158         100% {
159             opacity: 1;
160             -webkit-transform: translateX(0);
161         }
162     }
163
164     @keyframes fadeInRight {
165         0% {
166             opacity: 0;
167             transform: translateX(120px);
168         }
169
170         100% {
171             opacity: 1;
172             transform: translateX(0);
173         }
174     }
175
176     @-webkit-keyframes fade {
177         0% {
178             opacity: 0;
179         }
180
181         100% {
182             opacity: 1;
183         }
184     }
185
186     @keyframes fade {
187         0% {
188             opacity: 0;
189         }
190
191         100% {
192             opacity: 1;
193         }
194     }
195 </style>