Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
abb0cfae
Commit
abb0cfae
authored
Nov 15, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update center page
parent
661db0c7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
46 deletions
+35
-46
account.ts
mock/demo/account.ts
+3
-11
account.ts
src/api/demo/account.ts
+1
-3
Application.vue
src/views/demo/page/account/center/Application.vue
+4
-4
Project.vue
src/views/demo/page/account/center/Project.vue
+4
-4
data.tsx
src/views/demo/page/account/center/data.tsx
+6
-7
index.vue
src/views/demo/page/account/center/index.vue
+14
-14
AccountBind.vue
src/views/demo/page/account/setting/AccountBind.vue
+3
-3
No files found.
mock/demo/account.ts
View file @
abb0cfae
...
@@ -8,7 +8,7 @@ const userInfo = {
...
@@ -8,7 +8,7 @@ const userInfo = {
signature
:
'
海纳百川,有容乃大
'
,
signature
:
'
海纳百川,有容乃大
'
,
introduction
:
'
微笑着,努力着,欣赏着
'
,
introduction
:
'
微笑着,努力着,欣赏着
'
,
title
:
'
交互专家
'
,
title
:
'
交互专家
'
,
group
:
'
蚂蚁集团-某某某事业群-某某平台部-某某技术部-UED
'
,
group
:
'
蚂蚁集团
11
-某某某事业群-某某平台部-某某技术部-UED
'
,
tags
:
[
tags
:
[
{
{
key
:
'
0
'
,
key
:
'
0
'
,
...
@@ -38,16 +38,8 @@ const userInfo = {
...
@@ -38,16 +38,8 @@ const userInfo = {
notifyCount
:
12
,
notifyCount
:
12
,
unreadCount
:
11
,
unreadCount
:
11
,
country
:
'
China
'
,
country
:
'
China
'
,
province
:
{
address
:
'
厦门市 77 号
'
,
label
:
'
浙江省
'
,
phone
:
'
0592-268888888
'
,
value
:
'
330000
'
,
},
city
:
{
label
:
'
杭州市
'
,
value
:
'
330100
'
,
},
address
:
'
西湖区工专路 77 号
'
,
phone
:
'
0752-268888888
'
,
};
};
export
default
[
export
default
[
...
...
src/api/demo/account.ts
View file @
abb0cfae
...
@@ -3,14 +3,12 @@ import { GetAccountInfoModel } from './model/accountModel';
...
@@ -3,14 +3,12 @@ import { GetAccountInfoModel } from './model/accountModel';
enum
Api
{
enum
Api
{
ACCOUNT_INFO
=
'
/account/getAccountInfo
'
,
ACCOUNT_INFO
=
'
/account/getAccountInfo
'
,
SECURE_LIST
=
'
/account/getSecureList
'
,
}
}
// 获取个人中心--基础设置内容
// 获取个人中心--基础设置内容
export
function
accountInfoApi
(
params
:
any
)
{
export
function
accountInfoApi
()
{
return
defHttp
.
request
<
GetAccountInfoModel
>
({
return
defHttp
.
request
<
GetAccountInfoModel
>
({
url
:
Api
.
ACCOUNT_INFO
,
url
:
Api
.
ACCOUNT_INFO
,
method
:
'
GET
'
,
method
:
'
GET
'
,
params
,
});
});
}
}
src/views/demo/page/account/center/Application.vue
View file @
abb0cfae
<
template
>
<
template
>
<List
:class=
"prefixCls"
>
<List
:class=
"prefixCls"
>
<
R
ow
:gutter=
"16"
>
<
a-r
ow
:gutter=
"16"
>
<template
v-for=
"(item, index) in list"
:key=
"index"
>
<template
v-for=
"(item, index) in list"
:key=
"index"
>
<
C
ol
:span=
"6"
>
<
a-c
ol
:span=
"6"
>
<ListItem>
<ListItem>
<Card
:hoverable=
"true"
:class=
"`$
{prefixCls}__card`">
<Card
:hoverable=
"true"
:class=
"`$
{prefixCls}__card`">
<div
:class=
"`$
{prefixCls}__card-title`">
<div
:class=
"`$
{prefixCls}__card-title`">
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
/>
/>
</Card>
</Card>
</ListItem>
</ListItem>
</
C
ol>
</
a-c
ol>
</
template
>
</
template
>
</
R
ow>
</
a-r
ow>
</List>
</List>
</template>
</template>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
...
src/views/demo/page/account/center/Project.vue
View file @
abb0cfae
<
template
>
<
template
>
<List
:class=
"prefixCls"
>
<List
:class=
"prefixCls"
>
<
R
ow
:gutter=
"16"
>
<
a-r
ow
:gutter=
"16"
>
<template
v-for=
"(item, index) in list"
:key=
"index"
>
<template
v-for=
"(item, index) in list"
:key=
"index"
>
<
C
ol
:span=
"6"
>
<
a-c
ol
:span=
"6"
>
<ListItem>
<ListItem>
<Card
:hoverable=
"true"
:class=
"`$
{prefixCls}__card`">
<Card
:hoverable=
"true"
:class=
"`$
{prefixCls}__card`">
<img
:src=
"demoImg"
/>
<img
:src=
"demoImg"
/>
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
<div
:class=
"`$
{prefixCls}__card-content`">
{{
item
.
content
}}
</div>
<div
:class=
"`$
{prefixCls}__card-content`">
{{
item
.
content
}}
</div>
</Card>
</Card>
</ListItem>
</ListItem>
</
C
ol>
</
a-c
ol>
</
template
>
</
template
>
</
R
ow>
</
a-r
ow>
</List>
</List>
</template>
</template>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
...
src/views/demo/page/account/center/data.tsx
View file @
abb0cfae
...
@@ -60,7 +60,7 @@ export const details: ListItem[] = [
...
@@ -60,7 +60,7 @@ export const details: ListItem[] = [
},
},
{
{
icon
:
'
ant-design:cluster-outlined
'
,
icon
:
'
ant-design:cluster-outlined
'
,
title
:
'
蚂蚁金服-
某某某事业群
'
,
title
:
'
某某某事业群
'
,
},
},
{
{
icon
:
'
ant-design:home-outlined
'
,
icon
:
'
ant-design:home-outlined
'
,
...
@@ -96,10 +96,9 @@ export const articleList = (() => {
...
@@ -96,10 +96,9 @@ export const articleList = (() => {
const
result
:
any
[]
=
[];
const
result
:
any
[]
=
[];
for
(
let
i
=
0
;
i
<
4
;
i
++
)
{
for
(
let
i
=
0
;
i
<
4
;
i
++
)
{
result
.
push
({
result
.
push
({
title
:
'
Ant Design
'
,
title
:
'
Vben Admin
'
,
description
:
[
'
Ant Design
'
,
'
设计语言
'
,
'
蚂蚁金服
'
],
description
:
[
'
Vben
'
,
'
设计语言
'
,
'
Typescript
'
],
content
:
content
:
'
基于Vue Next, TypeScript, Ant Design实现的一套完整的企业级后台管理系统。
'
,
'
段落示意:蚂蚁金服设计平台 ant.design,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案。蚂蚁金服设计平台 ant.design,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案
'
,
time
:
'
2020-11-14 11:20
'
,
time
:
'
2020-11-14 11:20
'
,
});
});
}
}
...
@@ -110,9 +109,9 @@ export const applicationList = (() => {
...
@@ -110,9 +109,9 @@ export const applicationList = (() => {
const
result
:
any
[]
=
[];
const
result
:
any
[]
=
[];
for
(
let
i
=
0
;
i
<
8
;
i
++
)
{
for
(
let
i
=
0
;
i
<
8
;
i
++
)
{
result
.
push
({
result
.
push
({
title
:
'
Ant Desig
n
'
,
title
:
'
Vben Admi
n
'
,
icon
:
'
emojione-monotone:letter-a
'
,
icon
:
'
emojione-monotone:letter-a
'
,
color
:
'
#
7c51b8
'
,
color
:
'
#
1890ff
'
,
active
:
'
100
'
,
active
:
'
100
'
,
new
:
'
1,799
'
,
new
:
'
1,799
'
,
download
:
'
bx:bx-download
'
,
download
:
'
bx:bx-download
'
,
...
...
src/views/demo/page/account/center/index.vue
View file @
abb0cfae
<
template
>
<
template
>
<div
:class=
"prefixCls"
>
<div
:class=
"prefixCls"
>
<
R
ow
:class=
"`$
{prefixCls}-top`">
<
a-r
ow
:class=
"`$
{prefixCls}-top`">
<
C
ol
:span=
"9"
:class=
"`$
{prefixCls}-col`">
<
a-c
ol
:span=
"9"
:class=
"`$
{prefixCls}-col`">
<
R
ow>
<
a-r
ow>
<
C
ol
:span=
"8"
>
<
a-c
ol
:span=
"8"
>
<div
:class=
"`$
{prefixCls}-top__avatar`">
<div
:class=
"`$
{prefixCls}-top__avatar`">
<img
width=
"70"
:src=
"headerImg"
/>
<img
width=
"70"
:src=
"headerImg"
/>
<span>
Serati Ma
</span>
<span>
Serati Ma
</span>
<div>
海纳百川,有容乃大
</div>
<div>
海纳百川,有容乃大
</div>
</div>
</div>
</
C
ol>
</
a-c
ol>
<
C
ol
:span=
"16"
>
<
a-c
ol
:span=
"16"
>
<div
:class=
"`$
{prefixCls}-top__detail`">
<div
:class=
"`$
{prefixCls}-top__detail`">
<template
v-for=
"(detail, index) in details"
:key=
"index"
>
<template
v-for=
"(detail, index) in details"
:key=
"index"
>
<p>
<p>
...
@@ -19,25 +19,25 @@
...
@@ -19,25 +19,25 @@
</p>
</p>
</
template
>
</
template
>
</div>
</div>
</
C
ol>
</
a-c
ol>
</
R
ow>
</
a-r
ow>
</
C
ol>
</
a-c
ol>
<
C
ol
:span=
"7"
:class=
"`${prefixCls}-col`"
>
<
a-c
ol
:span=
"7"
:class=
"`${prefixCls}-col`"
>
<CollapseContainer
title=
"标签"
:canExpan=
"false"
>
<CollapseContainer
title=
"标签"
:canExpan=
"false"
>
<
template
v-for=
"(tag, index) in tags"
:key=
"index"
>
<
template
v-for=
"(tag, index) in tags"
:key=
"index"
>
<Tag
class=
"mb-2"
>
{{
tag
}}
</Tag>
<Tag
class=
"mb-2"
>
{{
tag
}}
</Tag>
</
template
>
</
template
>
</CollapseContainer>
</CollapseContainer>
</
C
ol>
</
a-c
ol>
<
C
ol
:span=
"8"
:class=
"`${prefixCls}-col`"
>
<
a-c
ol
:span=
"8"
:class=
"`${prefixCls}-col`"
>
<CollapseContainer
:class=
"`${prefixCls}-top__team`"
title=
"团队"
:canExpan=
"false"
>
<CollapseContainer
:class=
"`${prefixCls}-top__team`"
title=
"团队"
:canExpan=
"false"
>
<div
v-for=
"(team, index) in teams"
:key=
"index"
:class=
"`${prefixCls}-top__team-item`"
>
<div
v-for=
"(team, index) in teams"
:key=
"index"
:class=
"`${prefixCls}-top__team-item`"
>
<Icon
:icon=
"team.icon"
:color=
"team.color"
/>
<Icon
:icon=
"team.icon"
:color=
"team.color"
/>
<span>
{{ team.title }}
</span>
<span>
{{ team.title }}
</span>
</div>
</div>
</CollapseContainer>
</CollapseContainer>
</
C
ol>
</
a-c
ol>
</
R
ow>
</
a-r
ow>
<div
:class=
"`${prefixCls}-bottom`"
>
<div
:class=
"`${prefixCls}-bottom`"
>
<Tabs>
<Tabs>
<
template
v-for=
"item in achieveList"
:key=
"item.key"
>
<
template
v-for=
"item in achieveList"
:key=
"item.key"
>
...
...
src/views/demo/page/account/setting/AccountBind.vue
View file @
abb0cfae
...
@@ -9,7 +9,9 @@
...
@@ -9,7 +9,9 @@
</
template
>
</
template
>
<
template
#title
>
<
template
#title
>
{{
item
.
title
}}
{{
item
.
title
}}
<div
v-if=
"item.extra"
class=
"extra"
>
{{
item
.
extra
}}
</div>
<a-button
type=
"link"
size=
"small"
v-if=
"item.extra"
class=
"extra"
>
{{
item
.
extra
}}
</a-button>
</
template
>
</
template
>
<
template
#description
>
<
template
#description
>
<div>
{{
item
.
description
}}
</div>
<div>
{{
item
.
description
}}
</div>
...
@@ -52,8 +54,6 @@
...
@@ -52,8 +54,6 @@
float: right;
float: right;
margin-top: 10px;
margin-top: 10px;
margin-right: 30px;
margin-right: 30px;
font-weight: normal;
color: #1890ff;
cursor: pointer;
cursor: pointer;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment