lijh
2022-01-19 06ee76d0a83854ad7a044689627e0f00a66e5ce5
commit | author | age
019990 1 <template>
I 2     <div >
3         <aplayer :audio="audio"  fixed  style="z-index: 10;" :preload="preload"/>
4     </div>
5 </template>
6
7 <script>
8     import APlayer from '@moefe/vue-aplayer';
9     
10     export default {
11         data() {
12             return {
13                 preload:"none",
14                 audio: {
15                     name: 'Moonwisher',
16                     artist: 'Kan R. Gao',
1ad93b 17                     // url: 'http://music.163.com/song/media/outer/url?id=1645104.mp3',
I 18                     url: '/moon.mp3',
019990 19                     cover: 'http://p2.music.126.net/0AYWra9rCzgeprGp6OUyUw==/868614185993997.jpg?param=130y130',
I 20                 },
21             };
22         },
23     };
24     // var ap = new APlayer({
25     //                    element: document.getElementById('player1'),
26     //                    narrow: false,
27     //                    autoplay: false,
28     //                    listFolded:true,
29     //                    audio:[
30
31     //                            {
32     //                             title: 'Wish My Life Away',
33     //                             author: 'Kan R. Gao / Laura Shigihara',
34     //                             url: 'http://music.163.com/song/media/outer/url?id=529668945.mp3',
35     //                             pic: 'http://p1.music.126.net/2VSSz_JLHtggZqmquFO_tw==/109951163106305809.jpg?param=130y130'
36     //                            }, 
37     //                            {
38     //                                title: 'Moonwisher',
39     //                                author: 'Kan R. Gao',
40     //                                url: 'http://music.163.com/song/media/outer/url?id=1645104.mp3',
41     //                                pic: 'http://p2.music.126.net/0AYWra9rCzgeprGp6OUyUw==/868614185993997.jpg?param=130y130'
42     //                            },
43     //                            {
44     //                             title: 'For River - Piano (Johnny\'s Version)',
45     //                             author: 'Kan R. Gao',
46     //                             url: 'http://music.163.com/song/media/outer/url?id=1645112.mp3',
47     //                             pic: 'http://p2.music.126.net/0AYWra9rCzgeprGp6OUyUw==/868614185993997.jpg?param=130y130'
48     //                            },
49     //                             {
50     //                                title: '花火が瞬く夜に',
51     //                                author: '羽肿',
52     //                                url: 'http://music.163.com/song/media/outer/url?id=434902428.mp3',
53     //                                pic: 'http://p1.music.126.net/f7Nd9FSzVZMkTPWDW_rnOg==/736672800839982.jpg?param=130y130'
54     //                            }
55     //                        ]
56     //                     });
57 </script>
58
59 <style>
60 </style>