API接口文档

积分商城首页

创建于 2021-10-15 / 最近更新于 2021-10-15 / 128

简要描述

积分商城首页

接口版本

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

请求URL

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

请求方式

POST

公共参数

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

请求参数

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "base": {
            "application_name": "积分商城",
            "goods_detail_panel": "该商品支持积分全额兑换、仅需{$integral}积分",
            "goods_detail_title_icon": "积分兑换",
            "points_desc": [
                "提示信息,基础配置里面修改"
            ],
            "footer_code": "",
            "deduction_price": "100",
            "order_max_integral": "",
            "order_total_price": "",
            "goods_exchange": {
                "6": {
                    "gid": "6",
                    "integral": "1000000"
                }
            },
            "right_images_url_rules": {
                "pc": "",
                "h5": "",
                "ios": "",
                "android": "",
                "weixin": "",
                "alipay": "",
                "baidu": "",
                "toutiao": "",
                "qq": ""
            },
            "register_reward_integral": "10-30",
            "invite_reward_integral": "5-10",
            "seo_title": "",
            "seo_keywords": "",
            "seo_desc": "",
            "is_user_quick": "1",
            "is_integral_deduction": "1",
            "is_register_reward_integral": "1",
            "is_force_register": "0",
            "right_images": "https://d1.shopxo.vip/static/plugins/images/points/default-right-images.jpg",
            "right_images_url": "",
            "goods_exchange_data": [
                {
                    "goods": {
                        "id": "12",
                        "title": "ZK星星绣花雪纺连衣裙中长款sukol裙少女心温柔超仙女chic裙子夏",
                        "images": "https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547455890402147.jpg",
                        "min_price": "0.08",
                        "price": "0.08-188.00",
                        "original_price": "0.10-235.00",
                        "price_container": {
                            "price": "0.10-235.00",
                            "min_price": "0.10",
                            "max_price": 0,
                            "original_price": "2.00-673.00",
                            "min_original_price": 0,
                            "max_original_price": 0
                        },
                        "goods_url": "https://d1.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": []
                    },
                    "integral": "1"
                }
            ]
        },
        "user_integral": {
            "integral": "1359",
            "locking_integral": "0"
        }
    }
}

错误时返回

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

返回参数说明 -> data

参数名 是否必须 类型 描述
base array 插件基础配置
user_integral array 用户积分信息

备注

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

0 人点赞过