Commit 8002969f authored by 陈帅's avatar 陈帅

new mock data url\

parent 233a1418
...@@ -177,13 +177,12 @@ export default { ...@@ -177,13 +177,12 @@ export default {
// 支持值为 Object 和 Array // 支持值为 Object 和 Array
'GET /api/currentUser': { 'GET /api/currentUser': {
name: 'Serati Ma', name: 'Serati Ma',
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png', avatar: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
userid: '00000001', userid: '00000001',
email: 'antdesign@alipay.com', email: 'antdesign@alipay.com',
signature: '海纳百川,有容乃大', signature: '海纳百川,有容乃大',
title: '交互专家', title: '交互专家',
group: '蚂蚁金服-某某某事业群-某某平台部-某某技术部-UED', group: '蚂蚁金服-某某某事业群-某某平台部-某某技术部-UED',
notice: getNotice,
tags: [ tags: [
{ {
key: '0', key: '0',
...@@ -210,6 +209,68 @@ export default { ...@@ -210,6 +209,68 @@ export default {
label: '海纳百川', label: '海纳百川',
}, },
], ],
notice: [
{
id: 'xxx1',
title: titles[0],
logo: avatars[0],
description: '那是一种内在的东西,他们到达不了,也无法触及的',
updatedAt: new Date(),
member: '科学搬砖组',
href: '',
memberLink: '',
},
{
id: 'xxx2',
title: titles[1],
logo: avatars[1],
description: '希望是一个好东西,也许是最好的,好东西是不会消亡的',
updatedAt: new Date('2017-07-24'),
member: '全组都是吴彦祖',
href: '',
memberLink: '',
},
{
id: 'xxx3',
title: titles[2],
logo: avatars[2],
description: '城镇中有那么多的酒馆,她却偏偏走进了我的酒馆',
updatedAt: new Date(),
member: '中二少女团',
href: '',
memberLink: '',
},
{
id: 'xxx4',
title: titles[3],
logo: avatars[3],
description: '那时候我只会想自己想要什么,从不想自己拥有什么',
updatedAt: new Date('2017-07-23'),
member: '程序员日常',
href: '',
memberLink: '',
},
{
id: 'xxx5',
title: titles[4],
logo: avatars[4],
description: '凛冬将至',
updatedAt: new Date('2017-07-23'),
member: '高逼格设计天团',
href: '',
memberLink: '',
},
{
id: 'xxx6',
title: titles[5],
logo: avatars[5],
description: '生命就像一盒巧克力,结果往往出人意料',
updatedAt: new Date('2017-07-23'),
member: '骗你来学计算机',
href: '',
memberLink: '',
},
],
notifyCount: 12, notifyCount: 12,
unreadCount: 11, unreadCount: 11,
country: 'China', country: 'China',
......
...@@ -70,5 +70,5 @@ const getProfileAdvancedData = { ...@@ -70,5 +70,5 @@ const getProfileAdvancedData = {
}; };
export default { export default {
'GET /api/advanced': getProfileAdvancedData, 'GET /api/profile/advanced': getProfileAdvancedData,
}; };
import request from 'umi-request'; import request from 'umi-request';
export async function queryAdvancedProfile() { export async function queryAdvancedProfile() {
return request('/api/advanced'); return request('/api/profile/advanced');
} }
...@@ -82,5 +82,5 @@ const getProfileBasicData = { ...@@ -82,5 +82,5 @@ const getProfileBasicData = {
}; };
export default { export default {
'GET /api/basic': getProfileBasicData, 'GET /api/profile/basic': getProfileBasicData,
}; };
import request from 'umi-request'; import request from 'umi-request';
export async function queryBasicProfile() { export async function queryBasicProfile() {
return request('/api/basic'); return request('/api/profile/basic');
} }
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "cross-env PAGES_PATH='AccountCenter/src' umi dev", "dev": "cross-env PAGES_PATH='ProfileAdvanced/src' umi dev",
"lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier", "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"lint-staged:ts": "tslint", "lint-staged:ts": "tslint",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment