diff --git a/src/view/pc/fans.vue b/src/view/pc/fans.vue index 48f197519af1639f308de79b06ff5ee18fcb1a79..73081b8980518572c85f3fef22cf0cc529bb6893 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 7ae9bc2e176820ee850dae480edddfdb112176df..ac1613f9fdeae11bbb8613bf0eca0936f3169e65 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 d2cbf079d84e1a726b949fdd030672517856530d..dabf441946a0810edbb8fa51aef5bb433d5387f1 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 914d2ea91d0a50addb0dab19dd9d4056a7fd31df..158426312a93776ea8026501ee8f2590d315d56c 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 7f292a71dc2ca8ecf493fb6cc1e6624d59d882a1..943d92dab6ff0be05b79d11c20b0b1e7682927a5 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(() => {