|
@@ -9,7 +9,7 @@ import Header from "./components/Header";
|
|
|
import Footer from "./components/Footer";
|
|
|
import ToTop from './components/BackTop';
|
|
|
import Router from './router';
|
|
|
-import APlayer from 'aplayer';
|
|
|
+// import APlayer from 'aplayer';
|
|
|
import 'aplayer/dist/APlayer.min.css';
|
|
|
import axios from "axios";
|
|
|
|
|
@@ -36,23 +36,23 @@ class App extends PureComponent {
|
|
|
}
|
|
|
|
|
|
getMuisic(){
|
|
|
- axios.get('/music/music/v1/list').then((res) => {
|
|
|
- if(res.models.length > 0){
|
|
|
- const options = {
|
|
|
- container: document.getElementById('player'),
|
|
|
- fixed: true,
|
|
|
- theme: '#fe9600',
|
|
|
- listMaxHeight: '300px',
|
|
|
- listFolded: false,
|
|
|
- lrcType: 3,
|
|
|
- audio:res.models
|
|
|
- };
|
|
|
- const ap = new APlayer(options);
|
|
|
- ap.on('ended', function () {
|
|
|
- console.log('player ended');
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
+ // axios.get('/music/music/v1/list').then((res) => {
|
|
|
+ // if(res.models.length > 0){
|
|
|
+ // const options = {
|
|
|
+ // container: document.getElementById('player'),
|
|
|
+ // fixed: true,
|
|
|
+ // theme: '#fe9600',
|
|
|
+ // listMaxHeight: '300px',
|
|
|
+ // listFolded: false,
|
|
|
+ // lrcType: 3,
|
|
|
+ // audio:res.models
|
|
|
+ // };
|
|
|
+ // const ap = new APlayer(options);
|
|
|
+ // ap.on('ended', function () {
|
|
|
+ // console.log('player ended');
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
}
|
|
|
|