mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-05 17:21:31 +08:00
"按上映年份"排序改为降序排序,从新到旧排序
This commit is contained in:
@@ -510,7 +510,7 @@ export default {
|
||||
switch (this.sortKeyword) {
|
||||
case '按上映年份':
|
||||
filteredData.sort(function (a, b) {
|
||||
return a.year - b.year
|
||||
return b.year - a.year
|
||||
})
|
||||
break
|
||||
case '按片名':
|
||||
@@ -524,6 +524,9 @@ export default {
|
||||
})
|
||||
break
|
||||
default:
|
||||
filteredData.sort(function (a, b) {
|
||||
return new Date(b.last) - new Date(a.last)
|
||||
})
|
||||
break
|
||||
}
|
||||
if (this.showFind) {
|
||||
|
||||
@@ -486,7 +486,7 @@ export default {
|
||||
switch (this.sortKeyword) {
|
||||
case '按上映年份':
|
||||
filteredData.sort(function (a, b) {
|
||||
return a.detail.year - b.detail.year
|
||||
return b.detail.year - a.detail.year
|
||||
})
|
||||
break
|
||||
case '按片名':
|
||||
|
||||
@@ -324,7 +324,7 @@ export default {
|
||||
switch (this.sortKeyword) {
|
||||
case '按上映年份':
|
||||
filteredData.sort(function (a, b) {
|
||||
return a.detail.year - b.detail.year
|
||||
return b.detail.year - a.detail.year
|
||||
})
|
||||
break
|
||||
case '按片名':
|
||||
|
||||
Reference in New Issue
Block a user