diff --git a/src/server/screen-data.js b/src/server/screen-data.js index d7800fd3406688f5ff8ab332e3aa1271191c6a7c..5abdba21a0a06c4d437a811d79601efb80af86d3 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 1df36b4c4f4060e42511b09e5cd00b07c5ec429d..a47d44538a2985539904b1923a976e04364e61f6 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 e03e63c93cf41e0fc7d6f591b6ed12ee743d77b5..f4fdd192ce5c04bce8391e081b58924ea7893a14 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 0eb3ff1d875b8ca5cef42176fe2dd2143101d648..9b2f23dd8ddb810436e8e5bd137d2e9e5fbcb1aa 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}