From 143506d4f0de39149220ea01650d712c738940da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=99=BE=E9=93=AD?= <957167412@qq.com> Date: Mon, 19 Dec 2022 20:50:25 +0800 Subject: [PATCH] interest page done --- src/server/screen-data.js | 2 +- src/view/pc/interest.vue | 1 + src/view/pc/interestRankList.vue | 8 ++++---- src/view/pc/mapInterest.vue | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/server/screen-data.js b/src/server/screen-data.js index d7800fd..5abdba2 100644 --- a/src/server/screen-data.js +++ b/src/server/screen-data.js @@ -10,6 +10,6 @@ export function getHardcoreFanInfo () { // 获取铁粉信息 export function getFanDistribution (name) { // 获取粉丝分布 return http.get(`${urlData}/v1/get-fan-distribution?username=${name}`) } -export function getInterestInfo () { // 获取原力信息 +export function getInterestInfo () { // 获取技术兴趣信息 return http.get(`${urlData}/v1/get-interest-info`) } \ No newline at end of file diff --git a/src/view/pc/interest.vue b/src/view/pc/interest.vue index 1df36b4..a47d445 100644 --- a/src/view/pc/interest.vue +++ b/src/view/pc/interest.vue @@ -41,6 +41,7 @@ export default { getlist() { getInterestInfo().then((res) => { if (res.status == 200) { + console.log(res.data.data) this.optionList = res.data.data.cityInfoList this.rankData = res.data.data.countryTop this.rankList = res.data.data.countryTop diff --git a/src/view/pc/interestRankList.vue b/src/view/pc/interestRankList.vue index e03e63c..f4fdd19 100644 --- a/src/view/pc/interestRankList.vue +++ b/src/view/pc/interestRankList.vue @@ -25,7 +25,7 @@ -
{{userItem.nickname||userItem.username}}
+{{userItem.nickname||userItem.name}}
{{item.nickname || item.username}}{{item.nickname || item.name}}
{{item.score}} @@ -74,8 +74,8 @@ export default { if (this.title == '用户原力月榜') { window.open(`https://blog.csdn.net/`+item.username) }else{ - this.userItem = item - this.$emit('rankFans',item) + // this.userItem = item + // this.$emit('rankFans',item) } } }, diff --git a/src/view/pc/mapInterest.vue b/src/view/pc/mapInterest.vue index 0eb3ff1..9b2f23d 100644 --- a/src/view/pc/mapInterest.vue +++ b/src/view/pc/mapInterest.vue @@ -164,7 +164,7 @@ export default { if (that.dataArray[params.dataIndex].list.length>0){ that.dataArray[params.dataIndex].list.forEach((item,index) => { if (index<3){ - demo += `${item.nickname || item.username}
${item.score}
` + demo += `${item.nickname || item.name}
${item.score}
` } }); }else{ @@ -175,7 +175,7 @@ export default { } str = `${that.dataArray[params.dataIndex].list[0].nickname || that.dataArray[params.dataIndex].list[0].username} 成为 ${params.name} 技术兴趣之首
+${that.dataArray[params.dataIndex].list[0].nickname || that.dataArray[params.dataIndex].list[0].name} 成为 ${params.name} 技术兴趣之首
${params.name} ${that.title} ${that.dataArray[params.dataIndex].score}
排名
技术领域
${that.title}