简要描述:
请求域名:
请求URL:
POST:plugin.sales-report.Frontend.controllers.list.index
参数:
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"amounts": 0,
"banners": [
{
"id": 12,
"uniacid": 2,
"pic_url": "http://test3.app/attachment/image/f1607d30629618d82af9a56848b0426a.jpg",
"link": "",
"created_at": "2020-11-04 11:59:10",
"updated_at": "2020-11-04 11:59:10"
}
],
"levels": [
{
"name": "等级一",
"total": "420.00",
"today_total": "0.00",
"nums": 8
},
{
"name": "等级二",
"total": "1120.00",
"today_total": "0.00",
"nums": 8
},
{
"name": "等级三",
"total": "980.00",
"today_total": "0.00",
"nums": 8
},
{
"name": "等级四",
"total": 0,
"today_total": "0.00",
"nums": 8
},
{
"name": "等级五",
"total": "700.00",
"today_total": "0.00",
"nums": 8
},
{
"name": "6",
"total": 0,
"today_total": "0.00",
"nums": 8
},
{
"name": "主任",
"total": 0,
"today_total": "0.00",
"nums": 8
},
{
"name": "主任",
"total": 0,
"today_total": "0.00",
"nums": 8
},
{
"name": "消费商",
"total": "1260.00",
"today_total": "0.00",
"nums": 8
},
{
"name": "主任",
"total": 0,
"today_total": "0.00",
"nums": 8
}
],
"pools": [
{
"id": 2,
"uniacid": 2,
"name": "b",
"sort": 3,
"amount": "11.00",
"created_at": "1970-01-01 08:00:01",
"updated_at": "2020-11-04 11:51:36",
"today": "5.00"
},
{
"id": 4,
"uniacid": 2,
"name": "2",
"sort": 3,
"amount": "4.00",
"created_at": "2020-11-04 11:51:27",
"updated_at": "2020-11-04 11:51:27",
"today": 0
},
{
"id": 3,
"uniacid": 2,
"name": "c",
"sort": 2,
"amount": "5.00",
"created_at": "1970-01-01 08:00:01",
"updated_at": "1970-01-01 08:00:01",
"today": 0
},
{
"id": 1,
"uniacid": 2,
"name": "a",
"sort": 1,
"amount": "3.00",
"created_at": "1970-01-01 08:00:01",
"updated_at": "1970-01-01 08:00:01",
"today": 0
}
]
}
}
返回参数说明:
参数名 |
类型 |
说明 |
result |
int |
0:失败,1:成功 |
msg |
string |
提示消息 |
data |
array |
返回数据 |
返回参数 data 说明:
参数名 |
类型 |
说明 |
amounts |
string |
总销量 |
banners |
array |
轮播图 |
levels |
array |
等级列表 |
pools |
array |
池子列表,接在等级列表后面 |
返回参数 data.levels 说明:
参数名 |
类型 |
说明 |
name |
string |
等级名 |
total |
decimal |
累计 |
today_total |
decimal |
今日 |
num |
int |
人数 |
返回参数 data.pools 说明:
参数名 |
类型 |
说明 |
name |
string |
名字 |
amount |
decimal |
累计 |
today |
decimal |
今日 |
备注: