-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
389 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { request } from '@/utils/axios' | ||
import { request, requestWithoutLoading } from '@/utils/axios' | ||
|
||
// 歌曲评论 | ||
export const getSongComment = params => request.get(`/comment/music`, { params }) | ||
export const getSongComment = (params, option) => requestWithoutLoading.get(`/comment/music`, { params, ...option }) | ||
|
||
// 热门评论 | ||
export const getHotComment = params => request.get(`/comment/hot`, { params }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { request } from '@/utils/axios' | ||
import { request, requestWithoutLoading } from '@/utils/axios' | ||
|
||
// 获取歌单 | ||
export const getPlaylists = (params) => request.get('/top/playlist', { params }) | ||
// 精品歌单 | ||
export const getTopPlaylists = (params) => request.get('/top/playlist/highquality', { params }) | ||
export const getTopPlaylists = (params) => request.get('/top/playlist/highquality', { params }) | ||
// 获取相似歌单 | ||
export const getSimiPlaylists = (id, option) => requestWithoutLoading.get(`/simi/playlist?id=${id}`, option) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<template> | ||
<div | ||
@click="onClick" | ||
class="horizontal-card" | ||
> | ||
<div class="img-wrap"> | ||
<img :src="$utils.genImgUrl(img, 50)"> | ||
<slot name="img-mask"></slot> | ||
</div> | ||
<div class="content"> | ||
<div class="name">{{name}}</div> | ||
<div class="desc"> | ||
<slot name="desc"> | ||
{{desc}} | ||
</slot> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script type="text/ecmascript-6"> | ||
export default { | ||
name: 'Card', | ||
props: ['img', 'name', 'desc'], | ||
methods: { | ||
onClick(e) { | ||
this.$emit('click', e) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.horizontal-card { | ||
display: flex; | ||
padding: 6px 4px; | ||
cursor: pointer; | ||
&:hover { | ||
background: var(--light-bgcolor); | ||
} | ||
.img-wrap { | ||
position: relative; | ||
@include img-wrap(50px); | ||
img { | ||
border-radius: 4px; | ||
} | ||
} | ||
.content { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
margin-left: 8px; | ||
overflow: hidden; | ||
.name { | ||
margin-bottom: 4px; | ||
@include text-ellipsis(); | ||
} | ||
.desc { | ||
font-size: $font-size-sm; | ||
color: var(--font-color-grey-shallow); | ||
@include text-ellipsis(); | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<div | ||
class="loading" | ||
v-loading="loading" | ||
element-loading-text="载入中" | ||
element-loading-spinner="el-icon-loading" | ||
element-loading-background="transparent" | ||
></div> | ||
</template> | ||
|
||
<script type="text/ecmascript-6"> | ||
export default { | ||
name: 'Loading', | ||
props: ['loading'] | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.loading { | ||
height: 200px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -252,7 +252,7 @@ export default { | |
img { | ||
&.blur { | ||
filter: blur(4px); | ||
filter: blur(2px); | ||
} | ||
} | ||
|
Oops, something went wrong.