简要描述:
-聚合页
请求域名:
- http://xx.com
请求URL:
plugin.new-blind-box.frontend.index.index
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|
返回示例:
正确时返回:
{
result: 1,
msg: "",
data: {
blind_box_explain: "<p>112312312321</p>",
audio: "123123123",
list: [
{
id: 1,
activity_name: "测试盲盒",
price: "100.00",
stock: 100,
goods_id: 93498,
activity_img: "images/1/2022/09/64856689b75679d00e19a372fa9a53b1.png",
box_img: "images/1/2022/09/64856689b75679d00e19a372fa9a53b1.png",
start_time: 1667232000,
end_time: 1667404800,
activity_img_src: "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2022/09/64856689b75679d00e19a372fa9a53b1.png",
box_img_src: "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2022/09/64856689b75679d00e19a372fa9a53b1.png",
start_time_str: "2022-11-01 00:00:00",
end_time_str: "2022-11-03 00:00:00",
show_status: 1,
goods: [
{
id: 92719,
title: "爱心值队列--购物赠送统一比例",
status_name: null,
pivot: {
level_id: 1,
goods_id: 92719
}
},
{
id: 93488,
title: "下单签署测试",
status_name: null,
pivot: {
level_id: 1,
goods_id: 93488
}
},
{
id: 92721,
title: "满额包邮商品",
status_name: null,
pivot: {
level_id: 2,
goods_id: 92721
}
},
{
id: 93487,
title: "爱心值商品3331",
status_name: null,
pivot: {
level_id: 2,
goods_id: 93487
}
},
{
id: 92717,
title: "赠送积分测试",
status_name: null,
pivot: {
level_id: 3,
goods_id: 92717
}
}
]
}
],
customer_service: {
cservice: "https://dev8.yunzmall.com/addons/yun_shop/?menu#/chatWindow/?groupId=2&employeeId=4&chatType=1&i=1",
service_QRcode: "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/0/2021/09/SlnRkK8Y8kMRWgWBBziNRHhC899URb.png",
service_mobile: "13827554646"
}
}
}
错误时返回:(#如返回未绑定手机号并带status,跳转到绑定手机号页面)
{
"result": 0,
"msg": "请登录",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
blind_box_explain | string | 盲盒说明 |
audio | string | 音频链接 |
list | array | 盲盒列表 |
customer_service | obj | 客服信息,和商品详情页一样,里面数据就不解释了 |
list返回参数说明:盲盒列表信息
参数名 | 类型 | 说明 |
---|---|---|
id | int | 盲盒id |
activity_name | string | 盲盒名称 |
price | float | 盲盒价格 |
stock | int | 盲盒库存 |
start_time | int | 开始时间(格式化后的时间字段start_time_str) |
end_time | int | 结束时间(格式化后的时间字段end_time_str) |
activity_img_src | string | 盲盒图片 |
box_img_src | string | 盒子图片 |
show_status | int | 0未开始,1进行中,2已结束 |
goods | array | 盲盒商品信息 |
goods返回参数说明:盲盒商品信息
参数名 | 类型 | 说明 |
---|---|---|
id | int | 商品id |
thumb_src | string | 商品图片 |
备注:
- 更多返回错误代码请看首页的错误代码描述