简要描述:
- 素材列表
请求域名:
- http://xx.com
请求URL:
plugin.material-center.api.centerlist.index
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 分页 - 页码 |
parentid | 否 | int | 一级分类id |
childid | 否 | int | 二级分类id |
search_title | 否 | string | 【搜索】标题 |
返回示例:
正确时返回:
{
result: 1,
msg: "成功",
data: {
list: {
total: 2,
per_page: 15,
current_page: 1,
last_page: 1,
next_page_url: null,
prev_page_url: null,
from: 1,
to: 2,
data: {
0: {
id: 5,
title: "11111111",
goods_id: 55,
logo: "http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/2/2019/03/R214DgvJ8Jl82J3747ggg2JgL1B7jz.jpg",
name: "test",
content: " 1232 ",
images: [
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/GPWq70vmt7bWE0gGEmt7mWvTmeGPoM.jpg",
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/JAm1M0acum4WakOPWmlus1p2a4ks9B.jpg",
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/PUJUy3y89jMZUUlfhA88Z92434BI9U.png",
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/Y6kNqbKUJzbs6udbBusB818K5DB16b.jpg",
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/GPWq70vmt7bWE0gGEmt7mWvTmeGPoM.jpg",
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/JAm1M0acum4WakOPWmlus1p2a4ks9B.jpg",
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/lOPma3v6U0wzWYH6A88313P3VH1h19.jpg",
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/xvFLITPjJeIs2EsIf4eytLyLW6eEjw.jpg"
],
created_at: "2019-05-21 15:24:58",
goods: {
id: 55,
uniacid: 3,
brand_id: 0,
type: 2,
status: 1,
display_order: 0,
title: "测试【请勿自行购买,不发货,不退款】",
thumb: "http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/2/2019/03/YdQbB2HQpBZ55sD48dFQP5QzmpHbjd.jpg",
thumb_url: "",
sku: "盒",
description: "",
content: "",
goods_sn: "",
product_sn: "",
market_price: "110.00",
price: "0.01",
cost_price: "110.00",
stock: 13,
reduce_stock_method: 1,
show_sales: 8,
real_sales: 8,
weight: "0.00",
has_option: 0,
is_new: 0,
is_hot: 0,
is_discount: 0,
is_recommand: 0,
is_comment: 0,
is_deleted: 0,
created_at: "2019-03-11 15:16:54",
deleted_at: null,
updated_at: "2019-03-26 10:56:16",
comment_num: 0,
is_plugin: 0,
plugin_id: 0,
virtual_sales: 0,
no_refund: 0,
need_address: 0,
type2: 1,
status_name: "上架"
}
},
1: {
id: 3,
title: "cew",
goods_id: 55,
logo: "http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/2/2019/03/R214DgvJ8Jl82J3747ggg2JgL1B7jz.jpg",
name: "test",
content: " 222222222222222222222222222 ",
images: [
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/Y6kNqbKUJzbs6udbBusB818K5DB16b.jpg",
"http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/xvFLITPjJeIs2EsIf4eytLyLW6eEjw.jpg"
],
created_at: "2019-05-17 11:45:53",
goods: {
id: 55,
uniacid: 3,
brand_id: 0,
type: 2,
status: 1,
display_order: 0,
title: "测试【请勿自行购买,不发货,不退款】",
thumb: "http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/2/2019/03/YdQbB2HQpBZ55sD48dFQP5QzmpHbjd.jpg",
thumb_url: "",
sku: "盒",
description: "",
content: "",
goods_sn: "",
product_sn: "",
market_price: "110.00",
price: "0.01",
cost_price: "110.00",
stock: 13,
reduce_stock_method: 1,
show_sales: 8,
real_sales: 8,
weight: "0.00",
has_option: 0,
is_new: 0,
is_hot: 0,
is_discount: 0,
is_recommand: 0,
is_comment: 0,
is_deleted: 0,
created_at: "2019-03-11 15:16:54",
deleted_at: null,
updated_at: "2019-03-26 10:56:16",
comment_num: 0,
is_plugin: 0,
plugin_id: 0,
virtual_sales: 0,
no_refund: 0,
need_address: 0,
type2: 1,
status_name: "上架"
}
},
},
}
},
set: {
title: "山人从",
icon: "http://huimai1.oss-cn-shenzhen.aliyuncs.com/images/3/2019/05/Y6kNqbKUJzbs6udbBusB818K5DB16b.jpg",
desc: "qqqqqqqqq3333322"
}
}
}
错误时返回:
{
"result": 0,
"msg": "暂无数据",
"data": ""
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
data[list][data][0][id] | int | 素材id |
data[list][data][0][goods_id] | int | 商品id |
data[list][data][0][title] | string | 素材标题 |
data[list][data][0][images] | string | 素材图片信息 |
data[list][data][0][name] | string | 商城名称 |
data[list][data][0][logo] | string | 商城logo |
data[list][data][0][created_at] | string | 素材添加时间 |
data[list][data][0][goods][id] | int | 商品ID |
data[list][data][0][goods][title] | string | 商品标题 |
data[list][data][0][goods][thumb] | string | 商品图片 |
data[list][data][0][goods][sku] | string | 商品单位 |
data[list][data][0][goods][price] | float | 商品价格 |
data[set][title] | string | 分享标题 |
data[set][icon] | string | 分享图片 |
data[set][desc] | string | 分享内容 |
备注:
- 更多返回错误代码请看首页的错误代码描述