Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
拥抱太阳的月亮405
csdn-datav
提交
39c86e9f
C
csdn-datav
项目概览
拥抱太阳的月亮405
/
csdn-datav
与 Fork 源项目一致
Fork自
CSDN 技术社区 / csdn-datav
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
csdn-datav
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
39c86e9f
编写于
8月 24, 2022
作者:
!阳仔
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into ChangeIcon
上级
57904790
cad23ae5
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
132 addition
and
21 deletion
+132
-21
.npmrc
.npmrc
+2
-0
CONTRIBUTING.md
CONTRIBUTING.md
+4
-0
README.md
README.md
+6
-0
doc/api.md
doc/api.md
+69
-1
doc/develop.md
doc/develop.md
+20
-7
doc/fqa.md
doc/fqa.md
+8
-0
preview.yml
preview.yml
+11
-0
src/components/vant-ui/index.js
src/components/vant-ui/index.js
+1
-9
vue.config.js
vue.config.js
+11
-4
未找到文件。
.npmrc
0 → 100644
浏览文件 @
39c86e9f
sass_binary_site=https://registry.npmmirror.com/-/binary/node-sass/
registry=https://registry.npmmirror.com/
CONTRIBUTING.md
0 → 100644
浏览文件 @
39c86e9f
#### 如何贡献代码
参考:
-
如何提交PR
[
如何给开源项目贡献代码
](
https://blog.csdn.net/ylwdev/article/details/126466381
)
README.md
浏览文件 @
39c86e9f
...
@@ -2,9 +2,15 @@
...
@@ -2,9 +2,15 @@
## 预览地址
## 预览地址
-
线上预览地址:
[
https://csdn.gitcode.host/csdn-datav
](
https://csdn.gitcode.host/csdn-datav
)
-
线上预览地址:
[
https://csdn.gitcode.host/csdn-datav
](
https://csdn.gitcode.host/csdn-datav
)
-
正式地址:
[
https://map.csdn.net/
](
https://map.csdn.net
)
## 开发文档
## 开发文档
-
开发文档:
[
develop.md
](
https://gitcode.net/csdn/csdn-datav/-/blob/master/doc/develop.md
)
-
开发文档:
[
develop.md
](
https://gitcode.net/csdn/csdn-datav/-/blob/master/doc/develop.md
)
-
API接口:
[
api.md
](
https://gitcode.net/csdn/csdn-datav/-/blob/master/doc/api.md
)
-
API接口:
[
api.md
](
https://gitcode.net/csdn/csdn-datav/-/blob/master/doc/api.md
)
-
如何贡献代码:
[
CONTRIBUTING.md
](
https://gitcode.net/csdn/csdn-datav/-/blob/master/CONTRIBUTING.md
)
-
常见问题列表:
[
fqa.md
](
https://gitcode.net/csdn/csdn-datav/-/blob/master/doc/fqa.md
)
## 隐私数据公告
-
关于用户数据详见:
[
个人信息使用公告
](
https://marketing.csdn.net/p/ebf7a8242fd61ac7ed172d65a54c4ea6
)
-
如您不希望您的数据在此项目中展示,可以通过以下渠道删除:1.提交
[
issue
](
https://gitcode.net/csdn/csdn-datav/-/issues
)
;2.联系
[
客服
](
https://csdn.s2.udesk.cn/im_client/?web_plugin_id=29181
)
## 一、前言
## 一、前言
关于开源重要性不多赘述。直接进入主题,我们相信开源的价值,认可这种协作模式能带来更大的价值,同时我们也希望99%的开发者都愿意参与到开源建设中,通过开源学习,成长,找到有相同目标的伙伴,通过参与开源项目建设,可以共享开源的成果。
关于开源重要性不多赘述。直接进入主题,我们相信开源的价值,认可这种协作模式能带来更大的价值,同时我们也希望99%的开发者都愿意参与到开源建设中,通过开源学习,成长,找到有相同目标的伙伴,通过参与开源项目建设,可以共享开源的成果。
...
...
doc/api.md
浏览文件 @
39c86e9f
待完善
<h1
class=
"curproject-name"
>
CSDN数据可视化
</h1>
### 域名
**Domain:**
https://map-api.csdn.net
### 获取原力视图用户信息
**Path:**
/v1/get-force-info
**Method:**
GET
### 请求参数
### 返回数据
<table>
<thead
class=
"ant-table-thead"
>
<tr>
<th
key=
name
>
名称
</th><th
key=
type
>
类型
</th><th
key=
required
>
是否必须
</th><th
key=
default
>
默认值
</th><th
key=
desc
>
备注
</th><th
key=
sub
>
其他信息
</th>
</tr>
</thead><tbody
className=
"ant-table-tbody"
><tr
key=
0-0
><td
key=
0
><span
style=
"padding-left: 0px"
><span
style=
"color: #8c8a8a"
></span>
code
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-1
><td
key=
0
><span
style=
"padding-left: 0px"
><span
style=
"color: #8c8a8a"
></span>
message
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2
><td
key=
0
><span
style=
"padding-left: 0px"
><span
style=
"color: #8c8a8a"
></span>
data
</span></td><td
key=
1
><span>
object
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-0
><td
key=
0
><span
style=
"padding-left: 20px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
countryTop
</span></td><td
key=
1
><span>
object []
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
全国排行
</span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
object
</span></p></td></tr><tr
key=
0-2-0-0
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
id
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-0-1
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
username
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
用户名
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-2
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
nickname
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
昵称
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-3
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
avatar
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
头像
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-4
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
city
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
城市
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-5
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
rank
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
排名
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-6
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
score
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
分数
</span></td><td
key=
5
></td></tr><tr
key=
0-2-1
><td
key=
0
><span
style=
"padding-left: 20px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
cityInfoList
</span></td><td
key=
1
><span>
object []
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
object
</span></p></td></tr><tr
key=
0-2-1-0
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
city
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-1
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
gps
</span></td><td
key=
1
><span>
number []
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
number
</span></p></td></tr><tr
key=
array-4
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
</span></td><td
key=
1
><span></span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-2
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
score
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
list
</span></td><td
key=
1
><span>
object []
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
object
</span></p></td></tr><tr
key=
0-2-1-3-0
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
id
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-1
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
username
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-2
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
nickname
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-3
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
avatar
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-4
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
city
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-5
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
rank
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-6
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
score
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr>
</tbody>
</table>
### 获取粉丝分布
**Path:**
/v1/get-fan-distribution
**Method:**
GET
### 请求参数
**Query**
| 参数名称 | 是否必须 | 示例 | 备注 |
| ------------ | ------------ | ------------ | ------------ |
| username | 是 | abc | 用户名 |
### 返回数据
<table>
<thead
class=
"ant-table-thead"
>
<tr>
<th
key=
name
>
名称
</th><th
key=
type
>
类型
</th><th
key=
required
>
是否必须
</th><th
key=
default
>
默认值
</th><th
key=
desc
>
备注
</th><th
key=
sub
>
其他信息
</th>
</tr>
</thead><tbody
className=
"ant-table-tbody"
><tr
key=
0-0
><td
key=
0
><span
style=
"padding-left: 0px"
><span
style=
"color: #8c8a8a"
></span>
code
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-1
><td
key=
0
><span
style=
"padding-left: 0px"
><span
style=
"color: #8c8a8a"
></span>
message
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2
><td
key=
0
><span
style=
"padding-left: 0px"
><span
style=
"color: #8c8a8a"
></span>
data
</span></td><td
key=
1
><span>
object []
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
object
</span></p></td></tr><tr
key=
0-2-0
><td
key=
0
><span
style=
"padding-left: 20px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
city
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
城市
</span></td><td
key=
5
></td></tr><tr
key=
0-2-1
><td
key=
0
><span
style=
"padding-left: 20px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
gps
</span></td><td
key=
1
><span>
number []
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
坐标
</span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
number
</span></p></td></tr><tr
key=
array-5
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
</span></td><td
key=
1
><span></span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-2
><td
key=
0
><span
style=
"padding-left: 20px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
score
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
分数
</span></td><td
key=
5
></td></tr><tr
key=
0-2-3
><td
key=
0
><span
style=
"padding-left: 20px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
list
</span></td><td
key=
1
><span>
string []
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
string
</span></p></td></tr><tr
key=
array-6
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
</span></td><td
key=
1
><span></span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr>
</tbody>
</table>
### 获取铁粉视图用户信息
**Path:**
/v1/get-hardcore-fan-info
**Method:**
GET
### 请求参数
### 返回数据
<table>
<thead
class=
"ant-table-thead"
>
<tr>
<th
key=
name
>
名称
</th><th
key=
type
>
类型
</th><th
key=
required
>
是否必须
</th><th
key=
default
>
默认值
</th><th
key=
desc
>
备注
</th><th
key=
sub
>
其他信息
</th>
</tr>
</thead><tbody
className=
"ant-table-tbody"
><tr
key=
0-0
><td
key=
0
><span
style=
"padding-left: 0px"
><span
style=
"color: #8c8a8a"
></span>
code
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-1
><td
key=
0
><span
style=
"padding-left: 0px"
><span
style=
"color: #8c8a8a"
></span>
message
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2
><td
key=
0
><span
style=
"padding-left: 0px"
><span
style=
"color: #8c8a8a"
></span>
data
</span></td><td
key=
1
><span>
object
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-0
><td
key=
0
><span
style=
"padding-left: 20px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
countryTop
</span></td><td
key=
1
><span>
object []
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
全国排行
</span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
object
</span></p></td></tr><tr
key=
0-2-0-0
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
id
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-0-1
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
username
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
用户名
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-2
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
nickname
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
昵称
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-3
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
avatar
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
头像
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-4
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
city
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
城市
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-5
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
rank
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
排名
</span></td><td
key=
5
></td></tr><tr
key=
0-2-0-6
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
score
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
>
分数
</span></td><td
key=
5
></td></tr><tr
key=
0-2-1
><td
key=
0
><span
style=
"padding-left: 20px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
cityInfoList
</span></td><td
key=
1
><span>
object []
</span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
object
</span></p></td></tr><tr
key=
0-2-1-0
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
city
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-1
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
gps
</span></td><td
key=
1
><span>
number []
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
number
</span></p></td></tr><tr
key=
array-7
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
</span></td><td
key=
1
><span></span></td><td
key=
2
>
非必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-2
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
score
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3
><td
key=
0
><span
style=
"padding-left: 40px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
list
</span></td><td
key=
1
><span>
object []
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
><p
key=
3
><span
style=
"font-weight: '700'"
>
item 类型:
</span><span>
object
</span></p></td></tr><tr
key=
0-2-1-3-0
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
id
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-1
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
username
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-2
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
nickname
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-3
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
avatar
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-4
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
city
</span></td><td
key=
1
><span>
string
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-5
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
rank
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr><tr
key=
0-2-1-3-6
><td
key=
0
><span
style=
"padding-left: 60px"
><span
style=
"color: #8c8a8a"
>
├─
</span>
score
</span></td><td
key=
1
><span>
number
</span></td><td
key=
2
>
必须
</td><td
key=
3
></td><td
key=
4
><span
style=
"white-space: pre-wrap"
></span></td><td
key=
5
></td></tr>
</tbody>
</table>
doc/develop.md
浏览文件 @
39c86e9f
#
csdn-datav
#
开发文档
2
## 环境准备
## 环境准备
### 云IDE
本项目已支持CSDN 云IDE 一键启动,访问地址:
[
云IDE
](
https://idegitcode.net/csdn/csdn-datav
)
或选择本地开发环境,请参考如下配置:
#### git设置
*
*注意*
:设置git提交的user.email与
[
CSDN账号邮箱
](
https://i.csdn.net/#/user-center/account
)
保持一致,避免个人真实信息泄露
```
bash
```
bash
# 大小写敏感
# 大小写敏感
git config core.ignorecase
false
git config core.ignorecase
false
# 修改NPM国内镜像加速
npm config
set
registry https://registry.npmmirror.com/
# 设置你git提交用户名/邮箱,注意本项目尽量不要带--global
# 设置你git提交用户名/邮箱,注意本项目尽量不要带--global
git config user.name
"git用户名"
git config user.name
"git用户名"
git config user.emall
"git邮箱"
git config user.emall
"git邮箱"
```
```
*
*注意*
:设置git提交的user.email与
[
CSDN账号邮箱
](
https://i.csdn.net/#/user-center/account
)
保持一致,避免个人真实信息泄露
#### npm设置
本项目中的.npmrc 文件已经设置NPM国内镜像源,等同于以下配置
```
bash
# 修改NPM国内镜像加速
npm config
set
registry https://registry.npmmirror.com/
```
#### 设置本地开发环境host
由于用户头像图片服务器设置了域名防盗链,所以本地环境需要在
*
.csdn.net 域名下访问,避免开发环境头像不显示问题
域名与与vue.config.js 配置保持一致
```
127.0.0.1 loc.csdn.net
```
## 项目启动
## 项目启动
```
```
...
...
doc/fqa.md
0 → 100644
浏览文件 @
39c86e9f
## 常见问题列表(FQA)
关于此项目常见的问题列表,如您有其他问题或建议,可以提
[
issue
](
https://gitcode.net/csdn/csdn-datav/-/issues
)
留言交流
#### 地图数据更新时间
地图数据更新频率为日更,每天(24h)更新1次,具体更新时间根据数据计算平台的算力繁忙情况而定
#### 为什么用户的城市信息和个人主页的不一致
CSDN个人主页显示的为省,本地图显示的为地级市。个人主页数据为实时更新,本地图数据为日更
preview.yml
0 → 100644
浏览文件 @
39c86e9f
# preview.yml
autoOpen
:
true
# 打开工作空间时是否自动开启所有应用的预览
apps
:
-
port
:
3000
# 应用的端口
run
:
npm i && npm run serve
# 应用的启动命令
command
:
npm i && npm run serve -- --port 3000 --host 0.0.0.0 --allowedHosts all
# 使用此命令启动服务,且不执行run
root
:
/ide/workspace/csdn-datav
# 应用的启动目录
name
:
my-first-app
# 应用名称
description
:
我的第一个 App。
# 应用描述
autoOpen
:
true
# 打开工作空间时是否自动开启预览(优先级高于根级 autoOpen)
autoRefresh
:
false
# 保存自动刷新页面(不建议有HMR同时打开自动刷新)
src/components/vant-ui/index.js
浏览文件 @
39c86e9f
/**
* @Author : wzk
* @Date : 2021/3/17Wednesday12
* @Last Modified by : wzk
* @Last Modified time : 2021/3/17Wednesday12
* @Description:
**/
import
Vue
from
"
vue
"
;
import
Vue
from
"
vue
"
;
import
{
import
{
...
@@ -56,4 +49,3 @@
...
@@ -56,4 +49,3 @@
Vue
.
use
(
CellGroup
);
Vue
.
use
(
CellGroup
);
Vue
.
use
(
Empty
);
Vue
.
use
(
Empty
);
Vue
.
use
(
Uploader
);
Vue
.
use
(
Uploader
);
\ No newline at end of file
vue.config.js
浏览文件 @
39c86e9f
...
@@ -13,12 +13,19 @@ module.exports = defineConfig({
...
@@ -13,12 +13,19 @@ module.exports = defineConfig({
lintOnSave
:
false
,
lintOnSave
:
false
,
publicPath
:
publicPath
,
publicPath
:
publicPath
,
devServer
:
{
devServer
:
{
host
:
'
loc-csdn-datav.csdn.net
'
,
allowedHosts
:
'
all
'
,
port
:
'
80
'
,
host
:
'
loc.csdn.net
'
,
headers
:
{
headers
:
{
'
Access-Control-Allow-Origin
'
:
'
*
'
'
Access-Control-Allow-Origin
'
:
'
*
'
}
}
},
},
// devServer: {
// allowedHosts:'all',
// port: '3000',
// headers: {
// 'Access-Control-Allow-Origin': '*'
// }
// },
productionSourceMap
:
false
,
productionSourceMap
:
false
,
chainWebpack
:
config
=>
{
chainWebpack
:
config
=>
{
config
.
resolve
.
alias
.
set
(
'
@
'
,
resolve
(
'
src
'
))
config
.
resolve
.
alias
.
set
(
'
@
'
,
resolve
(
'
src
'
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录