简要描述:
请求域名:
请求URL:
GET/获取推广中心数据:finance.income-page.index
参数:
参数名 |
是否必须 |
类型 |
说明 |
version |
否 |
int |
版本号 |
mini_version |
否 |
int |
小程序版本号 |
返回示例:版本大于1.1.109(暂时设置)并且推广中心模板选择01或者未选择推广中心模板时返回优化后数据
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"template_set": "",
"income_page": {
"set": {
"background_color": "#a4c2f4"
},
"button_enabled": {
"is_show_performance": 0,
"share_page": true,
"plugin_settle_show": true
},
"button": [
{
"title": "领取收益",
"icon": "icon-fontclass-leiji",
"mini_url": "/packageA/member/extension/myEarnings/myEarnings",
"url": "myEarnings"
},
{
"title": "收入明细",
"icon": "icon-fontclass-shouru1",
"mini_url": "/packageA/member/extension/incomedetails/incomedetails",
"url": "incomedetails"
},
{
"title": "提成明细",
"icon": "icon-fontclass-ticheng",
"mini_url": "/packageA/member/presentationRecord_v2/presentationRecord_v2?orderType=extension",
"url": "presentationRecord"
},
{
"title": "高灯提现",
"icon": "icon-fontclass-gaodeng1",
"mini_url": "",
"url": "https://toolh5-ets.wetax.com.cn/?appkey=NTk4NjA0Nzc0ZjlmNDc0MGI0ZjhkYjViZGE5NDExNTM=&data=4TjRndaVquvtElgpk6DyvpnO0hcj5RtHZR3JEzkXeeKmTYBagzYpaKG+vJBnG5iQBsIH2AElMrZMTaIhq7/7FVOg1lTG6NiPzr386KkOr/VwFOvjruZcFusx9WIeEDgZ8dPGX1yS3oATvLP9zs6STyhlL6j2gdXo3Zjg0qWJeabbRjM6Zi1WQxwBM162h7b7U8pkmWvgyQ+03hkpY368B+Vn+ZqYCXRGCkkusMIP+Ngu6iHIvIcftno2hgal56Qu+VR5SDtghjZXwTicJ7pmnIL9WPwniIAM0GKmE85TU8rc+0BYNkIDxeLTkKcejBVVIN3/18Ffl9lHxyyRg6oLIg=="
}
],
"info": {
"avatar": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
"nickname": "13226204088",
"member_id": 164934
},
"identity": [
"普通会员1",
"123"
],
"income_statistic": {
"income_total": null,
"income_withdraw": null,
"income_un_withdraw": null,
"income_withdrawing": null,
"team_fans": 0,
"first_fans": null
},
"income_dynamic": {
"x_axis": [
"07/16",
"07/17",
"07/18",
"07/19",
"07/20",
"07/21",
"07/22",
"07/23",
"07/24",
"07/25",
"07/26",
"07/27",
"07/28",
"07/29",
"07/30"
],
"income_count": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"total_amount": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
"available": [
{
"url": "circleExtend",
"icon": "icon-fontclass-quanzi2",
"mark": "circle",
"title": "圈子",
"level": "",
"value": 0,
"is_agent": true,
"is_relation": true,
"mini_url": "/packageH/circleCommunity/circleExtend/circleExtend"
},
{
"url": "distribution",
"icon": "icon-fenxiao01",
"mark": "commission",
"title": "分销",
"level": "123",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageA/member/distribution/distribution"
},
{
"url": "consumerRewardIndex",
"icon": "icon-fontclass-xiaofeijiangli",
"mark": "consumerRewardIndex",
"title": "消费奖励",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageH/consumerReward/consumerRewardIndex/consumerRewardIndex"
},
{
"url": "Integral_love",
"icon": "icon-member_integral",
"mark": "integral",
"title": "消费积分",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageB/member/Integral_love/Integral_love"
},
{
"url": "love_index",
"icon": "icon-love-value",
"mark": "love_withdraw",
"title": "爱心值",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageB/member/love/Love_index/Love_index"
},
{
"url": "love_index",
"icon": "icon-love-value-reward",
"mark": "love_return",
"title": "爱心值奖励",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageB/member/love/Love_index/Love_index"
},
{
"url": "grab_group_reward",
"icon": "icon-member_groupbuy",
"mark": "snatch_regiment_return",
"title": "抢团",
"level": "",
"value": 0,
"is_agent": true,
"is_relation": true,
"mini_url": "/packageE/grab_group/grab_group_reward/grab_group_reward"
},
{
"url": "courseIncome",
"icon": "icon-lecturer01",
"mark": "video_demand",
"title": "讲师分红",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageB/member/income/courseIncome/courseIncome"
}
],
"unavailable": [
{
"url": "applyRegionalAgency",
"icon": "icon-quyu01",
"mark": "area_dividend",
"title": "区域分红",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageB/member/income/applyRegionalAgency/applyRegionalAgency"
},
{
"url": "distributorIndex",
"icon": "icon-member_distributors",
"mark": "icon-member_distributors",
"title": "代理商",
"level": "",
"value": 0,
"is_agent": true,
"is_relation": true,
"mini_url": ""
},
{
"url": "hotelApply",
"icon": "icon-member-cash1",
"mark": "hotel_cashier",
"title": "酒店收银台",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageA/member/storeApply/storeApply?name=hotelApply"
},
{
"url": "hotelApply",
"icon": "icon-member-cash1",
"mark": "hotel_withdraw",
"title": "酒店提现",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageA/member/storeApply/storeApply?name=hotelApply"
},
{
"url": "anchorApply",
"icon": "icon-extension_host_reward",
"mark": "room",
"title": "主播分红",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageD/directSeeding/anchorApply/anchorApply"
},
{
"url": "storeApply",
"icon": "icon-member-cashier",
"mark": "store_cashier",
"title": "门店收银台",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageA/member/storeApply/storeApply"
},
{
"url": "storeApply",
"icon": "icon-member-cash1",
"mark": "store_withdraw",
"title": "门店提现",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": true,
"mini_url": "/packageA/member/storeApply/storeApply"
},
{
"url": "teamAgentCenter",
"icon": "icon-team-bonus",
"mark": "team_dividend",
"title": "经销商提成",
"level": "",
"value": "0.00",
"is_agent": true,
"is_relation": false,
"mini_url": "/packageB/member/income/teamAgentCenter/teamAgentCenter"
},
{
"url": "VideoReward",
"icon": "icon-reward_record",
"mark": "icon-reward_record",
"title": "发现视频",
"level": "",
"value": 0,
"is_agent": true,
"is_relation": true,
"mini_url": "/packageC/video_goods/VideoReward/VideoReward"
}
],
"plugin_data": [
{
"class": "icon-fontclass-erweima",
"id": "111111115",
"image": "/static/yunshop/designer/images/tool_a(2).png",
"is_open": true,
"name": "m-erweima",
"url": "m-erweima",
"title": "二维码"
},
{
"name": "article",
"title": "拓客文章",
"class": "icon-member-collect1",
"url": "notice",
"param": 0,
"image": "member_a(41).png",
"mini_url": "/packageA/member/notice/notice"
},
{
"name": "video-share",
"title": "拓客视频",
"class": "icon-extension_video",
"url": "VideoList",
"image": "member_a(73).png",
"mini_url": "/packageC/video_goods/VideoList/VideoList"
},
{
"name": "micro-communities",
"title": "种草社区",
"class": "icon-member_community",
"url": "MicroHome",
"image": "member_a(74).png",
"mini_url": "/packageC/micro_communities/microIndex/microIndex"
},
{
"name": "room",
"title": "直播",
"class": "icon-member_live_normal",
"url": "liveList",
"image": "member_a(92).png",
"mini_url": "/packageD/directSeeding/liveList/liveList"
}
],
"extension_order": {
"current_page": 1,
"data": [],
"first_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
"from": null,
"last_page": 1,
"last_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://yzmall.com/addons/yun_shop/api.php",
"per_page": 6,
"prev_page_url": null,
"to": null,
"total": 0
}
}
}
}
错误时返回:
{
"result": 0,
"msg": "获取失败"
}
返回参数说明:
参数名 |
类型 |
说明 |
background_color |
str |
主题色 |
button_enabled参数名 |
类型 |
说明 |
is_show_performance |
int |
是否开启营业额 0为开启 1为关闭 |
plugin_settle_show |
Boolean |
显示领取收益 |
share_page |
Boolean |
是否显示收入分享 |
button(按钮)参数名 |
类型 |
说明 |
title |
str |
按钮名 |
icon |
str |
icon类名 |
mini_url |
str |
小程序链接 |
url |
str |
H5链接 |
info(用户基础信息)参数名 |
类型 |
说明 |
avatar |
str |
头像 |
nickname |
str |
昵称 |
member_id |
int |
会员id |
identity(用户身份、等级)参数名 |
类型 |
说明 |
identity |
array |
用户身份、等级信息 |
income_statistic(收入、粉丝统计数据)参数名 |
类型 |
说明 |
income_total |
float |
累计收入 |
income_withdraw |
float |
已提现收入 |
income_un_withdraw |
float |
未提现收入 |
income_withdrawing |
float |
提现中收入 |
team_fans |
float |
团队粉丝 |
first_fans |
float |
直推粉丝 |
income_dynamic(收入动态)参数名 |
类型 |
说明 |
x_axis |
array |
x轴数据 |
income_count |
array |
收入笔数Y轴数据 |
total_amount |
array |
收入金额Y轴数据 |
available(权限)参数名 |
类型 |
说明 |
icon |
str |
icon类名 |
level |
str |
权限等级 |
title |
str |
权限标题 |
value |
str |
权限金额 |
unavailable(更多权限)参数名 |
类型 |
说明 |
icon |
str |
icon类名 |
level |
str |
更多权限等级 |
title |
str |
更多权限标题 |
value |
str |
更多权限金额 |
plugin_data(插件入口数据)参数名 |
类型 |
说明 |
数据结构跟会员中心的插件入口一致 |
|
|
fans_fission(粉丝裂变)参数名 |
类型 |
说明 |
totalFans |
int |
粉丝总数 |
maxHistory |
int |
历史单日最高 |
totalFans15 |
float |
15日粉丝总数 |
max15 |
float |
15日内单日最高 |
x_axis |
array |
统计图x轴数据 |
totalFansSeries |
array |
统计图粉丝总数Y周数据 |
fansNewSeries |
array |
统计图单日新增粉丝Y周数据 |
extension_order(推广订单数据(有分页))参数名 |
类型 |
说明 |
extension_order['data']['order_sn'] |
str |
订单号 |
extension_order['data']['goods_price'] |
str |
订单金额 |
extension_order['data']['price'] |
str |
订单支付金额 |
extension_order['data']['status_name'] |
str |
订单状态 |
extension_order['data']['create_time'] |
str |
订单时间 |
返回链接说明
参数名 |
类型 |
说明 |
data.income_page.jump_link |
string |
会员不是推广员进入推广中心时跳转的h5页面 |
data.income_page.small_jump_link |
string |
会员不是推广员进入推广中心时跳转的小程序页面 |
data.income_page.no_check_h5_url |
string |
推广条件选择申请,推广不需要审核时,前端点击申请后跳转的h5页面 |
data.income_page.no_check_mini_url |
string |
推广条件选择申请,推广不需要审核时,前端点击申请后跳转的小程序页面 |
备注: