API接口文档

门店详情 - 初始化

创建于 2022-02-16 / 最近更新于 2022-04-08 / 314
字体: [默认] [大] [更大]

简要描述

门店详情 - 初始化

接口版本

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

请求URL

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

请求方式

POST

公共参数

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

请求参数

{
    "id": "1",
    "lng": 0,
    "lat": 0
}
参数名 是否必须 类型 默认值 描述
id int 门店id
lng int 经度
lat int 纬度

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "base": {
            "application_name": "",
            "realstore_banner_default": "0",
            "not_realstore_ent_goods_detail_hide_btn_text": "",
            "home_data_list_title": "",
            "home_data_list_number": "",
            "sms_sign": "ShopXO",
            "seller_agreement": [
                "入驻协议入驻协议入驻协议\r",
                "入驻协议入驻协议\r",
                "入驻协议入驻协议\r",
                "入驻协议入驻协议入驻协议\r",
                "入驻协议入驻协议\r",
                "入驻协议入驻协议入驻协议入驻协议"
            ],
            "seller_center_notice": [
                "门店中心通知门店中心通知"
            ],
            "seller_center_not_tips": [],
            "staff_add_sms_template": "SMS_212630084",
            "staff_add_email_template": "入职绑定验证码:#code#",
            "sms_new_order_template": "SMS_213285927",
            "email_new_order_template": "''",
            "feieyun_user": "''",
            "feieyun_ukey": "''",
            "profit_settlement_limit_time": "43200",
            "seo_title": "",
            "seo_keywords": "",
            "seo_desc": "",
            "is_all_hide_goods_buy": "0",
            "is_only_realstore_hide_goods_buy": "1",
            "is_goods_detail_top_more_nav_home_realstore": "0",
            "is_goods_detail_realstore_ent": "0",
            "is_goods_detail_realstore_list_ent": "0",
            "is_independent_inventory": "0",
            "is_independent_price": "0",
            "is_goods_save_realstore": "1",
            "is_buy_use_card": "1",
            "is_realstore_info": "1",
            "is_service_info": "1",
            "is_select_position": "1",
            "is_auth_fill_info": "1",
            "is_auth_upload_pic": "1",
            "is_auth_upload_more_prove": "1",
            "is_seller_user_menu": "1",
            "is_staff_finance_info": "1",
            "is_staff_auth_fill_info": "1",
            "is_staff_auth_upload_pic": "1",
            "is_order_allot": "1",
            "is_order_batch": "1",
            "is_order_frequencycard": "1",
            "is_allot_fictitious_received": "1",
            "is_orderallot_add": "1",
            "is_orderallot_pay": "1",
            "is_user_list": "1",
            "is_user_wallet_recharge": "1",
            "is_user_order_list": "1",
            "is_user_order_only_store": "1",
            "is_user_frequency_card_list": "1",
            "is_user_frequency_card_edit": "1",
            "is_user_frequency_card_status_update": "1",
            "is_user_frequency_card_used_list": "1",
            "is_user_frequency_card_used_add": "1",
            "is_user_frequency_card_used_delete": "1",
            "is_staff_orderallot_add": "0",
            "is_staff_orderallot_pay": "1",
            "is_staff_user_list": "1",
            "is_staff_user_order_list": "1",
            "is_staff_user_wallet_recharge": "1",
            "is_staff_user_order_only_store": "1",
            "is_staff_user_frequency_card_list": "1",
            "is_staff_user_frequency_card_edit": "1",
            "is_staff_user_frequency_card_status_update": "1",
            "is_staff_user_frequency_card_used_list": "1",
            "is_staff_user_frequency_card_used_add": "1",
            "is_staff_user_frequency_card_used_delete": "1",
            "is_new_order_audio_notice": "1",
            "is_new_order_notice": "1",
            "is_operating_config": "0",
            "is_order_print": "1",
            "is_order_print_br": "1",
            "is_order_print_sort": "1"
        },
        "info": {
            "id": "1",
            "user_id": "1",
            "status": "2",
            "logo": "https://d1.shopxo.vip/static/upload/images/plugins_realstore/user_realstore/1/2022/02/13/1644758558369392.jpg",
            "logo_long": "https://d1.shopxo.vip/static/upload/images/plugins_realstore/user_realstore/1/2022/02/13/1644758569872242.png",
            "banner": "https://d1.shopxo.vip/static/plugins/images/realstore/default-banner-0.jpg",
            "name": "ShopXO测试门店",
            "alias": "浦江万达",
            "describe": "我们专注提供专业的软件产品和技术。为合作伙伴提供安全可靠的软件产品与解决方案,共同帮助终端用户实现业务创新、快速发展。",
            "category_id": "1",
            "expire_time": "0",
            "is_cash_collect": "1",
            "service_weixin_qrcode": "https://d1.shopxo.vip/static/upload/images/plugins_realstore/user_realstore/1/2022/02/13/1644758615931487.jpg",
            "service_qq": "386392432",
            "service_tel": "13222222222",
            "open_week": "0",
            "close_week": "6",
            "open_time": "00:10",
            "close_time": "23:30",
            "contacts_name": "devil",
            "contacts_tel": "13222222222",
            "province": "9",
            "city": "152",
            "county": "1896",
            "address": "浦江科技广场",
            "lng": "121.5140560000",
            "lat": "31.1023570000",
            "auth_type": "1",
            "fail_reason": "",
            "buy_use_type_list": [
                {
                    "name": "在店",
                    "index": 0,
                    "value": 3,
                    "realstore": 4
                },
                {
                    "name": "自提",
                    "index": 1,
                    "value": 2,
                    "realstore": 1
                },
                {
                    "name": "外送",
                    "index": 2,
                    "value": 0,
                    "realstore": 2
                },
                {
                    "name": "快递",
                    "index": 3,
                    "value": 0,
                    "realstore": 0
                }
            ],
            "default_buy_use_type": "-1",
            "user_buy_payment": [],
            "starting_price": "0.00",
            "position_distance_limit": "0.00",
            "order_print_rules": "1",
            "seo_title": "",
            "seo_keywords": "",
            "seo_desc": "",
            "add_time": "2021-12-24 13:07:08",
            "upd_time": "2022-04-07 00:12:46",
            "status_name": "已审核",
            "url": "https://d1.shopxo.vip/plugins/index/pluginsname/realstore/pluginscontrol/index/pluginsaction/detail/id/1.html",
            "province_name": "上海市",
            "city_name": "闵行区",
            "county_name": "浦江镇",
            "auth_type_name": "企业",
            "category_name": "默认分类",
            "expire_time_text": "永久",
            "open_week_name": "周一",
            "close_week_name": "周日",
            "favor_count": 32,
            "status_info": {
                "status": 1,
                "msg": "营业中",
                "time": "00:10 ~ 23:30(周一至周日)"
            },
            "distance": ""
        },
        "goods_category": [
            {
                "id": "1",
                "pid": "0",
                "icon": "",
                "name": "手机",
                "sort": "0",
                "is_enable": "1",
                "seo_title": "",
                "seo_keywords": "",
                "seo_desc": "",
                "name_alias": "手机 (1)"
            },
            {
                "id": "2",
                "pid": "0",
                "icon": "",
                "name": "连衣裙",
                "sort": "0",
                "is_enable": "1",
                "seo_title": "",
                "seo_keywords": "",
                "seo_desc": "",
                "name_alias": "连衣裙 (2)"
            },
            {
                "id": "3",
                "pid": "0",
                "icon": "",
                "name": "睡衣",
                "sort": "0",
                "is_enable": "1",
                "seo_title": "",
                "seo_keywords": "",
                "seo_desc": "",
                "name_alias": "睡衣 (3)"
            },
            {
                "id": "4",
                "pid": "0",
                "icon": "",
                "name": "包包",
                "sort": "0",
                "is_enable": "1",
                "seo_title": "",
                "seo_keywords": "",
                "seo_desc": "",
                "name_alias": "包包 (4)"
            },
            {
                "id": "5",
                "pid": "0",
                "icon": "",
                "name": "其他分类",
                "sort": "0",
                "is_enable": "1",
                "seo_title": "",
                "seo_keywords": "",
                "seo_desc": "",
                "name_alias": "其他分类 (5)"
            }
        ],
        "cart": {
            "buy_number": 1,
            "total_price": "2249.10",
            "data": [
                {
                    "id": "1174",
                    "user_id": "2638",
                    "goods_id": "5",
                    "title": "Meizu/魅族 MX4 Pro移动版 八核大屏智能手机 黑色 16G",
                    "images": "https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547452714324599.jpg",
                    "original_price": "3200.00",
                    "price": "2249.10",
                    "stock": "1",
                    "spec": null,
                    "add_time": "1647681841",
                    "upd_time": "0",
                    "inventory_unit": "步",
                    "is_shelves": "1",
                    "is_delete_time": "0",
                    "buy_min_number": "1",
                    "buy_max_number": "865",
                    "model": "",
                    "site_type": "-1",
                    "is_invalid": 0,
                    "inventory": "865",
                    "spec_weight": "0",
                    "spec_coding": "",
                    "spec_barcode": "",
                    "extends": null,
                    "goods_url": "/pages/goods-detail/goods-detail?id=5",
                    "images_old": "/static/upload/images/goods/2019/01/14/1547452714324599.jpg",
                    "total_price": "2249.10",
                    "is_error": 0,
                    "error_msg": ""
                }
            ]
        },
        "favor_user": [
            "1"
        ],
        "tablecode": null
    }
}

错误时返回

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

返回参数说明 -> data

参数名 是否必须 类型 描述
base array 插件基础配置
info array 门店信息
cart array 购物车数据
goods_category array 门店商品分类
favor_user array 用户门店收藏列表
tablecode array 桌码信息

备注

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

0 人点赞过