Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zacharyzlj
Yz Music
提交
508935f3
Y
Yz Music
项目概览
zacharyzlj
/
Yz Music
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
Yz Music
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
508935f3
编写于
2月 20, 2021
作者:
Z
Zachary
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: add footer
* ranking and new disc page add loading effect
上级
22a629e6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
119 addition
and
5 deletion
+119
-5
src/App.vue
src/App.vue
+3
-1
src/components/common/BottomFooter.vue
src/components/common/BottomFooter.vue
+108
-0
src/views/musicLibrary/NewDisc.vue
src/views/musicLibrary/NewDisc.vue
+3
-1
src/views/musicLibrary/Ranking.vue
src/views/musicLibrary/Ranking.vue
+5
-3
未找到文件。
src/App.vue
浏览文件 @
508935f3
...
...
@@ -2,6 +2,7 @@
<back-top
/>
<nav-bar
/>
<router-view
/>
<bottom-footer
/>
<player
/>
</
template
>
...
...
@@ -9,10 +10,11 @@
import
NavBar
from
"
components/content/NavBar
"
;
import
BackTop
from
"
components/common/BackTop
"
;
import
Player
from
"
components/common/Player
"
;
import
BottomFooter
from
"
components/common/BottomFooter
"
;
export
default
{
name
:
"
#app
"
,
components
:
{
NavBar
,
BackTop
,
Player
},
components
:
{
NavBar
,
BackTop
,
BottomFooter
,
Player
},
};
</
script
>
...
...
src/components/common/BottomFooter.vue
0 → 100644
浏览文件 @
508935f3
<
template
>
<div
class=
"footer"
role=
"footer"
>
<div
class=
"section_inner"
>
<div
class=
"footer_info"
>
<div
class=
"footer_platform"
>
<h3
class=
"footer_tit"
>
链接
</h3>
<ul
class=
"footer_platform_list"
>
<li
class=
"footer_platform_list__item"
>
<a
href=
"https://github.com/zlj-zz/yz-music"
target=
"_blank"
class=
"js_other_link"
>
项目GitHub地址
</a
>
</li>
<li
class=
"footer_platform_list__item"
>
<a
href=
"http://blog.zacharyzlj.cn/"
target=
"_blank"
class=
"js_other_link"
>
博客地址
</a
>
</li>
<li
class=
"footer_platform_list__item"
>
<a
href=
"https://blog.csdn.net/qq_38410494?spm=1011.2124.3001.5343"
target=
"_blank"
class=
"js_other_link"
>
CSDN
</a
>
</li>
</ul>
</div>
</div>
<div
class=
"footer_copyright"
>
<p>
Copyright © 2020 -
{{
date
}}
</p>
<p>
本项目仅学习用途
</p>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
computed
:
{
date
()
{
return
new
Date
().
getFullYear
();
},
},
};
</
script
>
<
style
scoped
>
h3
,
li
,
p
,
ul
{
margin
:
0
;
padding
:
0
;
}
.section_inner
{
max-width
:
1200px
;
margin
:
0
auto
;
position
:
relative
;
}
.footer
{
color
:
#666
;
background-color
:
#f2f2f2
;
clear
:
both
;
}
.footer_info
{
overflow
:
hidden
;
/*border-bottom: 1px solid #353535;*/
position
:
relative
;
}
.footer_platform
{
margin
:
0
0
0
150px
;
}
.footer_tit
{
font-size
:
18px
;
font-weight
:
400
;
padding
:
20px
0
10px
;
}
.footer_platform_list
{
margin-left
:
-25px
;
}
.footer_platform_list__item
{
float
:
left
;
min-width
:
100px
;
margin
:
0
5px
12px
0
;
text-indent
:
25px
;
}
.footer_copyright
{
text-align
:
center
;
line-height
:
28px
;
/*padding: 24px 0;*/
padding-bottom
:
24px
;
}
.footer_copyright
{
font-size
:
12px
;
}
.footer
a
{
color
:
#666
;
}
</
style
>
src/views/musicLibrary/NewDisc.vue
浏览文件 @
508935f3
...
...
@@ -11,7 +11,7 @@
</div>
</div>
<div
class=
"mod_part_detail"
>
<div
class=
"mod_part_detail"
v-loading=
"loading"
>
<div
class=
"mod_playlist mod_playlist--all"
>
<ul
class=
"playlist__list"
id=
"album_list"
>
<li
...
...
@@ -85,6 +85,7 @@ import { createAlbum } from "common/utils";
export
default
{
data
()
{
return
{
loading
:
true
,
limit
:
20
,
page
:
0
,
selectArea
:
albumAreas
.
ALL
.
dataId
,
...
...
@@ -117,6 +118,7 @@ export default {
this
.
allAlbums
=
albums
;
this
.
allAlbumsLength
=
albums
.
length
;
this
.
page
=
1
;
this
.
loading
=
false
;
});
},
areaSelect
(
id
)
{
...
...
src/views/musicLibrary/Ranking.vue
浏览文件 @
508935f3
...
...
@@ -117,7 +117,7 @@
>
</div>
<div
class=
"mod_songlist"
>
<div
class=
"mod_songlist"
v-loading=
"loading"
>
<ul
class=
"songlist__header"
>
<li
class=
"songlist__edit sprite"
>
<input
type=
"checkbox"
class=
"songlist__checkbox js_check_all"
/>
...
...
@@ -216,6 +216,7 @@ import { isDef, createSong, playSonglist } from "common/utils";
export
default
{
data
()
{
return
{
loading
:
true
,
topRankingtype
:
[
{
name
:
"
飙升榜
"
,
dataId
:
"
19723756
"
},
{
name
:
"
新歌榜
"
,
dataId
:
"
3779629
"
},
...
...
@@ -261,7 +262,7 @@ export default {
},
updatedTopList
()
{
getPlaylistDetial
(
this
.
seletedType
).
then
((
res
)
=>
{
console
.
log
(
res
);
//
console.log(res);
let
trackIds
=
res
.
data
.
playlist
.
trackIds
;
let
ids
=
trackIds
.
map
(({
id
})
=>
id
);
getSongDetail
(
ids
).
then
((
res
)
=>
{
...
...
@@ -284,8 +285,9 @@ export default {
}
songs
.
push
(
song
);
}
console
.
log
(
songs
);
//
console.log(songs);
this
.
listDatas
=
songs
;
this
.
loading
=
false
;
});
});
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录