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