简要描述:
请求域名:
请求URL:
GET/&route=plugin.be-within-call.frontend.index.tab-one&sort_type=1
参数:
参数名 |
是否必须 |
类型 |
说明 |
sort_type |
是 |
int |
必传,值固定:1 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "home",
"data": {
"categoryList": {
"current_page": 1,
"data": [
{
"id": 1,
"uniacid": 6,
"sort": 0,
"type": 1,
"title": "需求分类",
"is_show": 1,
"is_recommend": 1,
"created_at": "1970-01-01 08:33:43",
"thumb": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
"thumb_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
}
],
"first_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://demo.yun.cn/addons/yun_shop/api.php",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
},
"recommendCategory": [
{
"id": 1,
"uniacid": 6,
"sort": 0,
"type": 1,
"title": "需求分类",
"is_show": 1,
"is_recommend": 1,
"created_at": "1970-01-01 08:33:43",
"thumb": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
"thumb_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
"has_many_need_order": [
{
"id": 1,
"order_id": 915,
"title": "上门按摩",
"service_fee": "100.00",
"order_sn": "SN2205261633F5DEE9",
"category_id": 1,
"thumb_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
"apply_status_name": "待审核"
}
]
}
]
}
}
返回参数说明:
返回参数说明(分页):
参数名 |
类型 |
说明 |
current_page |
int |
当前页数 |
per_page |
int |
每页条数 |
to |
int |
当前页条数 |
total |
int |
总条数(直推人数) |
data |
array |
内容数据 |
参数名 |
类型 |
说明 |
categoryList |
array |
分类集合 |
recommendCategory |
array |
推荐分类集合 |
recommendCategory参数说明:
参数名 |
类型 |
说明 |
title |
string |
分类名称 |
thumb_url |
string |
分类图片 |
has_many_need_order |
array |
需求订单集合 |
has_many_need_order.id |
int |
需求订单ID |
has_many_need_order.order_id |
int |
订单ID |
has_many_need_order.title |
string |
标题 |
has_many_need_order.service_fee |
string |
金额 |
has_many_need_order.thumb_url |
string |
图片 |
备注: