Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
csdn-datav
提交
143506d4
C
csdn-datav
项目概览
CSDN 技术社区
/
csdn-datav
通知
4399
Star
175
Fork
204
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
29
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
csdn-datav
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
29
Issue
29
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
143506d4
编写于
12月 19, 2022
作者:
番红炒西茄柿
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
interest page done
上级
535b5c51
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
8 addition
and
7 deletion
+8
-7
src/server/screen-data.js
src/server/screen-data.js
+1
-1
src/view/pc/interest.vue
src/view/pc/interest.vue
+1
-0
src/view/pc/interestRankList.vue
src/view/pc/interestRankList.vue
+4
-4
src/view/pc/mapInterest.vue
src/view/pc/mapInterest.vue
+2
-2
未找到文件。
src/server/screen-data.js
浏览文件 @
143506d4
...
...
@@ -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
src/view/pc/interest.vue
浏览文件 @
143506d4
...
...
@@ -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
...
...
src/view/pc/interestRankList.vue
浏览文件 @
143506d4
...
...
@@ -25,7 +25,7 @@
</el-dropdown-menu>
</el-dropdown>
<p
v-if=
"userItem"
><img
src=
"@/assets/img/user.png"
alt=
""
/><a
target=
"_blank"
:href=
"`https://blog.csdn.net/$
{userItem.
username}`">
{{
userItem
.
nickname
||
userItem
.
user
name
}}
</a></p>
<p
v-if=
"userItem"
><img
src=
"@/assets/img/user.png"
alt=
""
/><a
target=
"_blank"
:href=
"`https://blog.csdn.net/$
{userItem.
name}`">
{{
userItem
.
nickname
||
userItem
.
name
}}
</a></p>
</div>
<div
class=
"rank-list-nav border"
>
<span
class=
"mar"
>
排名
</span>
...
...
@@ -37,7 +37,7 @@
<span
class=
"mar"
>
{{
index
+
1
}}
</span>
<p>
<span
>
{{
item
.
nickname
||
item
.
user
name
}}
</span
>
{{
item
.
nickname
||
item
.
name
}}
</span
>
</p>
<span>
{{
item
.
score
}}
</span>
...
...
@@ -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)
}
}
},
...
...
src/view/pc/mapInterest.vue
浏览文件 @
143506d4
...
...
@@ -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
+=
`<a href="
${
`https://blog.csdn.net/`
+
item
.
username
}
" target="_blank" class="exhibition active"><p class="back rank_
${
index
+
1
}
"></p> <p class="img"> <span>
${
item
.
nickname
||
item
.
user
name
}
</span></p> <p class="num">
${
item
.
score
}
</p></a>`
demo
+=
`<a href="
${
`https://blog.csdn.net/`
+
item
.
name
}
" target="_blank" class="exhibition active"><p class="back rank_
${
index
+
1
}
"></p> <p class="img"> <span>
${
item
.
nickname
||
item
.
name
}
</span></p> <p class="num">
${
item
.
score
}
</p></a>`
}
});
}
else
{
...
...
@@ -175,7 +175,7 @@ export default {
}
str
=
`<div class="popover">
<div class="popover-top">
<p class="popover-title"> <a href="
${
`https://blog.csdn.net/`
+
that
.
dataArray
[
params
.
dataIndex
].
list
[
0
].
username
}
" target="_blank"> <span class="name">
${
that
.
dataArray
[
params
.
dataIndex
].
list
[
0
].
nickname
||
that
.
dataArray
[
params
.
dataIndex
].
list
[
0
].
user
name
}
</span></a> 成为 <span>
${
params
.
name
}
</span> 技术兴趣之首 </p>
<p class="popover-title"> <a href="
${
`https://blog.csdn.net/`
+
that
.
dataArray
[
params
.
dataIndex
].
list
[
0
].
name
}
" target="_blank"> <span class="name">
${
that
.
dataArray
[
params
.
dataIndex
].
list
[
0
].
nickname
||
that
.
dataArray
[
params
.
dataIndex
].
list
[
0
].
name
}
</span></a> 成为 <span>
${
params
.
name
}
</span> 技术兴趣之首 </p>
<p class="popover-city"><i class="force"></i><span class="city">
${
params
.
name
}
</span> <span>
${
that
.
title
}
</span> <span class="num">
${
that
.
dataArray
[
params
.
dataIndex
].
score
}
</span></p>
<div class="exhibition"><p>排名</p> <p class="img">技术领域</p> <p>
${
that
.
title
}
</p></div>
${
demo
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录