{
"code": 200,
"data": {
"goods_id": 394,
"goods_sn": "610055515255",
"goods_name": "测试商品",
"goods_img": "upload/20220304/c642c6eeaff1686e5f8995204cd374d4.png",
"goods_img_banner": [
"upload/20220304/c642c6eeaff1686e5f8995204cd374d4.png"
],
"goods_remark": "测试
\n",
"on_sale": 1,
"original_price": "0.00",
"price": "0.00",
"exchange_ratio": "100.00",
"note": "测试",
"inventory": 0,
"sales_volume": 100,
"real_sales_volume": 0,
"restrictions": 0,
"rush_buy": 0,
"post_template_id": 77,
"buynote_template_id": 5,
"is_recommend": 0,
"buyNote": {
"id": 5,
"content": "默认模版
\n"
},
"delivery": {
"id": 77,
"remake": "默认模版"
},
"spec_relation": [
{
"spec_name": "容量",
"spec_value": [
{
"id": 1185,
"title": "10ML"
},
{
"id": 1186,
"title": "20ML"
}
]
},
{
"spec_name": "颜色",
"spec_value": [
{
"id": 1188,
"title": "紫色"
},
{
"id": 1189,
"title": "蓝色"
}
]
}
],
"goods_spec": [
{
"spec_ids": "1185-1188",
"spec_text": "10ML-紫色",
"original_price": "0.00",
"price": "10.00",
"picture": "",
"rebate_score": "0.000",
"attach_price": "0.00",
"stock": 0
},
{
"spec_ids": "1185-1189",
"spec_text": "10ML-蓝色",
"original_price": "0.00",
"price": "0.00",
"picture": "",
"rebate_score": "0.000",
"attach_price": "0.00",
"stock": 0
},
{
"spec_ids": "1186-1188",
"spec_text": "20ML-紫色",
"original_price": "0.00",
"price": "0.00",
"picture": "",
"rebate_score": "0.000",
"attach_price": "0.00",
"stock": 0
},
{
"spec_ids": "1186-1189",
"spec_text": "20ML-蓝色",
"original_price": "0.00",
"price": "0.00",
"picture": "",
"rebate_score": "0.000",
"attach_price": "0.00",
"stock": 0
}
]
},
"msg": "获取成功"
}
商品基础数据参数说明
参数名 |
类型 |
说明 |
goods_sn |
string |
商品编号 |
goods_name |
string |
商品标题 |
goods_img |
string |
主图/封面图 |
goods_img_banner |
arr |
商品图片 |
original_price |
string |
原价 |
goods_remark |
string |
商品详情 |
price |
string |
销售价 |
exchange_ratio |
float |
兑换比例 百分比 |
restrictions |
int |
是否抢购 0 否1 是 |
rush_buy |
int |
是否限购 0 否1 是 |
is_recommend |
int |
是否推荐 0 否1 是 |
sales_volume |
int |
销量 |
real_sales_volume |
int |
真实销量 |
inventory |
int |
总库存量 |
delivery.remake |
string |
运费说明 |
buyNote.content |
string |
购买须知 |
商品规格参数说明
参数名 |
类型 |
说明 |
spec_relation.spec_name |
string |
规格名称 |
spec_relation.spec_value.id |
int |
规格值->id |
spec_relation.spec_value.title |
int |
规格值->标题 |
商品规格组合数据说明
参数名 |
类型 |
说明 |
goods_spec.spec_ids |
string |
规格组合ids,根据spec_relation.value.id拼接ids,遍历goods_spec找相同ids进行商品参数渲染 |
goods_spec.spec_text |
string |
规格组合名称 |
goods_spec.original_price |
string |
规格原价,画横线的 |
goods_spec.price |
string |
规格销售价 |
goods_spec.picture |
string |
规格图,如为空,默认取商品主图 |
goods_spec.stock |
int |
规格库存量 |