简要描述:
请求action:
post: route=goods.goods.get-goods-page
参数:
参数名 |
是否必须 |
类型 |
说明 |
id |
是 |
int |
商品ID |
mark |
是 |
string |
|
mark_id |
是 |
string |
|
enter_at |
否 |
string |
|
leave_at |
否 |
string |
|
url |
否 |
string |
|
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"get_goods": {
"id": 266,
"thumb": "https:\/\/gd2.alicdn.com\/imgextra\/i3\/4158227246\/O1CN0123OiMEU7O3frvJv_!!4158227246.jpg",
"content": "",
"thumb_url": ["https:\/\/gd2.alicdn.com\/imgextra\/i3\/4158227246\/O1CN0123OiMEU7O3frvJv_!!4158227246.jpg", "https:\/\/gd4.alicdn.com\/imgextra\/i4\/4158227246\/O1CN0123OiMGlSXzK3QiB_!!4158227246.jpg"],
"goods_video": "",
"video_image": "",
"buy_button":["buy","cart"],
"title": "\u79cb\u5b63\u65e5\u7cfb\u68ee\u5973\u68c9\u9ebb\u523a\u7ee3\u9762\u6599\u9e1f\u7b3c\u82b1\u6735\u5a03\u5a03\u957f\u8896\u5bbd",
"has_option": 0,
"min_price": "200.00",
"max_price": "300.00",
"price": "850.00",
"market_price": "0.00",
"stock": 100,
"show_sales": 0,
"has_one_brand": null,
"sku": "\u4ef6",
"availability": 1,
"is_order_detail_comment_show":1
"member_discount": {
"level_name": "VIP1",
"discount_value": "680.00",
"discount": "2"
},
"has_many_specs": [{
"id": 35,
"goods_id": 159,
"title": "\u5c3a\u7801",
"description": null,
"specitem": [{
"id": 63,
"title": "\u5747\u7801",
"specid": 35,
"thumb": ""
}]
}, {
"id": 36,
"goods_id": 159,
"title": "\u989c\u8272\u5206\u7c7b",
"description": null,
"specitem": [{
"id": 64,
"title": "\u767d\u8272",
"specid": 36,
"thumb": ""
}]
}],
"lease_toy": {
"id": 129,
"goods_id": 159,
"immed_goods_id": 0,
"is_lease": 0,
"is_rights": 1,
"goods_deposit": "0.00",
"created_at": "2018-10-12 15:44:25",
"updated_at": "2018-10-12 15:44:25"
},
"show_push": [],
"has_many_params": [{
"goods_id": 159,
"title": "\u54c1\u724c",
"value": "\u00a0\u68c9\u9ebb\u5c0f\u9547"
}, {
"goods_id": 159,
"title": "\u670d\u88c5\u7248\u578b",
"value": "\u00a0\u76f4\u7b52"
}, {
"goods_id": 159,
"title": "\u98ce\u683c",
"value": "\u00a0\u5176\u4ed6"
}, {
"goods_id": 159,
"title": "\u8863\u957f",
"value": "\u00a0\u4e2d\u957f\u6b3e"
}, {
"goods_id": 159,
"title": "\u8896\u957f",
"value": "\u00a0\u957f\u8896"
}, {
"goods_id": 159,
"title": "\u8896\u578b",
"value": "\u00a0\u5e38\u89c4"
}, {
"goods_id": 159,
"title": "\u9886\u578b",
"value": "\u00a0\u5a03\u5a03\u9886"
}, {
"goods_id": 159,
"title": "\u8863\u95e8\u895f",
"value": "\u00a0\u5957\u5934"
}, {
"goods_id": 159,
"title": "\u56fe\u6848",
"value": "\u00a0\u7eaf\u8272"
}, {
"goods_id": 159,
"title": "\u670d\u88c5\u6b3e\u5f0f\u7ec6\u8282",
"value": "\u00a0\u7ee3\u82b1"
}, {
"goods_id": 159,
"title": "\u6210\u5206\u542b\u91cf",
"value": "\u00a071%(\u542b)-80%(\u542b)"
}, {
"goods_id": 159,
"title": "\u8d28\u5730",
"value": "\u00a0\u68c9"
}, {
"goods_id": 159,
"title": "\u5e74\u4efd\u5b63\u8282",
"value": "\u00a02017\u5e74\u79cb\u5b63"
}, {
"goods_id": 159,
"title": "\u989c\u8272\u5206\u7c7b",
"value": "\u00a0\u767d\u8272"
}, {
"goods_id": 159,
"title": "\u5c3a\u7801",
"value": "\u00a0\u5747\u7801"
}, {
"goods_id": 159,
"title": "\u8d27\u53f7",
"value": "\u00a0ZL-0983"
}],
"has_many_options": [],
"buy_way": "",
"goods_love": "",
"has_one_goods_limit_buy": {
"id": 127,
"uniacid": 2,
"goods_id": 159,
"status": 0,
"start_time": 1546149120,
"end_time": 1548827520
},
"goods_sale": {
"sale_count": 3,
"first_strip_key": {
"name": "\u7ecf\u9500\u5546\u63d0\u6210",
"key": "team-dividend",
"type": "array",
"value": ["\u7ecf\u9500\u5546\u63d0\u621022%"]
},
"sale": [{
"name": "\u7ecf\u9500\u5546\u63d0\u6210",
"key": "team-dividend",
"type": "array",
"value": ["\u7ecf\u9500\u5546\u63d0\u621022%"]
}, {
"name": "\u79ef\u5206",
"key": "point",
"type": "array",
"value": ["\u6700\u9ad8\u62b5\u6263100%\u5143"]
}, {
"name": "\u4f63\u91d1",
"key": "commission",
"type": "array",
"value": ["\u4e00\u7ea7\u4f63\u91d1255.00\u5143", "\u4e8c\u7ea7\u4f63\u91d185.00\u5143", "\u4e09\u7ea7\u4f63\u91d117.00\u5143"]
}]
},
"has_one_share": {
"id": 206,
"goods_id": 159,
"need_follow": null,
"no_follow_message": "",
"follow_message": "",
"share_title": "",
"share_thumb": "",
"share_desc": "",
"deleted_at": null
},
"supplier_goods_count": 5,
"supplier": {
"id": 17,
"is_open": "1",
"logo": "",
"store_name": null,
"username": "gongyingshang",
},
"store_goods": {
"goods_id": 555,
"store_id": 27
},
"has_one_invite_page": {
"id": 160,
"uniacid": 8,
"goods_id": 555,
"status": 0,
"created_at": "2019-05-08 16:47:53",
"updated_at": "2019-05-08 16:47:53",
"deleted_at": null
},
"hotel": {
"hotel_name": "Joy\u7684\u9152\u5e97",
"hotel_mobile": "15219025049",
"cservice": "https:\/\/static.meiqia.com\/dist\/standalone.html?_=t&eid=131383&groupid=fd3b139a2ae4af1d9393df5930796e11"
}
},
"wx_js_sdk_config": {
"config": {
"debug": false,
"beta": false,
"appId": "wx9bfe63ca96c52f43",
"nonceStr": "YJ9AOD8LF9",
"timestamp": 1559712796,
"url": "https:\/\/dev5.yunzshop.com\/addons\/yun_shop\/?menu#\/goods\/159?i=2&type=5&mid=0&shop_id",
"signature": "186ead2be8b1ba21e9c75e1d661872975ed51c27",
"jsApiList": ["onMenuShareTimeline", "onMenuShareAppMessage", "showOptionMenu", "scanQRCode", "updateAppMessageShareData", "updateTimelineShareData"]
},
"info": {
"uid": 1
},
"shop": {
"shop": {
"name": "\u82b8\u4f17\u5546\u57ce"
}
}
},
"store": "\u66f4\u65b0\u8db3\u8ff9\u6210\u529f",
"is_favorite": {
"status": 0,
"message": "\u5546\u54c1\u672a\u6536\u85cf"
},
"get_store_Info": {
"store_name": "\u5c0f\u5e97",
"store_mobile": "18924206856",
"lng": "113.26526746962",
"lat": "23.19739203559"
},
"member_cart": [{
"id": 510,
"option_str": ""
"goods": {
"thumb": "https:\/\/dev4.yunzshop.com\/attachment\/image\/ead616fc9e902214c9ebcc96ffaf00a1.jpg",
"title": "\u5c0f\u660e",
"price": "10.00",
"id": 555,
"market_price": "2.00",
"deleted_at": null,
"vip_price": "10.00",
"has_many_goods_discount": []
},
"store_id": 27,
"goods_id": 555,
"total": 1,
"option_id": 0,
"deleted_at": null,
"goods_option": null,
}],
"display_page" : 1,
"broadcast_data": [
{
"avatar_image": "https://thirdwx.qlogo.cn/mmopen/p5fUqkEialtiaP4CDwteph1Gug6It5PU83GqJpfFyroMzXJMIQ9oML1mlKuuasO7woflWOjCH8rnpsFNLwHN1ziaMFlvibdG5ic2Z/132",
"content": "治好了我多年的于2020-05-14 15:55:19成功下单!"
},
{
"avatar_image": "https://thirdwx.qlogo.cn/mmopen/p5fUqkEialtiaP4CDwteph1Gug6It5PU83GqJpfFyroMzXJMIQ9oML1mlKuuasO7woflWOjCH8rnpsFNLwHN1ziaMFlvibdG5ic2Z/132",
"content": "治好了我多年的于2020-05-14 15:54:07成功下单!"
},
{
"avatar_image": "https://thirdwx.qlogo.cn/mmopen/cEM5JWyl9FekStW90tfVx0KaicTdGiaic8GaL9ibUAPEHB1ib5kbhM1INYua7NSibBF4hFJpdE3fpdr8kgqnRxm1RTc8nWRYe4CFoia/132",
"content": "卡卡于2020-04-10 11:20:54成功下单!"
},
{
"avatar_image": "https://thirdwx.qlogo.cn/mmopen/ajNVdqHZLLCKcv76uhjUbhwz6kSdz8Ftr9JicXMBWpNI55Gx0ylDHLRPicrubdFZ9Mg9rLKe0XcWaBaWevspU7XQtsGIyLOKlupBvUC4XeHOw/132",
"content": "huan于2019-04-25 11:01:59成功下单!"
},
{
"avatar_image": "https://thirdwx.qlogo.cn/mmopen/ajNVdqHZLLCKcv76uhjUbhwz6kSdz8Ftr9JicXMBWpNI55Gx0ylDHLRPicrubdFZ9Mg9rLKe0XcWaBaWevspU7XQtsGIyLOKlupBvUC4XeHOw/132",
"content": "huan于2019-04-25 10:42:04成功下单!"
}
],
}
}
返回参数说明:
##没有说明的参数 即在前端代码有调用到但提取不到文字说明参数用途:
data 参数名 |
类型 |
说明 |
参数名 |
类型 |
说明 |
get_goods |
array |
商品详情 |
wx_js_sdk_config |
array |
微信分享配置数据 |
store |
string |
足迹 |
display_page |
int |
是否可以进入会员权益页面 |
is_favorite |
array |
是否收藏 |
member_cart |
array |
get_store_Info |
array |
关联商品详情说明 get_goods []:
get_goods{参数名 |
类型 |
说明 |
id |
int |
商品ID |
thumb |
string |
商品图片完整路径 |
content |
string |
商品详情 |
thumb_url |
array |
其它商品图片完整路径 |
goods_video |
array |
商品详情视频地址 |
video_image |
array |
商品详情视频封面地址 |
title |
string |
商品标题 |
has_option |
int |
是否有规格 1是 0否 |
min_price |
float |
最小价格,只在有规格时出现 |
max_price |
float |
最大价格,只在有规格时出现 |
price |
float |
商品金额(元) |
market_price |
float |
商品市场价(元) |
stock |
int |
库存 |
show_sales |
int |
销量 |
has_one_brand |
array |
品牌 |
sku |
string |
商品单位(个、台、件等) |
availability |
string |
是否开启领优惠卷 1是 0否) |
member_discount |
string |
会员优惠价 |
has_many_specs |
array |
关联规格说明 |
lease_toy |
array |
show_push |
array |
has_many_params |
array |
buy_way |
string |
goods_love |
array |
has_one_goods_limit_buy |
array |
goods_sale |
array |
商品活动说明 |
has_one_share |
array |
分享说明 |
supplier_goods_count |
int |
supplier |
array |
has_many_options |
array |
store_goods |
array |
has_one_invite_page |
array |
hotel |
array |
is_order_detail_comment_show |
int |
商品详情评论显示 1开启 0关闭 |
buy_button |
array |
商品详情页按钮开关 cart 加入购物车 buy 立即购买 |
关联品牌说明 get_goods[] 下的 has_one_brand []:
参数名 |
类型 |
说明 |
id |
int |
品牌ID |
name |
string |
品牌名称 |
会员优惠价 get_goods[] 下的 member_discount [] :
###说明:没有优惠返回空数组 []
参数名 |
类型 |
说明 |
level_name |
string |
会员名称 |
discount_value |
int |
优惠价 |
discount |
string |
|
关联规格说明 get_goods[] 下的 has_many_specs []:
参数名 |
类型 |
说明 |
id |
int |
规格ID |
goods_id |
int |
商品ID |
title |
string |
规格名 |
description |
string |
规格描述 |
specitem |
array |
关联规格项 |
关联规格项说明 get_goods[] 下的 has_many_specs [] 下的specitem []:
参数名 |
类型 |
说明 |
id |
int |
规格项ID |
title |
string |
规格项名 |
specid |
int |
规格ID |
thumb |
string |
规格项图片 |
关联*** get_goods[]下的 lease_toy[]
参数名 |
类型 |
说明 |
immed_goods_id |
int |
|
is_lease |
int |
|
is_rights |
int |
|
关联参数说明 get_goods[] 下的 has_many_params[]:
参数名 |
类型 |
说明 |
goods_id |
int |
商品ID |
title |
string |
参数名 |
value |
string |
参数值 |
关联*** get_goods[]下的 goods_love[]
参数名 |
类型 |
说明 |
price |
string |
|
love_coin |
array |
|
关联*** get_goods[]下的 goods_love[] 下的 love_coin[]
参数名 |
类型 |
说明 |
amountOfMoney |
string |
|
amountOfCoin |
string |
|
name |
string |
|
关联*** get_goods[]下的 has_one_goods_limit_buy[]
参数名 |
类型 |
说明 |
status |
int |
|
start_time |
int |
|
end_time |
int |
|
商品活动说明 get_goods[]下的goods_sale [] :
参数名 |
类型 |
说明 |
sale_count |
int |
活动个数 |
first_strip_key |
obj |
首个显示 |
sale |
array |
全部活动 |
商品活动说明 get_goods[]下的goods_sale []下的first_strip_key[] :
参数名 |
类型 |
说明 |
type |
string |
|
key |
string |
|
name |
string |
|
value |
array |
|
关联分享说明 get_goods[]下的has_one_share[]:
参数名 |
类型 |
说明 |
id |
int |
分享ID |
goods_id |
int |
商品ID |
need_follow |
int |
强制关注 1是 0否 |
no_follow_message |
string |
未关注提示 |
follow_message |
string |
关注引导信息(url) |
share_title |
string |
分享标题 |
share_thumb |
string |
分享图片 |
share_desc |
string |
分享描述 |
关联Option说明 get_goods[]下的has_many_options[]:
参数名 |
类型 |
说明 |
id |
int |
分享ID |
goods_id |
int |
商品ID |
thumb |
string |
图片 |
product_price |
int |
价格(分) |
market_price |
int |
市场价格(分) |
stock |
int |
库存 |
specs |
string |
规格项ID拼接 |
weight |
float |
重量 |
关联供应商说明 get_goods[]下的supplier[]:
参数名 |
类型 |
说明 |
id |
int |
|
is_open |
string |
|
logo |
string |
|
store_name |
string |
|
username |
string |
|
关联品牌说明 get_goods[] 下的 store_goods []:
参数名 |
类型 |
说明 |
goods_id |
int |
|
store_id |
int |
|
限时购 get_goods[] 下的 has_one_invite_page [] :
参数名 |
类型 |
说明 |
uniacid |
int |
公众号ID |
goods_id |
int |
商品ID |
status |
int |
是否开启 0 否 1 是 |
酒店信息 get_goods[] 下的 hotel [] :
参数名 |
类型 |
说明 |
hotel_name |
string |
|
hotel_mobile |
string |
|
cservice |
string |
|
关联微信配置 wx_js_sdk_config []:
参数名 |
类型 |
说明 |
config |
array |
|
info |
array |
|
shop |
array |
|
关联微信配置 wx_js_sdk_config []下的info[]:
关联微信配置 wx_js_sdk_config []下的shop[]:
关联微信配置 wx_js_sdk_config []下的shop[]下的shop[]:
关联是否收藏 is_favorite[]:
参数名 |
类型 |
说明 |
status |
int |
|
message |
string |
|
关联是店铺信息 get_store_Info[]:
参数名 |
类型 |
说明 |
store_name |
string |
|
store_mobile |
string |
|
lng |
int |
|
lat |
int |
|
关联是门店购物车信息 member_cart[]:
参数名 |
类型 |
说明 |
id |
int |
|
option_str |
string |
|
goods |
array |
|
store_id |
int |
|
goods_id |
int |
|
total |
int |
|
option_id |
int |
|
deleted_at |
string |
|
goods_option |
string |
|
关联是门店购物车信息 member_cart[]下的:goods[]
参数名 |
类型 |
说明 |
thumb |
string |
|
title |
string |
|
price |
string |
|
id |
int |
|
market_price |
string |
|
deleted_at |
string |
|
vip_price |
int |
|
has_many_goods_discount |
array |
|
订单飘窗插件说明 broadcast_data[]:
参数名 |
类型 |
说明 |
avatar_image |
string |
用户头像 |
content |
string |
飘窗文案 |