Commit abb0cfae0616c8ed85a75eaf61d490275b984ed0

Authored by vben
1 parent 661db0c7

chore: update center page

mock/demo/account.ts
... ... @@ -8,7 +8,7 @@ const userInfo = {
8 8 signature: '海纳百川,有容乃大',
9 9 introduction: '微笑着,努力着,欣赏着',
10 10 title: '交互专家',
11   - group: '蚂蚁集团-某某某事业群-某某平台部-某某技术部-UED',
  11 + group: '蚂蚁集团11-某某某事业群-某某平台部-某某技术部-UED',
12 12 tags: [
13 13 {
14 14 key: '0',
... ... @@ -38,16 +38,8 @@ const userInfo = {
38 38 notifyCount: 12,
39 39 unreadCount: 11,
40 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 45 export default [
... ...
src/api/demo/account.ts
... ... @@ -3,14 +3,12 @@ import { GetAccountInfoModel } from './model/accountModel';
3 3  
4 4 enum Api {
5 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 10 return defHttp.request<GetAccountInfoModel>({
12 11 url: Api.ACCOUNT_INFO,
13 12 method: 'GET',
14   - params,
15 13 });
16 14 }
... ...
src/views/demo/page/account/center/Application.vue
1 1 <template>
2 2 <List :class="prefixCls">
3   - <Row :gutter="16">
  3 + <a-row :gutter="16">
4 4 <template v-for="(item, index) in list" :key="index">
5   - <Col :span="6">
  5 + <a-col :span="6">
6 6 <ListItem>
7 7 <Card :hoverable="true" :class="`${prefixCls}__card`">
8 8 <div :class="`${prefixCls}__card-title`">
... ... @@ -22,9 +22,9 @@
22 22 />
23 23 </Card>
24 24 </ListItem>
25   - </Col>
  25 + </a-col>
26 26 </template>
27   - </Row>
  27 + </a-row>
28 28 </List>
29 29 </template>
30 30 <script lang="ts">
... ...
src/views/demo/page/account/center/Project.vue
1 1 <template>
2 2 <List :class="prefixCls">
3   - <Row :gutter="16">
  3 + <a-row :gutter="16">
4 4 <template v-for="(item, index) in list" :key="index">
5   - <Col :span="6">
  5 + <a-col :span="6">
6 6 <ListItem>
7 7 <Card :hoverable="true" :class="`${prefixCls}__card`">
8 8 <img :src="demoImg" />
... ... @@ -12,9 +12,9 @@
12 12 <div :class="`${prefixCls}__card-content`"> {{ item.content }}</div>
13 13 </Card>
14 14 </ListItem>
15   - </Col>
  15 + </a-col>
16 16 </template>
17   - </Row>
  17 + </a-row>
18 18 </List>
19 19 </template>
20 20 <script lang="ts">
... ...
src/views/demo/page/account/center/data.tsx
... ... @@ -60,7 +60,7 @@ export const details: ListItem[] = [
60 60 },
61 61 {
62 62 icon: 'ant-design:cluster-outlined',
63   - title: '蚂蚁金服-某某某事业群',
  63 + title: '某某某事业群',
64 64 },
65 65 {
66 66 icon: 'ant-design:home-outlined',
... ... @@ -96,10 +96,9 @@ export const articleList = (() =&gt; {
96 96 const result: any[] = [];
97 97 for (let i = 0; i < 4; i++) {
98 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 102 time: '2020-11-14 11:20',
104 103 });
105 104 }
... ... @@ -110,9 +109,9 @@ export const applicationList = (() =&gt; {
110 109 const result: any[] = [];
111 110 for (let i = 0; i < 8; i++) {
112 111 result.push({
113   - title: 'Ant Design',
  112 + title: 'Vben Admin',
114 113 icon: 'emojione-monotone:letter-a',
115   - color: '#7c51b8',
  114 + color: '#1890ff',
116 115 active: '100',
117 116 new: '1,799',
118 117 download: 'bx:bx-download',
... ...
src/views/demo/page/account/center/index.vue
1 1 <template>
2 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 7 <div :class="`${prefixCls}-top__avatar`">
8 8 <img width="70" :src="headerImg" />
9 9 <span>Serati Ma</span>
10 10 <div>海纳百川,有容乃大</div>
11 11 </div>
12   - </Col>
13   - <Col :span="16">
  12 + </a-col>
  13 + <a-col :span="16">
14 14 <div :class="`${prefixCls}-top__detail`">
15 15 <template v-for="(detail, index) in details" :key="index">
16 16 <p>
... ... @@ -19,25 +19,25 @@
19 19 </p>
20 20 </template>
21 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 26 <CollapseContainer title="标签" :canExpan="false">
27 27 <template v-for="(tag, index) in tags" :key="index">
28 28 <Tag class="mb-2">{{ tag }}</Tag>
29 29 </template>
30 30 </CollapseContainer>
31   - </Col>
32   - <Col :span="8" :class="`${prefixCls}-col`">
  31 + </a-col>
  32 + <a-col :span="8" :class="`${prefixCls}-col`">
33 33 <CollapseContainer :class="`${prefixCls}-top__team`" title="团队" :canExpan="false">
34 34 <div v-for="(team, index) in teams" :key="index" :class="`${prefixCls}-top__team-item`">
35 35 <Icon :icon="team.icon" :color="team.color" />
36 36 <span>{{ team.title }}</span>
37 37 </div>
38 38 </CollapseContainer>
39   - </Col>
40   - </Row>
  39 + </a-col>
  40 + </a-row>
41 41 <div :class="`${prefixCls}-bottom`">
42 42 <Tabs>
43 43 <template v-for="item in achieveList" :key="item.key">
... ...
src/views/demo/page/account/setting/AccountBind.vue
... ... @@ -9,7 +9,9 @@
9 9 </template>
10 10 <template #title>
11 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 15 </template>
14 16 <template #description>
15 17 <div>{{ item.description }} </div>
... ... @@ -52,8 +54,6 @@
52 54 float: right;
53 55 margin-top: 10px;
54 56 margin-right: 30px;
55   - font-weight: normal;
56   - color: #1890ff;
57 57 cursor: pointer;
58 58 }
59 59 </style>
... ...