提交 535b5c51 编写于 作者: 番红炒西茄柿's avatar 番红炒西茄柿

interest page update

上级 b04e7a57
...@@ -10,3 +10,6 @@ export function getHardcoreFanInfo () { // 获取铁粉信息 ...@@ -10,3 +10,6 @@ export function getHardcoreFanInfo () { // 获取铁粉信息
export function getFanDistribution (name) { // 获取粉丝分布 export function getFanDistribution (name) { // 获取粉丝分布
return http.get(`${urlData}/v1/get-fan-distribution?username=${name}`) return http.get(`${urlData}/v1/get-fan-distribution?username=${name}`)
} }
export function getInterestInfo () { // 获取原力信息
return http.get(`${urlData}/v1/get-interest-info`)
}
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<script> <script>
import ForceMap from './mapInterest.vue' import ForceMap from './mapInterest.vue'
import RankList from "./interestRankList.vue"; import RankList from "./interestRankList.vue";
import { getForceInfo } from '@/server/screen-data' import { getInterestInfo } from '@/server/screen-data'
export default { export default {
data() { data() {
return { return {
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
this.city = '全国' this.city = '全国'
}, },
getlist() { getlist() {
getForceInfo().then((res) => { getInterestInfo().then((res) => {
if (res.status == 200) { if (res.status == 200) {
this.optionList = res.data.data.cityInfoList this.optionList = res.data.data.cityInfoList
this.rankData = res.data.data.countryTop this.rankData = res.data.data.countryTop
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册