You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

231 lines
9.0 KiB

import Mock from 'mockjs'
const data=Mock.mock('mockjs',{
"regUserData|12": [
{
"app_id|1": 1,
'date|+1': ['2017-07-01','2017-07-02','2017-07-03','2017-07-04','2017-07-05',
'2017-07-06','2017-07-07','2017-07-08','2017-07-09','2017-07-10','2017-07-11','2017-07-12'],
"type": 1,
"value|6-99":2
}
],
"activeUserData|24": [
{
"app_id|1": 1,
"date|+1": ['2017-07-01','2017-07-02','2017-07-03','2017-07-04','2017-07-05',
'2017-07-06','2017-07-07','2017-07-08','2017-07-09','2017-07-10','2017-07-11','2017-07-12'],
"type|+1": ['1','2'],
"value|6-100": 25
}
],
"forumPostData|12": [
{
"app_id|1": ['0','1','2'],
"date|+1": ['2017-07-01','2017-07-02','2017-07-03','2017-07-04','2017-07-05',
'2017-07-06','2017-07-07','2017-07-08','2017-07-09','2017-07-10','2017-07-11','2017-07-12'],
"type|1": 1,
"value|6-100": 10
}
],
"userList": {
"count": 2,
"curPage": 1,
"totalPage": 1,
"pageSize": 15,
"items|30": [
{
"id|+1": 1,
"dev_id|+1": 1,
"player_id|1000000000-1999999999": 1074000025,
"mobile|10000000000-19999999999": 13534345482,
"email": "344@qq.com",
"created": "2017-06-24 15:56:36"
}
],
"next": 0
},
"data1": {
"appInfo|4": [ // app信息
{
"id|+1": 1,
"name|+1": ["test","疾行小球","fird big","appsdk"],
"icon": "",
"platform|1": ["0","1","2"],
"status|1": ["测试","发布"],
"has_auth|1": ["1","0"] // 1:当前成员拥有权限,0:当前成员无权限
}
],
"menuInfo": [ // 当前CP管理员拥有的菜单
{
"id": "165",
"name": "SDK独立版管理",
"parent": "0",
"route": "/wpk/*",
"sort": "2",
"data": "SDK独立版管理",
"status": "1",
"front_route": "",
"_child": [
{
"id": "177",
"name": "数据分析",
"parent": "165",
"route": "/wpk/analysis/index",
"sort": "1",
"data": "数据分析",
"status": "1",
"front_route": "wpk_analysis_index",
"depth": 1,
"statusText": "显示"
},
{
"id": "166",
"name": "运营模块管理",
"parent": "165",
"routes": "/wpk/block/*",
"sort": "2",
"data": "运营模块管理",
"status": "1",
"front_route": "",
"_child": [
{
"id": "167",
"name": "区块列表",
"parent": "166",
"route": "/wpk/block/list",
"sort": "",
"data": "",
"status": "1",
"front_route": "block",
"depth": 2,
"statusText": "显示"
},
{
"id": "168",
"name": "区块类型列表",
"parent": "166",
"route": "/wpk/block/type-list",
"sort": "",
"data": "区块类型列表",
"status": "1",
"front_route": "block_type",
"depth": 2,
"statusText": "显示"
},
{
"id": "169",
"name": "区块内容类型列表",
"parent": "166",
"route": "/wpk/block/content-type-list",
"sort": "",
"data": "区块内容类型列表",
"status": "1",
"front_route": "block_content_type",
"depth": 2,
"statusText": "显示"
}
],
"depth": 1, // 菜单深度
"statusText": "显示"
},
{
"id": "175",
"name": "成员管理",
"parent": "165",
"routes": "/wpk/member/*",
"sort": "3",
"data": "成员管理",
"status": "1",
"front_route": "",
"_child": [
{
"id": "176",
"name": "成员列表",
"parent": "175",
"route": "/wpk/member/list",
"sort": "",
"data": "成员列表",
"status": "1",
"front_route": "wpk_member_list",
"depth": 2,
"statusText": "显示"
},
{
"id": "177",
"name": "成员信息",
"parent": "176",
"route": "/wpk/member/lists",
"sort": "",
"data": "成员信息",
"status": "1",
"front_route": "wpk_member_lists",
"depth": 2,
"statusText": "显示"
}
],
"depth": 1,
"statusText": "显示"
}
],
"depth": 0,
"statusText": "显示"
}
],
"memberMenuInfo": [ // 当前cp成员拥有的菜单项权限
"/wpk/block/type-list",
"/wpk/block/content-type-list"
]
},
"data": {
"count": 10,
"curPage": 1,
"totalPage": 1,
"pageSize": 15,
"items|6": [
{
"thread_id|+1": 1,
"subject|1": ["主题标题主题标题主题标题"],
"created": new Date(),
"last_post_time": new Date(),
"reply_times|0-300": 0,
"view_times": "34",
"praise_times|0-300": 0,
"fav_times|0-300": 0,
"share_times|0-300": 0,
"special_type|1": ["0","1"],
"is_closed": "0",
"author_player_id": "1074000025",
"thread_icon": {
"icon_name": "精华",
"icon_background_color": "#123123",
"icon_font_color": "#fffff",
"icon_img": "http://idreamsky.com"
},
"author_data": {
"player_id": "1074000025",
"nick_name": "player1074000025",
"avatar_url": "",
"icon": [
{
"icon_name": "精华",
"icon_background_color": "#FFFFFF",
"icon_font_color": "#kkkkkk",
"icon_img": "http://sssssss"
}
],
"medal": [
{
"medal_description": "勋章",
"medal_img": "http://sssssss"
}
]
}
}
],
"next": 0
},
})
export default data;