提交 db3fa286 编写于 作者: !阳仔's avatar !阳仔

修改城市排名

上级 aeb08a2f
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
this.dataList = res.data.data.cityInfoList this.dataList = res.data.data.cityInfoList
this.optionList = res.data.data.cityInfoList this.optionList = res.data.data.cityInfoList
this.rankList = 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(() => { }).catch(() => {
......
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
this.optionList = res.data.data.cityInfoList this.optionList = res.data.data.cityInfoList
this.rankData = res.data.data.countryTop this.rankData = res.data.data.countryTop
this.rankList = 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(() => { }).catch(() => {
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
this.optionList = res.data.data.cityInfoList this.optionList = res.data.data.cityInfoList
this.rankData = res.data.data.countryTop this.rankData = res.data.data.countryTop
this.rankList = 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(() => { }).catch(() => {
......
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
this.dataList = res.data.data.cityInfoList this.dataList = res.data.data.cityInfoList
this.optionList = res.data.data.cityInfoList this.optionList = res.data.data.cityInfoList
this.rankList = 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(() => { }).catch(() => {
......
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
this.optionList = res.data.data.cityInfoList this.optionList = res.data.data.cityInfoList
this.rankData = res.data.data.countryTop this.rankData = res.data.data.countryTop
this.rankList = 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(() => { }).catch(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册