File tree Expand file tree Collapse file tree 7 files changed +16
-14
lines changed Expand file tree Collapse file tree 7 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ export default memo(function HYThemeCover(props) {
29
29
< div className = "cover-bottom text-nowrap" >
30
30
{ info . name }
31
31
</ div >
32
- < div className = "cover-source" >
32
+ { /* <div className="cover-source">
33
33
by {info.copywriter || info.creator.nickname}
34
- </ div >
34
+ </div> */ }
35
35
</ ThemeCoverWrapper >
36
36
)
37
37
} )
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ export const getTopAlbumsAction = (page) => {
33
33
getTopAlbums ( 30 , ( page - 1 ) * 30 ) . then ( res => {
34
34
dispatch ( changeTopAlbumAction ( res ) ) ;
35
35
dispatch ( changeTopTotalAction ( res . total ) ) ;
36
+
37
+ console . log ( res )
36
38
} )
37
39
}
38
40
}
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ export default memo(function HYRankingList() {
22
22
23
23
// hooks
24
24
useEffect ( ( ) => {
25
- dispatch ( getTopData ( 0 ) ) ;
26
- dispatch ( getTopData ( 2 ) ) ;
27
- dispatch ( getTopData ( 3 ) ) ;
25
+ dispatch ( getTopData ( 19723756 ) ) ;
26
+ dispatch ( getTopData ( 3779629 ) ) ;
27
+ dispatch ( getTopData ( 2884035 ) ) ;
28
28
} , [ dispatch ] )
29
29
30
30
return (
Original file line number Diff line number Diff line change @@ -72,13 +72,13 @@ export const getTopData = (idx) => {
72
72
return dispatch => {
73
73
getTopList ( idx ) . then ( res => {
74
74
switch ( idx ) {
75
- case 0 :
75
+ case 19723756 :
76
76
dispatch ( changeNewListAction ( res ) ) ;
77
77
break ;
78
- case 2 :
78
+ case 3779629 :
79
79
dispatch ( changeOriginListAction ( res ) ) ;
80
80
break ;
81
- case 3 :
81
+ case 2884035 :
82
82
dispatch ( changeUpListAction ( res ) ) ;
83
83
break ;
84
84
default :
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export function getHotAlbums() {
8
8
9
9
export function getTopAlbums ( limit , offset ) {
10
10
return request ( {
11
- url : "/top/ album" ,
11
+ url : "/album/new " ,
12
12
params : {
13
13
limit,
14
14
offset
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export default function request(option) {
4
4
return new Promise ( ( resolve , reject ) => {
5
5
// 1.创建axios的实例
6
6
const instance = originAxios . create ( {
7
- baseURL : 'http://123.207.32.32:9001 /' ,
7
+ baseURL : 'http://123.207.32.32:9002 /' ,
8
8
timeout : 10000
9
9
} ) ;
10
10
Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ export function getHotRecommend() {
14
14
15
15
export function getNewAlbum ( limit , offset ) {
16
16
return request ( {
17
- url : "/top/ album" ,
17
+ url : "/album/new " ,
18
18
params : {
19
19
limit,
20
20
offset
21
21
}
22
22
} )
23
23
}
24
24
25
- export function getTopList ( idx ) {
25
+ export function getTopList ( id ) {
26
26
return request ( {
27
- url : "/top/list " ,
27
+ url : "/playlist/detail " ,
28
28
params : {
29
- idx
29
+ id
30
30
}
31
31
} )
32
32
}
You can’t perform that action at this time.
0 commit comments