API接口文档

活动详情

创建于 2021-11-01 / 最近更新于 2021-11-01 / 59

简要描述

活动详情

接口版本

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

请求URL

plugins/index&pluginsname=activity&pluginscontrol=index&pluginsaction=detail

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

{
    "id": 1
}
参数名 是否必须 类型 默认值 描述
id int 活动id

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "base": {
            "application_name": "活动中心",
            "goods_detail_icon": "活动价",
            "home_data_list_number": "",
            "seo_title": "",
            "seo_keywords": "",
            "seo_desc": ""
        },
        "data": {
            "id": "1",
            "activity_category_id": "1",
            "title": "双十一特惠",
            "vice_title": "全年最低价、活动优惠多多",
            "color": "#FF0033",
            "describe": "双十一特惠活动,连衣裙,手机,呢大衣,羽绒服全部促销!",
            "cover": "https://dev.shopxo.vip/static/upload/images/plugins_activity/2020/10/15/1602736370890885.jpg",
            "keywords": "小米,华为,iphone,魅族,夏装,包包,连衣裙,手机",
            "goods_count": "10",
            "access_count": "14",
            "is_enable": "1",
            "home_data_location": "0",
            "is_home": "1",
            "is_goods_detail": "0",
            "time_start": "2021-10-31 11:10:54",
            "time_end": "2021-11-05 11:10:56",
            "seo_title": "",
            "seo_keywords": "",
            "seo_desc": "",
            "add_time": "2021-10-31 11:08:34",
            "upd_time": "2021-10-31 11:14:13",
            "url": "https://dev.shopxo.vip/plugins/index/pluginsname/activity/pluginscontrol/index/pluginsaction/detail/id/1.html",
            "activity_category_name": "夏季清仓",
            "goods_list": [
                {
                    "activity_id": "1",
                    "goods_id": "4",
                    "discount_rate": "0.00",
                    "dec_price": "0.00",
                    "is_recommend": "0",
                    "id": "4",
                    "title": "Huawei/华为 H60-L01 荣耀6 移动4G版智能手机 安卓",
                    "images": "https://dev.shopxo.vip/static/upload/images/goods/2019/01/14/1547452474332334.jpg",
                    "min_price": "1999.00",
                    "price": "1999.00",
                    "original_price": "2300.00",
                    "price_container": {
                        "price": "1999.00",
                        "min_price": "1999.00",
                        "max_price": 0,
                        "original_price": "2300.00",
                        "min_original_price": 0,
                        "max_original_price": 0
                    },
                    "goods_url": "https://dev.shopxo.vip/goods/index/id/4.html",
                    "images_old": "/static/upload/images/goods/2019/01/14/1547452474332334.jpg",
                    "show_field_original_price_text": "原价",
                    "show_field_price_text": "活动价",
                    "plugins_view_panel_data": [],
                    "plugins_view_icon_data": []
                }
            ],
            "keywords_arr": [
                "小米",
                "华为",
                "iphone",
                "魅族",
                "夏装",
                "包包",
                "连衣裙",
                "手机"
            ],
            "add_time_date_cn": "10月31日 · 2021年",
            "add_time_date": "2021-10-31"
        }
    }
}

错误时返回

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

返回参数说明 -> data

参数名 是否必须 类型 描述
base array 插件基础数据
data array 活动数据

备注

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

0 人点赞过