From db3fa286e32f1eb846d276485b9074fc7160d959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EF=BC=81=E9=98=B3=E4=BB=94?= <15836909675@163.com> Date: Tue, 20 Dec 2022 16:17:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9F=8E=E5=B8=82=E6=8E=92?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/pc/fans.vue | 2 +- src/view/pc/force.vue | 2 +- src/view/pc/interest.vue | 2 +- src/view/wap/fans.vue | 2 +- src/view/wap/force.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/view/pc/fans.vue b/src/view/pc/fans.vue index 48f1975..73081b8 100644 --- a/src/view/pc/fans.vue +++ b/src/view/pc/fans.vue @@ -51,7 +51,7 @@ export default { this.dataList = res.data.data.cityInfoList this.optionList = res.data.data.cityInfoList this.rankList = res.data.data.countryTop - this.dropdownList = res.data.data.cityInfoList.map(it=>it.city) + this.dropdownList = res.data.data.cityInfoList.sort((a, b)=> b.score - a.score).map(it=>it.city) } }).catch(() => { diff --git a/src/view/pc/force.vue b/src/view/pc/force.vue index 7ae9bc2..ac1613f 100644 --- a/src/view/pc/force.vue +++ b/src/view/pc/force.vue @@ -44,7 +44,7 @@ export default { this.optionList = res.data.data.cityInfoList this.rankData = res.data.data.countryTop this.rankList = res.data.data.countryTop - this.dropdownList = res.data.data.cityInfoList.map(it=>it.city) + this.dropdownList = res.data.data.cityInfoList.sort((a, b)=> b.score - a.score).map(it=>it.city) } }).catch(() => { diff --git a/src/view/pc/interest.vue b/src/view/pc/interest.vue index d2cbf07..dabf441 100644 --- a/src/view/pc/interest.vue +++ b/src/view/pc/interest.vue @@ -45,7 +45,7 @@ export default { this.optionList = res.data.data.cityInfoList this.rankData = res.data.data.countryTop this.rankList = res.data.data.countryTop - this.dropdownList = res.data.data.cityInfoList.map(it=>it.city) + this.dropdownList = res.data.data.cityInfoList.sort((a, b)=> b.score - a.score).map(it=>it.city) } }).catch(() => { diff --git a/src/view/wap/fans.vue b/src/view/wap/fans.vue index 914d2ea..1584263 100644 --- a/src/view/wap/fans.vue +++ b/src/view/wap/fans.vue @@ -89,7 +89,7 @@ export default { this.dataList = res.data.data.cityInfoList this.optionList = res.data.data.cityInfoList this.rankList = res.data.data.countryTop - this.dropdownList = res.data.data.cityInfoList.map(it=>it.city) + this.dropdownList = res.data.data.cityInfoList.sort((a, b)=> b.score - a.score).map(it=>it.city) } }).catch(() => { diff --git a/src/view/wap/force.vue b/src/view/wap/force.vue index 7f292a7..943d92d 100644 --- a/src/view/wap/force.vue +++ b/src/view/wap/force.vue @@ -55,7 +55,7 @@ export default { this.optionList = res.data.data.cityInfoList this.rankData = res.data.data.countryTop this.rankList = res.data.data.countryTop - this.dropdownList = res.data.data.cityInfoList.map(it=>it.city) + this.dropdownList = res.data.data.cityInfoList.sort((a, b)=> b.score - a.score).map(it=>it.city) } }).catch(() => { -- GitLab