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