efront 3.27.0 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/kugou/home.html +7 -2
- package/apps/kugou/home.js +1 -0
- package/apps/kugou/home.less +3 -6
- package/apps/kugou/main.js +1 -1
- package/apps/kugou/search/search.html +2 -2
- package/apps/kugou/search/search.less +12 -30
- package/apps/kugou/search.html +6 -0
- package/apps/kugou/singer/keywords.html +1 -0
- package/apps/kugou/singer/keywords.js +2 -0
- package/apps/kugou/singer/keywords.less +39 -4
- package/coms/basic/Field.js +0 -1
- package/coms/basic/Table.js +1 -0
- package/coms/basic/encodePack.js +2 -2
- package/coms/basic/getIndexFromOrderedArray.js +3 -3
- package/coms/basic/isArrayLike.js +1 -1
- package/coms/basic_/rest_.js +1 -1
- package/coms/kugou/api.js +1 -1
- package/coms/kugou/bg.js +3 -0
- package/coms/kugou/bg.less +34 -0
- package/coms/kugou/bindScroll.js +30 -15
- package/coms/kugou/buildList.js +1 -1
- package/coms/kugou/buildList.less +3 -11
- package/coms/kugou/buildScroll.js +0 -1
- package/coms/kugou/playList.less +9 -2
- package/coms/kugou/player.js +0 -1
- package/coms/kugou/player.less +6 -4
- package/coms/kugou/song.html +1 -1
- package/coms/kugou/song.js +2 -1
- package/coms/kugou/song.less +10 -7
- package/coms/kugou/titlebar.less +0 -3
- package/coms/reptile/colored_console.js +122 -0
- package/coms/reptile/colors.js +54 -0
- package/coms/zimoli/bindGlobalkey.js +3 -2
- package/coms/zimoli/block.less +0 -35
- package/coms/zimoli/cloneVisible.js +1 -1
- package/coms/zimoli/menu.js +1 -1
- package/coms/zimoli/render.js +27 -26
- package/coms/zimoli/titlebar.js +1 -1
- package/coms/zimoli/titlebar.less +1 -1
- package/coms/zimoli/view.js +1 -1
- package/coms/zimoli/view.less +6 -6
- package/coms/zimoli/zimoli.js +1 -1
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/apps/kugou/home.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<slider elementid=pages class="pages"></slider>
|
|
2
|
-
<titlebar
|
|
2
|
+
<titlebar>
|
|
3
3
|
<tag type=white ng-repeat="t in tags" ng-click="pages.go(t.index)" ng-class="{activate:t===tags.active}">
|
|
4
4
|
<span ng-bind=t.text></span>
|
|
5
5
|
</tag>
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
<icon class="search-icon"></icon>
|
|
9
9
|
</search>
|
|
10
10
|
<btn class="search-btn" ng-click="go('/search/search')">
|
|
11
|
-
<
|
|
11
|
+
<svg class="search-icon" style="fill: currentColor;overflow: hidden;"
|
|
12
|
+
viewBox="0 0 1024 1024" version="1" xmlns="http://www.w3.org/2000/svg" p-id="2144">
|
|
13
|
+
<path
|
|
14
|
+
d="M936 843l-182-182c41-55 64-123 64-194 0-179-146-325-325-325s-325 146-325 325 146 325 325 325c77 0 149-26 207-74l180 180 55-55zM492 728c-143 0-260-117-260-260s117-260 260-260c143 0 260 117 260 260 0 67-25 131-71 179-49 52-116 80-189 80z"
|
|
15
|
+
fill="" p-id="2145"></path>
|
|
16
|
+
</svg>
|
|
12
17
|
</btn>
|
|
13
18
|
</titlebar>
|
package/apps/kugou/home.js
CHANGED
package/apps/kugou/home.less
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.titlebar {
|
|
2
2
|
position: absolute;
|
|
3
3
|
// background-color: #fffb;
|
|
4
4
|
left: 0;
|
|
@@ -8,14 +8,12 @@
|
|
|
8
8
|
height: 44px;
|
|
9
9
|
line-height: 44px;
|
|
10
10
|
font-size: 16px;
|
|
11
|
-
box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .1);
|
|
12
11
|
backdrop-filter: blur(20px);
|
|
13
12
|
z-index: 1;
|
|
14
13
|
padding: 0 10px;
|
|
15
14
|
padding-right: 60px;
|
|
16
15
|
cursor: default;
|
|
17
16
|
white-space: nowrap;
|
|
18
|
-
background-color: #1f4a3bd4;
|
|
19
17
|
|
|
20
18
|
>tag {
|
|
21
19
|
width: 25%;
|
|
@@ -45,7 +43,7 @@
|
|
|
45
43
|
.track() {
|
|
46
44
|
opacity: 1;
|
|
47
45
|
box-shadow: none;
|
|
48
|
-
background-color: #
|
|
46
|
+
background-color: #22a2c433;
|
|
49
47
|
transition: margin-top .2s ease-out;
|
|
50
48
|
}
|
|
51
49
|
|
|
@@ -77,8 +75,7 @@
|
|
|
77
75
|
display: inline-block;
|
|
78
76
|
height: 44px;
|
|
79
77
|
width: 24px;
|
|
80
|
-
vertical-align:
|
|
81
|
-
background: url('http://m.kugou.com/v3/static/images/index/search.png') no-repeat center/ 16px auto;
|
|
78
|
+
vertical-align: top;
|
|
82
79
|
}
|
|
83
80
|
}
|
|
84
81
|
|
package/apps/kugou/main.js
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<icon class="loading" ng-if="result?.loading"></icon>
|
|
6
6
|
<btn ng-click="keyword='';search()">清空</btn>
|
|
7
7
|
</titlebar>
|
|
8
|
-
<div ng-if="!keyword">
|
|
8
|
+
<div ng-if="!keyword" .history>
|
|
9
9
|
<padding class="empty" ng-if="!searchHistory.length">
|
|
10
10
|
搜索历史为空
|
|
11
11
|
</padding>
|
|
12
12
|
<padding ng-repeat="s in searchHistory">
|
|
13
|
-
<btn ng-click="search(s,0)"
|
|
13
|
+
<btn ng-click="search(s,0)"><span ng-bind="s"></span></btn>
|
|
14
14
|
</padding>
|
|
15
15
|
</div>
|
|
16
16
|
<list ng-if="keyword" ng-src="s in result">
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
bottom: 0;
|
|
8
8
|
background: inherit;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
.button {
|
|
11
12
|
padding: 0 10px;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
.empty{
|
|
15
|
+
.empty {
|
|
15
16
|
color: #666;
|
|
16
17
|
display: block;
|
|
17
18
|
padding: 50px 10px;
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
text-align: right;
|
|
29
30
|
vertical-align: middle;
|
|
30
31
|
width: auto;
|
|
32
|
+
|
|
31
33
|
&:after {
|
|
32
34
|
content: "⇵";
|
|
33
35
|
}
|
|
@@ -65,43 +67,23 @@
|
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
position: relative;
|
|
71
|
-
padding: 10px 12px;
|
|
72
|
-
|
|
70
|
+
.titlebar {
|
|
71
|
+
padding: 0 60px;
|
|
73
72
|
>input {
|
|
74
73
|
height: 30px;
|
|
75
74
|
border: none;
|
|
76
75
|
width: 100%;
|
|
77
76
|
border-radius: 3px;
|
|
77
|
+
background: #000c;
|
|
78
78
|
font-size: 14px;
|
|
79
79
|
padding: 0 10px;
|
|
80
|
+
color: #fff;
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
>div+div {
|
|
90
|
-
border-top: 1px solid #ccc;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.result-pad {
|
|
95
|
-
b {
|
|
96
|
-
color: rgb(44, 162, 149);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
>div {
|
|
100
|
-
padding: 10px 12px;
|
|
101
|
-
background-color: #fff;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
>div+div {
|
|
105
|
-
border-top: 1px solid #ccc;
|
|
84
|
+
.history{
|
|
85
|
+
btn{
|
|
86
|
+
background: #5769;
|
|
87
|
+
padding: 0 16px;
|
|
106
88
|
}
|
|
107
89
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg class="icon" style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
|
2
|
+
viewBox="0 0 1024 1024" version="1" xmlns="http://www.w3.org/2000/svg" p-id="2144">
|
|
3
|
+
<path
|
|
4
|
+
d="M936 843l-182-182c41-55 64-123 64-194 0-179-146-325-325-325s-325 146-325 325 146 325 325 325c77 0 149-26 207-74l180 180 55-55zM492 728c-143 0-260-117-260-260s117-260 260-260c143 0 260 117 260 260 0 67-25 131-71 179-49 52-116 80-189 80z"
|
|
5
|
+
fill="" p-id="2145"></path>
|
|
6
|
+
</svg>
|
|
@@ -4,26 +4,61 @@
|
|
|
4
4
|
|
|
5
5
|
>group {
|
|
6
6
|
position: relative;
|
|
7
|
-
border-radius: 4px;
|
|
8
7
|
overflow: hidden;
|
|
9
8
|
display: block;
|
|
10
9
|
border: solid transparent;
|
|
11
10
|
border-width: 6px 0;
|
|
12
|
-
|
|
11
|
+
|
|
12
|
+
>bg {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
13
16
|
>padding {
|
|
14
17
|
height: auto;
|
|
15
18
|
display: block;
|
|
16
19
|
border: solid transparent;
|
|
17
20
|
border-width: 0 6px;
|
|
18
|
-
|
|
21
|
+
|
|
22
|
+
>song {
|
|
19
23
|
line-height: 30px;
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
|
|
28
|
+
@media (max-width:720px) {
|
|
29
|
+
|
|
30
|
+
song .bg {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
song {
|
|
35
|
+
border-radius: 0;
|
|
36
|
+
background: transparent;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
>group {
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
border-width: 6px;
|
|
42
|
+
|
|
43
|
+
padding+padding {
|
|
44
|
+
border-top: 1px solid #9992;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
>group>padding {
|
|
49
|
+
border: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
>group>bg {
|
|
53
|
+
background: #101216;
|
|
54
|
+
border-radius: 4px 0 4px 0;
|
|
55
|
+
display: block;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
24
59
|
@media(min-width:721px) {
|
|
25
60
|
>group {
|
|
26
|
-
|
|
61
|
+
|
|
27
62
|
>padding {
|
|
28
63
|
width: 33.3333%;
|
|
29
64
|
line-height: 40px;
|
package/coms/basic/Field.js
CHANGED
package/coms/basic/Table.js
CHANGED
|
@@ -36,6 +36,7 @@ class Table extends Array {
|
|
|
36
36
|
removeFromList(this.sortFields, field);
|
|
37
37
|
this.sortFields.push(field);
|
|
38
38
|
var sorted = this.sorted || this.source.slice(0);
|
|
39
|
+
if (isEmpty(field.sort)) field.sort = 0;
|
|
39
40
|
field.sort = field.sort > 0 ? -1 : 1;
|
|
40
41
|
this.sorted = sorted.sort(function (a, b) {
|
|
41
42
|
a = seek(a, field.key);
|
package/coms/basic/encodePack.js
CHANGED
|
@@ -77,7 +77,7 @@ function tohuff(buff, result = [], type_limit) {
|
|
|
77
77
|
b.sort(function (m, n) {
|
|
78
78
|
return a[n] - a[m];
|
|
79
79
|
});
|
|
80
|
-
var size = getIndexFromOrderedArray(b, 1, (m, n) => a[m] >= n);
|
|
80
|
+
var size = getIndexFromOrderedArray(b, 1, (m, n) => a[m] >= n, false);
|
|
81
81
|
if (a[b[size]] > 0) size++;
|
|
82
82
|
if (size + 1 > b.length) console.log(a.slice(420), buff.filter(a => a > 512), b.slice(420))
|
|
83
83
|
|
|
@@ -285,7 +285,7 @@ function pack2(buff) {
|
|
|
285
285
|
range_compress,
|
|
286
286
|
other_compress << 5 | el.length,
|
|
287
287
|
],
|
|
288
|
-
el,
|
|
288
|
+
el, e]));
|
|
289
289
|
}
|
|
290
290
|
result = concatTypedArray(result);
|
|
291
291
|
return pack0(buff, result);
|
|
@@ -19,7 +19,7 @@ var defaultIsLE = (sample, search) => isArray(sample) && isArray(search) ? array
|
|
|
19
19
|
* @param {Array} orderArray
|
|
20
20
|
* @param {string|number} searchItem
|
|
21
21
|
*/
|
|
22
|
-
module.exports = function (orderArray, searchItem, isLE = typeof searchItem === "function" ? searchItem : defaultIsLE) {
|
|
22
|
+
module.exports = function (orderArray, searchItem, isLE = typeof searchItem === "function" ? searchItem : defaultIsLE, findEqual = true) {
|
|
23
23
|
for (var cx = 0, dx = orderArray.length, ci = cx + dx >>> 1; cx < dx; ci = cx + dx >>> 1) {
|
|
24
24
|
var orderItem = orderArray[ci];
|
|
25
25
|
if (isLE(orderItem, searchItem)) {
|
|
@@ -28,8 +28,8 @@ module.exports = function (orderArray, searchItem, isLE = typeof searchItem ===
|
|
|
28
28
|
dx = ci;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
if (findEqual && dx <= orderArray.length) {
|
|
32
|
+
var index = dx - 1;
|
|
33
33
|
while (index >= 0 && isLE(searchItem, orderArray[index])) {
|
|
34
34
|
if (orderArray[index] === searchItem) return index;
|
|
35
35
|
index--;
|
package/coms/basic_/rest_.js
CHANGED
|
@@ -8,7 +8,7 @@ function rest_(o, keys) {
|
|
|
8
8
|
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
9
9
|
var map = Object.create(null);
|
|
10
10
|
for (var k of keys) map[k] = true;
|
|
11
|
-
var res =
|
|
11
|
+
var res = {};
|
|
12
12
|
for (var k in o) {
|
|
13
13
|
if (hasOwnProperty.call(o, k)) {
|
|
14
14
|
if (k in map) continue;
|
package/coms/kugou/api.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"singer-info0": "mget:[].singer-songs-list>li singer/info/:id#hash=!id&singer=.singer-name|innerText&name=.song-name|innerText&data=em/innerText"
|
|
17
17
|
},
|
|
18
18
|
"https://www.kugou.com/": {
|
|
19
|
-
"singer-info": "cget:link[rel]+script
|
|
19
|
+
"singer-info": "cget:link[rel]+script singer/info/:id",
|
|
20
20
|
},
|
|
21
21
|
"http://mobilecdn.kugou.com/": {
|
|
22
22
|
"search?keyword": "get:data.info api/v3/search/song?format=json&page=1&pagesize=30&showtype=1"
|
package/coms/kugou/bg.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
& {
|
|
2
|
+
border: 1px solid rgba(0, 0, 0, .1);
|
|
3
|
+
border-radius: inherit;
|
|
4
|
+
position: absolute;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
top: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
&:after {
|
|
12
|
+
margin: -100px -180px;
|
|
13
|
+
width: 300px;
|
|
14
|
+
height: 200px;
|
|
15
|
+
right: 0;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:before {
|
|
20
|
+
width: 60px;
|
|
21
|
+
height: 100px;
|
|
22
|
+
margin: -55px -35px;
|
|
23
|
+
left: 0;
|
|
24
|
+
top: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:after,
|
|
28
|
+
&:before {
|
|
29
|
+
content: "";
|
|
30
|
+
background-color: #2873;
|
|
31
|
+
position: absolute;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
}
|
|
34
|
+
}
|
package/coms/kugou/bindScroll.js
CHANGED
|
@@ -4,23 +4,38 @@ function bindScroll(titlebar, page) {
|
|
|
4
4
|
var labelarea = div();
|
|
5
5
|
var [label, back] = titlebar.children;
|
|
6
6
|
css(back, `height:${fromPixel(topHeight)}`);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
var img = document.createElement("png");
|
|
8
|
+
css(labelarea, "backdrop-filter:blur(20px);height:100%;width:100%;background:inherit;position:absolute;left:0;top:0;z-index:-1");
|
|
9
|
+
css(img, 'position:absolute;left:0;top:0;width:100%;height:100%;filter:brightness(.8) saturate(.6);z-index:-1');
|
|
10
|
+
var init = function (image) {
|
|
11
|
+
if (image) {
|
|
12
|
+
appendChild.after(label, labelarea);
|
|
13
|
+
appendChild.after(label, img);
|
|
14
|
+
setOpacity(image, 0);
|
|
15
|
+
css(img, `background:${image.style.backgroundImage}no-repeat center;background-size:cover;`);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
remove(img);
|
|
19
|
+
remove(labelarea);
|
|
20
|
+
}
|
|
11
21
|
};
|
|
12
|
-
|
|
13
|
-
css(titlebar, `min-height:${fromPixel(topHeight)}`);
|
|
14
|
-
setTimeout(refresh);
|
|
15
|
-
});
|
|
16
|
-
var refresh = function () {
|
|
22
|
+
var getImage = function () {
|
|
17
23
|
var image = page.children[0];
|
|
18
24
|
if (!image) return;
|
|
19
25
|
if (!image.style.backgroundImage && !/img/i.test(image.className)) image = page.children[1] || image;
|
|
20
26
|
if (!image.style.backgroundImage && !/img/i.test(image.className)) return;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
return image;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
onmounted(page, function () {
|
|
31
|
+
css(titlebar, `min-height:${fromPixel(topHeight)}`);
|
|
32
|
+
var image = getImage();
|
|
33
|
+
init(image);
|
|
34
|
+
refresh();
|
|
35
|
+
});
|
|
36
|
+
var refresh = function () {
|
|
37
|
+
var image = getImage();
|
|
38
|
+
if (!image) return;
|
|
24
39
|
var scrollTop = page.scrollTop;
|
|
25
40
|
var offsetHeight = image.offsetHeight;
|
|
26
41
|
var height = offsetHeight + image.offsetTop - scrollTop;
|
|
@@ -32,10 +47,10 @@ function bindScroll(titlebar, page) {
|
|
|
32
47
|
}
|
|
33
48
|
if (height > page.offsetHeight >> 1) {
|
|
34
49
|
height = page.offsetHeight >> 1;
|
|
35
|
-
css(image, { paddingBottom: fromOffset(height) })
|
|
50
|
+
css(image, { paddingBottom: fromOffset(height) });
|
|
36
51
|
}
|
|
37
|
-
css(titlebar, `
|
|
38
|
-
setOpacity(labelarea,
|
|
52
|
+
css(titlebar, `height:${fromOffset(height)}`);
|
|
53
|
+
setOpacity(labelarea, 1 - (titlebar.offsetHeight) / offsetHeight);
|
|
39
54
|
setOpacity(label, 1 - (titlebar.offsetHeight - topHeight) / (offsetHeight - topHeight));
|
|
40
55
|
return {};
|
|
41
56
|
};
|
package/coms/kugou/buildList.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
& {
|
|
2
2
|
font-size: 16px;
|
|
3
|
+
height: 100%;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
.list {
|
|
@@ -10,17 +11,8 @@
|
|
|
10
11
|
right: 0;
|
|
11
12
|
bottom: 0;
|
|
12
13
|
left: 0;
|
|
13
|
-
|
|
14
|
-
>div {
|
|
15
|
-
background-color: #fff;
|
|
16
|
-
width: 100%;
|
|
17
|
-
padding: 10px 15px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
>div+div {
|
|
21
|
-
border-top: 1px solid #ccc;
|
|
22
|
-
}
|
|
23
14
|
}
|
|
24
|
-
|
|
15
|
+
|
|
16
|
+
.padding {
|
|
25
17
|
max-width: 100%;
|
|
26
18
|
}
|
package/coms/kugou/playList.less
CHANGED
|
@@ -8,14 +8,21 @@
|
|
|
8
8
|
box-shadow: 0 0 20px -6px rgba(0, 0, 0, .6);
|
|
9
9
|
margin-bottom: 10px;
|
|
10
10
|
overflow: visible;
|
|
11
|
-
background: #
|
|
11
|
+
background: #131416;
|
|
12
12
|
margin-top: 0;
|
|
13
13
|
transition: margin .2s ease-out;
|
|
14
|
+
color: #fff;
|
|
15
|
+
}
|
|
16
|
+
>.head{
|
|
17
|
+
background: inherit;
|
|
18
|
+
}
|
|
19
|
+
>.foot{
|
|
20
|
+
background: inherit;
|
|
14
21
|
}
|
|
15
|
-
|
|
16
22
|
>list.body {
|
|
17
23
|
overflow-x: hidden;
|
|
18
24
|
overflow-y: scroll;
|
|
25
|
+
background: #f2f4f622;
|
|
19
26
|
padding: 0;
|
|
20
27
|
}
|
|
21
28
|
|
package/coms/kugou/player.js
CHANGED
|
@@ -249,7 +249,6 @@ var $scope = {
|
|
|
249
249
|
$scope.playing = true;
|
|
250
250
|
playState.width = 0;
|
|
251
251
|
getMusicInfo(hash).loading_promise.then((response) => {
|
|
252
|
-
console.log(response)
|
|
253
252
|
if (!this.playing) return;
|
|
254
253
|
if (hash !== musicList.active_hash) return;
|
|
255
254
|
if (response.imgUrl) {
|
package/coms/kugou/player.less
CHANGED
|
@@ -128,16 +128,17 @@
|
|
|
128
128
|
>.track:after,
|
|
129
129
|
>.avatar {
|
|
130
130
|
border-color: @main-color;
|
|
131
|
-
opacity: 1;
|
|
132
131
|
box-shadow: 0 0 6px -3px @main-color;
|
|
133
132
|
}
|
|
134
|
-
|
|
133
|
+
|
|
135
134
|
>.track {
|
|
136
|
-
|
|
135
|
+
opacity: .7;
|
|
136
|
+
transition: height .3s, opacity .3s;
|
|
137
137
|
top: 12px;
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
|
|
140
140
|
>.avatar {
|
|
141
|
+
opacity: 1;
|
|
141
142
|
top: 0;
|
|
142
143
|
}
|
|
143
144
|
|
|
@@ -219,6 +220,7 @@
|
|
|
219
220
|
|
|
220
221
|
>div.progress>.track {
|
|
221
222
|
height: 3px;
|
|
223
|
+
opacity: 1;
|
|
222
224
|
}
|
|
223
225
|
|
|
224
226
|
>.track {
|
package/coms/kugou/song.html
CHANGED
package/coms/kugou/song.js
CHANGED
|
@@ -4,6 +4,7 @@ function main(elem) {
|
|
|
4
4
|
var $scope = {
|
|
5
5
|
filterTime,
|
|
6
6
|
png: img,
|
|
7
|
+
bg,
|
|
7
8
|
playState: kugou$playState,
|
|
8
9
|
song: {},
|
|
9
10
|
musicList: kugou$musicList,
|
|
@@ -19,7 +20,7 @@ function main(elem) {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
$scope.song = {
|
|
22
|
-
hash: item.hash,
|
|
23
|
+
hash: item.hash || item.hashid,
|
|
23
24
|
imgurl: item.imgurl,
|
|
24
25
|
singer: singerName,
|
|
25
26
|
songMarked: mark(songName, elem.mark),
|
package/coms/kugou/song.less
CHANGED
|
@@ -6,16 +6,17 @@
|
|
|
6
6
|
white-space: nowrap;
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
text-overflow: ellipsis;
|
|
9
|
-
background: #
|
|
9
|
+
background: #101216;
|
|
10
|
+
color: #fffc;
|
|
10
11
|
|
|
11
12
|
border: 2px solid transparent;
|
|
12
13
|
|
|
13
14
|
&:hover {
|
|
14
|
-
border-color: #
|
|
15
|
+
border-color: #276;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
&:active {
|
|
18
|
-
border-color: #
|
|
19
|
+
border-color: #253;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -63,10 +64,9 @@
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
b {
|
|
66
|
-
border:
|
|
67
|
-
color: #1f4a3bd4;
|
|
67
|
+
border: 1.2px solid #288833;
|
|
68
68
|
font-weight: normal;
|
|
69
|
-
background: #
|
|
69
|
+
background: #2836;
|
|
70
70
|
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -78,12 +78,15 @@ b {
|
|
|
78
78
|
text-align: center;
|
|
79
79
|
line-height: 12px;
|
|
80
80
|
font-size: 12px;
|
|
81
|
-
color: #
|
|
81
|
+
color: #fff9;
|
|
82
82
|
|
|
83
83
|
&+.song {
|
|
84
84
|
padding-top: 8px;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
+
png{
|
|
88
|
+
filter: brightness(.7) contrast(.9);
|
|
89
|
+
}
|
|
87
90
|
|
|
88
91
|
>.play-state {
|
|
89
92
|
position: absolute;
|