inleft
2022-01-15 41b36f013d4103ffc59fd58feb6b6177ee5b04f7
commit | author | age
d3f921 1 <template>
41b36f 2     <a-layout>
I 3         <a-layout-header :style="{position:'fixed',height:'60px',marginBottom:'35px',zIndex: 999, width: '100%' }">
4             <tag-Header />
5         </a-layout-header>
6
7         <router-view class="fade"></router-view>
8
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 {
d629d9 63             // background-color: #ffffff;
L 64             backdrop-filter: saturate(180%) blur(1em);
65             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 66         }
I 67
68         .ant-layout-footer {
ad2b70 69             background-color: #edf1f299;
L 70             padding: 0px;
41b36f 71             padding-top: 20px;
ad2b70 72
L 73             p {
74                 margin: auto;
75                 color: #757575;
76             }
77
78             a {
79                 opacity: 0.8;
80                 color: #757575;
81             }
d3f921 82         }
I 83
84     }
85
86     span,
87     p {
88         font-size: 17px;
89         letter-spacing: 0.8px;
ad2b70 90         line-height: 22px;
L 91     }
92
93     .fade {
94         -webkit-animation-name: "fade";
95         -webkit-animation-duration: 2s;
96         -webkit-animation-iteration-count: 1;
d3f921 97     }
I 98
99     .fadeInLeft {
100         -webkit-animation-name: "fadeInLeft";
101         -webkit-animation-duration: 1s;
102         -webkit-animation-iteration-count: 1;
103     }
104
105     .fadeInRight {
106         -webkit-animation-name: "fadeInRight";
107         -webkit-animation-duration: 1s;
108         -webkit-animation-iteration-count: 1;
109     }
110
111
112     // 动画
113     @-webkit-keyframes fadeInLeft {
114         0% {
115             opacity: 0;
116             -webkit-transform: translateX(-120px);
117         }
118
119         100% {
120             opacity: 1;
121             -webkit-transform: translateX(0);
122         }
123     }
124
125     @keyframes fadeInLeft {
126         0% {
127             opacity: 0;
128             transform: translateX(-120px);
129         }
130
131         100% {
132             opacity: 1;
133             transform: translateX(0);
134         }
135     }
136
137     @-webkit-keyframes fadeInRight {
138         0% {
139             opacity: 0;
140             -webkit-transform: translateX(120px);
141         }
142
143         100% {
144             opacity: 1;
145             -webkit-transform: translateX(0);
146         }
147     }
148
149     @keyframes fadeInRight {
150         0% {
151             opacity: 0;
152             transform: translateX(120px);
153         }
154
155         100% {
156             opacity: 1;
157             transform: translateX(0);
158         }
159     }
160
161     @-webkit-keyframes fade {
162         0% {
163             opacity: 0;
164         }
165
166         100% {
167             opacity: 1;
168         }
169     }
170
171     @keyframes fade {
172         0% {
173             opacity: 0;
174         }
175
176         100% {
177             opacity: 1;
178         }
179     }
180 </style>