API接口文档

秒杀首页

创建于 2021-10-31 / 最近更新于 2021-11-15 / 67

简要描述

秒杀首页

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-09-29

请求URL

plugins/index&pluginsname=seckill&pluginscontrol=index&pluginsaction=index

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
page int 分页值
category_id int 分类id(0则全部)

返回示例

正确时返回

{
    "msg": "操作成功",
    "code": 0,
    "data": {
        "base": {
            "application_name": "限时秒杀",
            "goods_list_title": "",
            "goods_detail_icon": "",
            "goods_detail_title": "",
            "content_notice": [
                "公告内容公告内容公告内容"
            ],
            "time_start": "2021-10-27 23:27:51",
            "time_end": "2021-11-07 23:27:54",
            "seo_title": "",
            "seo_keywords": "",
            "seo_desc": "",
            "is_actas_price_original": "0",
            "is_home_show": "1",
            "is_home_auto_play": "1"
        },
        "time": {
            "hours": 175,
            "minutes": 18,
            "seconds": 15,
            "status": 1,
            "msg": "距离结束还有"
        },
        "goods": [
            {
                "id": "12",
                "title": "ZK星星绣花雪纺连衣裙中长款sukol裙少女心温柔超仙女chic裙子夏",
                "images": "https://dev.shopxo.vip/static/upload/images/goods/2019/01/14/1547455890402147.jpg",
                "min_price": "0.01",
                "price": "0.01",
                "original_price": "0.00",
                "min_original_price": "0.00",
                "price_container": {
                    "price": "0.01",
                    "min_price": "0.01",
                    "max_price": 0,
                    "original_price": "0.00",
                    "min_original_price": "0.00",
                    "max_original_price": 0
                },
                "goods_url": "https://dev.shopxo.vip/goods/index/id/12.html",
                "images_old": "/static/upload/images/goods/2019/01/14/1547455890402147.jpg",
                "show_field_original_price_text": "原价",
                "show_field_price_text": "秒杀价",
                "plugins_view_panel_data": [],
                "plugins_view_icon_data": [],
                "goods_id": "12",
                "discount_rate": "0.50",
                "dec_price": "0.00",
                "is_recommend": "1"
            }
        ],
        "is_valid": 1,
        "slider": [
            {
                "id": "1",
                "name": "秒杀",
                "images_url": "https://dev.shopxo.vip/static/upload/images/plugins_seckill/2019/03/25/1553504252784908.jpg",
                "url": "/pages/goods-detail/goods-detail?goods_id=1",
                "is_enable": "1",
                "sort": "0",
                "add_time": "2021-10-31 11:29:04",
                "upd_time": ""
            }
        ]
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
base int 插件基础数据
time int 秒杀时间
is_valid int 是否有效
goods array 秒杀商品
slider array 轮播

插件数据

首页、商品详情页面接口都有秒杀信息返回,统一字段为 plugins_seckill_data

备注

更多返回错误代码请看首页的错误代码描述

0 人点赞过