Commit abb0cfae0616c8ed85a75eaf61d490275b984ed0
1 parent
661db0c7
chore: update center page
Showing
7 changed files
with
35 additions
and
46 deletions
mock/demo/account.ts
@@ -8,7 +8,7 @@ const userInfo = { | @@ -8,7 +8,7 @@ const userInfo = { | ||
8 | signature: '海纳百川,有容乃大', | 8 | signature: '海纳百川,有容乃大', |
9 | introduction: '微笑着,努力着,欣赏着', | 9 | introduction: '微笑着,努力着,欣赏着', |
10 | title: '交互专家', | 10 | title: '交互专家', |
11 | - group: '蚂蚁集团-某某某事业群-某某平台部-某某技术部-UED', | 11 | + group: '蚂蚁集团11-某某某事业群-某某平台部-某某技术部-UED', |
12 | tags: [ | 12 | tags: [ |
13 | { | 13 | { |
14 | key: '0', | 14 | key: '0', |
@@ -38,16 +38,8 @@ const userInfo = { | @@ -38,16 +38,8 @@ const userInfo = { | ||
38 | notifyCount: 12, | 38 | notifyCount: 12, |
39 | unreadCount: 11, | 39 | unreadCount: 11, |
40 | country: 'China', | 40 | country: 'China', |
41 | - province: { | ||
42 | - label: '浙江省', | ||
43 | - value: '330000', | ||
44 | - }, | ||
45 | - city: { | ||
46 | - label: '杭州市', | ||
47 | - value: '330100', | ||
48 | - }, | ||
49 | - address: '西湖区工专路 77 号', | ||
50 | - phone: '0752-268888888', | 41 | + address: '厦门市 77 号', |
42 | + phone: '0592-268888888', | ||
51 | }; | 43 | }; |
52 | 44 | ||
53 | export default [ | 45 | export default [ |
src/api/demo/account.ts
@@ -3,14 +3,12 @@ import { GetAccountInfoModel } from './model/accountModel'; | @@ -3,14 +3,12 @@ import { GetAccountInfoModel } from './model/accountModel'; | ||
3 | 3 | ||
4 | enum Api { | 4 | enum Api { |
5 | ACCOUNT_INFO = '/account/getAccountInfo', | 5 | ACCOUNT_INFO = '/account/getAccountInfo', |
6 | - SECURE_LIST = '/account/getSecureList', | ||
7 | } | 6 | } |
8 | 7 | ||
9 | // 获取个人中心--基础设置内容 | 8 | // 获取个人中心--基础设置内容 |
10 | -export function accountInfoApi(params: any) { | 9 | +export function accountInfoApi() { |
11 | return defHttp.request<GetAccountInfoModel>({ | 10 | return defHttp.request<GetAccountInfoModel>({ |
12 | url: Api.ACCOUNT_INFO, | 11 | url: Api.ACCOUNT_INFO, |
13 | method: 'GET', | 12 | method: 'GET', |
14 | - params, | ||
15 | }); | 13 | }); |
16 | } | 14 | } |
src/views/demo/page/account/center/Application.vue
1 | <template> | 1 | <template> |
2 | <List :class="prefixCls"> | 2 | <List :class="prefixCls"> |
3 | - <Row :gutter="16"> | 3 | + <a-row :gutter="16"> |
4 | <template v-for="(item, index) in list" :key="index"> | 4 | <template v-for="(item, index) in list" :key="index"> |
5 | - <Col :span="6"> | 5 | + <a-col :span="6"> |
6 | <ListItem> | 6 | <ListItem> |
7 | <Card :hoverable="true" :class="`${prefixCls}__card`"> | 7 | <Card :hoverable="true" :class="`${prefixCls}__card`"> |
8 | <div :class="`${prefixCls}__card-title`"> | 8 | <div :class="`${prefixCls}__card-title`"> |
@@ -22,9 +22,9 @@ | @@ -22,9 +22,9 @@ | ||
22 | /> | 22 | /> |
23 | </Card> | 23 | </Card> |
24 | </ListItem> | 24 | </ListItem> |
25 | - </Col> | 25 | + </a-col> |
26 | </template> | 26 | </template> |
27 | - </Row> | 27 | + </a-row> |
28 | </List> | 28 | </List> |
29 | </template> | 29 | </template> |
30 | <script lang="ts"> | 30 | <script lang="ts"> |
src/views/demo/page/account/center/Project.vue
1 | <template> | 1 | <template> |
2 | <List :class="prefixCls"> | 2 | <List :class="prefixCls"> |
3 | - <Row :gutter="16"> | 3 | + <a-row :gutter="16"> |
4 | <template v-for="(item, index) in list" :key="index"> | 4 | <template v-for="(item, index) in list" :key="index"> |
5 | - <Col :span="6"> | 5 | + <a-col :span="6"> |
6 | <ListItem> | 6 | <ListItem> |
7 | <Card :hoverable="true" :class="`${prefixCls}__card`"> | 7 | <Card :hoverable="true" :class="`${prefixCls}__card`"> |
8 | <img :src="demoImg" /> | 8 | <img :src="demoImg" /> |
@@ -12,9 +12,9 @@ | @@ -12,9 +12,9 @@ | ||
12 | <div :class="`${prefixCls}__card-content`"> {{ item.content }}</div> | 12 | <div :class="`${prefixCls}__card-content`"> {{ item.content }}</div> |
13 | </Card> | 13 | </Card> |
14 | </ListItem> | 14 | </ListItem> |
15 | - </Col> | 15 | + </a-col> |
16 | </template> | 16 | </template> |
17 | - </Row> | 17 | + </a-row> |
18 | </List> | 18 | </List> |
19 | </template> | 19 | </template> |
20 | <script lang="ts"> | 20 | <script lang="ts"> |
src/views/demo/page/account/center/data.tsx
@@ -60,7 +60,7 @@ export const details: ListItem[] = [ | @@ -60,7 +60,7 @@ export const details: ListItem[] = [ | ||
60 | }, | 60 | }, |
61 | { | 61 | { |
62 | icon: 'ant-design:cluster-outlined', | 62 | icon: 'ant-design:cluster-outlined', |
63 | - title: '蚂蚁金服-某某某事业群', | 63 | + title: '某某某事业群', |
64 | }, | 64 | }, |
65 | { | 65 | { |
66 | icon: 'ant-design:home-outlined', | 66 | icon: 'ant-design:home-outlined', |
@@ -96,10 +96,9 @@ export const articleList = (() => { | @@ -96,10 +96,9 @@ export const articleList = (() => { | ||
96 | const result: any[] = []; | 96 | const result: any[] = []; |
97 | for (let i = 0; i < 4; i++) { | 97 | for (let i = 0; i < 4; i++) { |
98 | result.push({ | 98 | result.push({ |
99 | - title: 'Ant Design', | ||
100 | - description: ['Ant Design', '设计语言', '蚂蚁金服'], | ||
101 | - content: | ||
102 | - '段落示意:蚂蚁金服设计平台 ant.design,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案。蚂蚁金服设计平台 ant.design,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案', | 99 | + title: 'Vben Admin', |
100 | + description: ['Vben', '设计语言', 'Typescript'], | ||
101 | + content: '基于Vue Next, TypeScript, Ant Design实现的一套完整的企业级后台管理系统。', | ||
103 | time: '2020-11-14 11:20', | 102 | time: '2020-11-14 11:20', |
104 | }); | 103 | }); |
105 | } | 104 | } |
@@ -110,9 +109,9 @@ export const applicationList = (() => { | @@ -110,9 +109,9 @@ export const applicationList = (() => { | ||
110 | const result: any[] = []; | 109 | const result: any[] = []; |
111 | for (let i = 0; i < 8; i++) { | 110 | for (let i = 0; i < 8; i++) { |
112 | result.push({ | 111 | result.push({ |
113 | - title: 'Ant Design', | 112 | + title: 'Vben Admin', |
114 | icon: 'emojione-monotone:letter-a', | 113 | icon: 'emojione-monotone:letter-a', |
115 | - color: '#7c51b8', | 114 | + color: '#1890ff', |
116 | active: '100', | 115 | active: '100', |
117 | new: '1,799', | 116 | new: '1,799', |
118 | download: 'bx:bx-download', | 117 | download: 'bx:bx-download', |
src/views/demo/page/account/center/index.vue
1 | <template> | 1 | <template> |
2 | <div :class="prefixCls"> | 2 | <div :class="prefixCls"> |
3 | - <Row :class="`${prefixCls}-top`"> | ||
4 | - <Col :span="9" :class="`${prefixCls}-col`"> | ||
5 | - <Row> | ||
6 | - <Col :span="8"> | 3 | + <a-row :class="`${prefixCls}-top`"> |
4 | + <a-col :span="9" :class="`${prefixCls}-col`"> | ||
5 | + <a-row> | ||
6 | + <a-col :span="8"> | ||
7 | <div :class="`${prefixCls}-top__avatar`"> | 7 | <div :class="`${prefixCls}-top__avatar`"> |
8 | <img width="70" :src="headerImg" /> | 8 | <img width="70" :src="headerImg" /> |
9 | <span>Serati Ma</span> | 9 | <span>Serati Ma</span> |
10 | <div>海纳百川,有容乃大</div> | 10 | <div>海纳百川,有容乃大</div> |
11 | </div> | 11 | </div> |
12 | - </Col> | ||
13 | - <Col :span="16"> | 12 | + </a-col> |
13 | + <a-col :span="16"> | ||
14 | <div :class="`${prefixCls}-top__detail`"> | 14 | <div :class="`${prefixCls}-top__detail`"> |
15 | <template v-for="(detail, index) in details" :key="index"> | 15 | <template v-for="(detail, index) in details" :key="index"> |
16 | <p> | 16 | <p> |
@@ -19,25 +19,25 @@ | @@ -19,25 +19,25 @@ | ||
19 | </p> | 19 | </p> |
20 | </template> | 20 | </template> |
21 | </div> | 21 | </div> |
22 | - </Col> | ||
23 | - </Row> | ||
24 | - </Col> | ||
25 | - <Col :span="7" :class="`${prefixCls}-col`"> | 22 | + </a-col> |
23 | + </a-row> | ||
24 | + </a-col> | ||
25 | + <a-col :span="7" :class="`${prefixCls}-col`"> | ||
26 | <CollapseContainer title="标签" :canExpan="false"> | 26 | <CollapseContainer title="标签" :canExpan="false"> |
27 | <template v-for="(tag, index) in tags" :key="index"> | 27 | <template v-for="(tag, index) in tags" :key="index"> |
28 | <Tag class="mb-2">{{ tag }}</Tag> | 28 | <Tag class="mb-2">{{ tag }}</Tag> |
29 | </template> | 29 | </template> |
30 | </CollapseContainer> | 30 | </CollapseContainer> |
31 | - </Col> | ||
32 | - <Col :span="8" :class="`${prefixCls}-col`"> | 31 | + </a-col> |
32 | + <a-col :span="8" :class="`${prefixCls}-col`"> | ||
33 | <CollapseContainer :class="`${prefixCls}-top__team`" title="团队" :canExpan="false"> | 33 | <CollapseContainer :class="`${prefixCls}-top__team`" title="团队" :canExpan="false"> |
34 | <div v-for="(team, index) in teams" :key="index" :class="`${prefixCls}-top__team-item`"> | 34 | <div v-for="(team, index) in teams" :key="index" :class="`${prefixCls}-top__team-item`"> |
35 | <Icon :icon="team.icon" :color="team.color" /> | 35 | <Icon :icon="team.icon" :color="team.color" /> |
36 | <span>{{ team.title }}</span> | 36 | <span>{{ team.title }}</span> |
37 | </div> | 37 | </div> |
38 | </CollapseContainer> | 38 | </CollapseContainer> |
39 | - </Col> | ||
40 | - </Row> | 39 | + </a-col> |
40 | + </a-row> | ||
41 | <div :class="`${prefixCls}-bottom`"> | 41 | <div :class="`${prefixCls}-bottom`"> |
42 | <Tabs> | 42 | <Tabs> |
43 | <template v-for="item in achieveList" :key="item.key"> | 43 | <template v-for="item in achieveList" :key="item.key"> |
src/views/demo/page/account/setting/AccountBind.vue
@@ -9,7 +9,9 @@ | @@ -9,7 +9,9 @@ | ||
9 | </template> | 9 | </template> |
10 | <template #title> | 10 | <template #title> |
11 | {{ item.title }} | 11 | {{ item.title }} |
12 | - <div v-if="item.extra" class="extra"> {{ item.extra }} </div> | 12 | + <a-button type="link" size="small" v-if="item.extra" class="extra"> |
13 | + {{ item.extra }} | ||
14 | + </a-button> | ||
13 | </template> | 15 | </template> |
14 | <template #description> | 16 | <template #description> |
15 | <div>{{ item.description }} </div> | 17 | <div>{{ item.description }} </div> |
@@ -52,8 +54,6 @@ | @@ -52,8 +54,6 @@ | ||
52 | float: right; | 54 | float: right; |
53 | margin-top: 10px; | 55 | margin-top: 10px; |
54 | margin-right: 30px; | 56 | margin-right: 30px; |
55 | - font-weight: normal; | ||
56 | - color: #1890ff; | ||
57 | cursor: pointer; | 57 | cursor: pointer; |
58 | } | 58 | } |
59 | </style> | 59 | </style> |