简要描述:
- 商品详情-分时预约
请求URL:
商城商品详情接口
参数:
和商城的一样
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"customer_service": {
"cservice": "https://static.meiqia.com/dist/standalone.html?eid=8783"
},
"plugin": {
"reserve_simple_goods": {
"objs": [
{
"id": 2,
"service_id": 2,
"name": "预约对象2",
"thumb": "http://localhost:82/attachment/image/e2c2359777f808f0dcea40c08ec2c3c1.png",
"description": "简介简介",
"price": "10.00"
}
],
"cservice": "https://static.meiqia.com/dist/standalone.html?eid=8783",
"store_info": {
"name": "店铺名称1",
"full_address": " 店铺地址店铺地址",
"lng": 113.275994999999994661266100592911243438720703125,
"lat": 23.11705500000000057525539887137711048126220703125
}
}
},
"goods_type": "reserve_simple_goods",
"get_goods": {
"id": 360,
"uniacid": 2,
"brand_id": 6,
"type": 2,
"status": 1,
"display_order": 0,
"title": "商品名称",
"thumb": "http://localhost:82/attachment/image/6adc3f84138f014bd480f58fd8a5205f.png",
"thumb_url": [],
"sku": "个",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "30.00",
"price": "30.00",
"stock": 1000,
"show_sales": 0,
"weight": "0.00",
"has_option": 1,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 130,
"virtual_sales": 10,
"goods_video": "",
"no_refund": 0,
"need_address": 0,
"type2": 1,
"old_id": null,
"volume": "0.000",
"is_added": "1",
"show_push": [],
"get_comment": [],
"favorable_rate": "100%",
"min_price": "10.00",
"max_price": "100.00",
"video_image": "",
"show_stock": 1100,
"month_sales": 0,
"is_month_sales": 0,
"is_member_enter": 1,
"availability": 1,
"coupon": null,
"spec_info": [],
"status_name": "上架",
"has_many_params": [],
"has_many_specs": [
{
"id": 166,
"goods_id": 360,
"title": "规格1",
"description": null,
"specitem": [
{
"id": 422,
"title": "规格1_1",
"specid": 166,
"thumb": ""
},
{
"id": 423,
"title": "规格1_2",
"specid": 166,
"thumb": ""
}
]
}
],
"has_many_options": [
{
"id": 443,
"goods_id": 360,
"title": "规格1_1",
"thumb": "",
"product_price": "100.00",
"cost_price": "100.00",
"market_price": "100.00",
"stock": 1000,
"specs": "422",
"weight": "0.00",
"points": ""
},
{
"id": 444,
"goods_id": 360,
"title": "规格1_2",
"thumb": "",
"product_price": "10.00",
"cost_price": "10.00",
"market_price": "10.00",
"stock": 100,
"specs": "423",
"weight": "0.00",
"points": ""
}
],
"has_one_brand": {
"id": 6,
"logo": "images/2/2017/05/r3Sa9wT77IWW9c2U133ss4wAJ7WsF7.png",
"name": "133",
"desc": "111"
},
"has_one_share": {
"id": 306,
"goods_id": 360,
"need_follow": null,
"no_follow_message": "",
"follow_message": "",
"share_title": "",
"share_thumb": "",
"share_desc": "",
"created_at": "2022-01-24 14:49:39",
"updated_at": "2022-01-24 14:49:39",
"deleted_at": null
},
"has_one_goods_dispatch": {
"id": 305,
"goods_id": 360,
"dispatch_type": 1,
"dispatch_price": "0.00",
"dispatch_id": 0,
"is_cod": 1,
"created_at": "2022-01-24 14:49:38",
"updated_at": "2022-02-07 14:42:37",
"deleted_at": null,
"dispatch_type_ids": "1"
},
"has_one_privilege": {
"id": 271,
"goods_id": 360,
"show_levels": "",
"show_groups": "",
"buy_levels": "",
"buy_groups": "",
"once_buy_limit": 0,
"total_buy_limit": 0,
"time_begin_limit": "1970-01-01 08:00:00",
"time_end_limit": "1970-01-01 08:00:00",
"created_at": "2022-01-24 14:49:39",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null,
"enable_time_limit": 0,
"day_buy_limit": 0,
"week_buy_limit": 0,
"month_buy_limit": 0,
"min_buy_limit": 0,
"day_buy_total_limit": 0
},
"has_one_sale": {
"id": 337,
"goods_id": 360,
"max_balance_deduct": 0,
"is_sendfree": 0,
"ed_num": "",
"ed_money": "",
"ed_areas": "",
"ed_areaids": "",
"bonus": 0,
"ed_full": "0.00",
"ed_reduction": "0.00",
"max_point_deduct": "",
"point": "",
"is_push": 0,
"push_goods_ids": "",
"award_balance": "0",
"min_point_deduct": "",
"point_type": 0,
"max_once_point": "0",
"created_at": null,
"updated_at": null,
"all_point_deduct": "0.00",
"has_all_point_deduct": 0,
"balance_deduct": 0,
"pay_reward_balance": "0"
},
"has_one_goods_coupon": {
"id": 151,
"goods_id": 360,
"is_give": 0,
"coupon": [],
"send_type": 0,
"send_num": 0,
"shopping_share": 0,
"share_coupon": [],
"no_use": 0,
"use_num": 0,
"is_use_num": 0
},
"has_one_invite_page": {
"id": 73,
"uniacid": 2,
"goods_id": 360,
"status": 0,
"created_at": "2022-01-24 14:49:38",
"updated_at": "2022-01-24 14:49:38",
"deleted_at": null
},
"has_one_goods_limit_buy": {
"id": 96,
"uniacid": 2,
"goods_id": 360,
"status": 0,
"start_time": "",
"end_time": "",
"display_name": "限时购"
},
"has_one_goods_video": {
"id": 32,
"goods_id": 360,
"goods_video": "",
"video_image": "",
"status": 0,
"created_at": "2022-01-24 14:48:27",
"updated_at": "2022-01-24 14:48:27",
"deleted_at": null
},
"has_one_goods_advertising": {
"id": 8,
"uniacid": 2,
"goods_id": 360,
"is_open": 0,
"copywriting": "",
"created_at": "2022-01-24 14:49:38",
"updated_at": "2022-01-24 14:49:38",
"font_size": 0,
"font_color": "",
"link": "",
"min_link": ""
},
"has_many_discount": [
{
"id": 6735,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 0,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
}
],
"has_many_goods_discount": [
{
"id": 6735,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 0,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
},
{
"id": 6736,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 1,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
},
{
"id": 6737,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 10,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
},
{
"id": 6738,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 11,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
},
{
"id": 6739,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 12,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
},
{
"id": 6740,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 13,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
},
{
"id": 6741,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 14,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
},
{
"id": 6742,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 15,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
},
{
"id": 6743,
"goods_id": 360,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 16,
"discount_value": "",
"created_at": "2022-02-07 14:42:38",
"updated_at": "2022-02-07 14:42:38",
"deleted_at": null
}
],
"member_discount": {
"level_name": "普通会员111",
"discount_value": "30.00",
"discount": "1",
"next_level_price": "30.00",
"next_level_name": "等级一",
"level_type": "2",
"display_page": "0"
},
"goods_sale": {
"sale_count": 1,
"first_strip_key": {
"name": "测试",
"key": "point",
"type": "array",
"value": [
"购买赠送10%测试",
"最高抵扣11%"
],
"points": ""
},
"sale": [
{
"name": "测试",
"key": "point",
"type": "array",
"value": [
"购买赠送10%测试",
"最高抵扣11%"
],
"points": ""
}
]
},
"available_coupon": [
{
"id": 5,
"name": "优惠券测试",
"coupon_method": 1,
"deduct": "10.00",
"discount": "0.00",
"enough": 100,
"use_type": 0,
"category_ids": null,
"categorynames": null,
"goods_ids": [
"64"
],
"goods_names": [
"爱心值测试"
],
"time_limit": 0,
"time_days": 1,
"time_start": "2017-09-26 00:00:00",
"time_end": "2017-10-03 00:00:00",
"get_max": -1,
"total": -1,
"money": "0.00",
"credit": 0,
"updated_at": "2017-09-26 15:14:15",
"use_conditions": null,
"has_many_member_coupon_count": 28,
"member_got": 0,
"coupon_type_name": "平台商品"
},
{
"id": 4,
"name": "12",
"coupon_method": 1,
"deduct": "10.00",
"discount": "0.00",
"enough": 0,
"use_type": 0,
"category_ids": null,
"categorynames": null,
"goods_ids": null,
"goods_names": null,
"time_limit": 0,
"time_days": 10,
"time_start": "2017-08-16 00:00:00",
"time_end": "2017-08-23 00:00:00",
"get_max": 11,
"total": 0,
"money": "0.00",
"credit": 0,
"updated_at": "2017-08-16 15:49:45",
"use_conditions": null,
"has_many_member_coupon_count": 1,
"member_got": 0,
"coupon_type_name": "平台商品"
},
{
"id": 3,
"name": "满100减10",
"coupon_method": 1,
"deduct": "10.00",
"discount": "0.00",
"enough": 100,
"use_type": 0,
"category_ids": null,
"categorynames": null,
"goods_ids": null,
"goods_names": null,
"time_limit": 0,
"time_days": 1,
"time_start": "2017-07-14 00:00:00",
"time_end": "2017-07-21 00:00:00",
"get_max": -1,
"total": 100,
"money": "0.00",
"credit": 0,
"updated_at": "2017-07-17 19:09:21",
"use_conditions": null,
"has_many_member_coupon_count": 39,
"member_got": 0,
"coupon_type_name": "平台商品"
}
]
},
"is_favorite": {
"status": 0,
"message": "商品未收藏"
}
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
reserve_simple_goods | obj | 插件关联数据 |
reserve_simple_goods->objs | array | 预约对象列表 |
reserve_simple_goods->objs->id | int | 预约对象ID |
reserve_simple_goods->objs->goods_option_id | int | 关联商品规格id |
reserve_simple_goods->objs->service_id | int | 服务ID |
reserve_simple_goods->objs->name | string | 预约对象名称 |
reserve_simple_goods->objs->thumb | string | 缩略图 |
reserve_simple_goods->objs->description | string | 简介 |
reserve_simple_goods->objs->price | string | 价格 |
reserve_simple_goods->cservice | obj/string | 客服信息 |
reserve_simple_goods->store_info | obj | 门店信息 |
reserve_simple_goods->store_info->name | string | 门店名称 |
reserve_simple_goods->store_info->full_address | string | 门店地址 |
reserve_simple_goods->store_info->lng | float | lng |
reserve_simple_goods->store_info->lat | string | lat |
备注:
- 更多返回错误代码请看首页的错误代码描述