diff --git a/mock/demo/account.ts b/mock/demo/account.ts index 40dc7af0..3c7d1fda 100644 --- a/mock/demo/account.ts +++ b/mock/demo/account.ts @@ -2,7 +2,7 @@ import { MockMethod } from 'vite-plugin-mock'; import { resultSuccess } from '../_util'; const userInfo = { - name: 'Serati Ma', + name: 'Vben', userid: '00000001', email: 'antdesign@alipay.com', signature: '海纳百川,有容乃大', diff --git a/src/assets/images/demo.png b/src/assets/images/demo.png new file mode 100644 index 00000000..0687c7bd Binary files /dev/null and b/src/assets/images/demo.png differ diff --git a/src/router/menus/modules/demo/page.ts b/src/router/menus/modules/demo/page.ts index 11b5af20..c9119149 100644 --- a/src/router/menus/modules/demo/page.ts +++ b/src/router/menus/modules/demo/page.ts @@ -1,3 +1,10 @@ +/* + * @description: Do not edit + * @author: cxiaoting + * @Date: 2020-11-13 14:00:37 + * @LastEditors: cxiaoting + * @LastEditTime: 2020-11-13 18:07:11 + */ import type { MenuModule } from '/@/router/types.d'; const menu: MenuModule = { orderNo: 20, @@ -58,6 +65,10 @@ const menu: MenuModule = { content: 'new', }, children: [ + { + path: 'center', + name: '个人中心', + }, { path: 'setting', name: '个人设置', diff --git a/src/router/routes/modules/demo/page.ts b/src/router/routes/modules/demo/page.ts index 0318c65e..004c683a 100644 --- a/src/router/routes/modules/demo/page.ts +++ b/src/router/routes/modules/demo/page.ts @@ -126,6 +126,14 @@ const page: AppRouteModule = { title: '个人页', }, children: [ + { + path: 'center', + name: 'AccountCenterPage', + component: () => import('/@/views/demo/page/account/center/index.vue'), + meta: { + title: '个人中心', + }, + }, { path: 'setting', name: 'AccountSettingPage', diff --git a/src/views/demo/page/account/center/Application.vue b/src/views/demo/page/account/center/Application.vue new file mode 100644 index 00000000..d9c3496f --- /dev/null +++ b/src/views/demo/page/account/center/Application.vue @@ -0,0 +1,93 @@ + + + diff --git a/src/views/demo/page/account/center/Article.vue b/src/views/demo/page/account/center/Article.vue new file mode 100644 index 00000000..89d53558 --- /dev/null +++ b/src/views/demo/page/account/center/Article.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/views/demo/page/account/center/Project.vue b/src/views/demo/page/account/center/Project.vue new file mode 100644 index 00000000..223368ab --- /dev/null +++ b/src/views/demo/page/account/center/Project.vue @@ -0,0 +1,69 @@ + + + diff --git a/src/views/demo/page/account/center/data.tsx b/src/views/demo/page/account/center/data.tsx new file mode 100644 index 00000000..e071492d --- /dev/null +++ b/src/views/demo/page/account/center/data.tsx @@ -0,0 +1,133 @@ +export interface ListItem { + title: string; + icon: string; + color?: string; +} + +export interface TabItem { + key: string; + name: string; + component: string; +} + +export const tags: string[] = [ + '很有想法的', + '专注设计', + '川妹子', + '大长腿', + '海纳百川', + '前端开发', + 'vue3', +]; + +export const teams: ListItem[] = [ + { + icon: 'ant-design:alipay-circle-outlined', + title: '科学搬砖组', + color: '#ff4000', + }, + { + icon: 'emojione-monotone:letter-a', + title: '中二少年团', + color: '#7c51b8', + }, + { + icon: 'ant-design:alipay-circle-outlined', + title: '高逼格设计', + color: '#00adf7', + }, + { + icon: 'ant-design:codepen-circle-filled', + title: '程序员日常', + color: '#00adf7', + }, + { + icon: 'ant-design:dribbble-circle-filled', + title: '科学搬砖组', + color: '#ff4000', + }, + { + icon: 'ant-design:behance-square-filled', + title: '程序员日常', + color: '#7c51b8', + }, +]; + +export const details: ListItem[] = [ + { + icon: 'ant-design:contacts-outlined', + title: '交互专家', + }, + { + icon: 'ant-design:cluster-outlined', + title: '蚂蚁金服-某某某事业群', + }, + { + icon: 'ant-design:home-outlined', + title: '福建省厦门市', + }, +]; + +export const achieveList: TabItem[] = [ + { + key: '1', + name: '文章', + component: 'Article', + }, + { + key: '2', + name: '应用', + component: 'Application', + }, + { + key: '3', + name: '项目', + component: 'Project', + }, +]; + +export const actions: any[] = [ + { icon: 'ant-design:star-outlined', text: '156', color: '#018ffb' }, + { icon: 'ant-design:like-filled', text: '156', color: '#459ae8' }, + { icon: 'ant-design:message-filled', text: '2', color: '#42d27d' }, +]; + +export const articleList = (() => { + const result: any[] = []; + for (let i = 0; i < 4; i++) { + result.push({ + title: 'Ant Design', + description: ['Ant Design', '设计语言', '蚂蚁金服'], + content: + '段落示意:蚂蚁金服设计平台 ant.design,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案。蚂蚁金服设计平台 ant.design,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案', + time: '2020-11-14 11:20', + }); + } + return result; +})(); + +export const applicationList = (() => { + const result: any[] = []; + for (let i = 0; i < 8; i++) { + result.push({ + title: 'Ant Design', + icon: 'emojione-monotone:letter-a', + color: '#7c51b8', + active: '100', + new: '1,799', + download: 'bx:bx-download', + }); + } + return result; +})(); + +export const projectList = (() => { + const result: any[] = []; + for (let i = 0; i < 8; i++) { + result.push({ + title: 'Angular', + content: '那是一种内在的东西, 他们到达不了,', + }); + } + return result; +})(); diff --git a/src/views/demo/page/account/center/index.vue b/src/views/demo/page/account/center/index.vue new file mode 100644 index 00000000..24ca27f6 --- /dev/null +++ b/src/views/demo/page/account/center/index.vue @@ -0,0 +1,149 @@ + + + + diff --git a/src/views/demo/page/account/setting/AccountBind.vue b/src/views/demo/page/account/setting/AccountBind.vue index 61441012..481ebbf4 100644 --- a/src/views/demo/page/account/setting/AccountBind.vue +++ b/src/views/demo/page/account/setting/AccountBind.vue @@ -22,7 +22,7 @@