简要描述:
返回示例:
{
"id": "M1596600721724",
"component_key": "U_goods",
"component_title": "商品组",
"remote_data": {
"preview_color": "#ffffff",
"sort_style": {
"choose_icon": "3"
},
"padding_top": 0,
"padding_bottom": 0,
"padding_left": 0,
"padding_right": 0,
"item_radius": 15,
"show_shadow": false,
"show_border": false,
"border_color": "#BFB7B7",
"good_tag": {
"choose_icon": "0",
"image": ""
},
"button_type": "1",
"button_title": "立即购买",
"content_list": [ "1", "2", "3", "7"],
"disable_good": "0",
"get_number": 2,
"list": [
{
"id": 7523,
"title": "课程商品测试",
"thumb": "https://dev4.yunzmall.com/attachment/images/9/2019/09/lpdUPyxD9uXyR2r39rY2Q3D06r2eDZ.jpg",
"market_price": "0.00",
"price": "100.00",
"real_sales": 7,
"virtual_sales": 10,
"sku": "件",
"stock": 93,
"show_sales": 7,
"plugin_id": 0,
"status_name": null,
"has_one_goods_limit_buy": {
"goods_id": 7523,
"start_time": 1565491500,
"end_time": 1568169900
},
"sales": 17,
"award": 0,
"award_proportion": "0.00",
"love_name": "爱心值",
"point": 0
},
],
"goods_type": "rush"
},
"data": [
{
"img": "images/1/2019/12/Ta4Kkzhqbbk0z235k3Hkkw56c922u4.jpg",
"goodid": 12,
"name": "微店123",
"priceold": "100.00",
"pricenow": "50.00",
"stock": 10,
"award": 0,
"award_proportion": "0.00",
"love_name": "爱心值",
"sales": 12,
"stock_status": 0,
"price_level": "2",
"vip_next_price": "5.00",
"vip_price": "25.00",
"point": 0
}
],
}
返回参数说明:
参数名 |
类型 |
说明 |
id |
int |
页面组件唯一标识 |
component_key |
string |
组件标识(每个类型主键组件标识一致) |
component_title |
string |
组件名称 |
remote_data |
array |
组件装修内容 |
data |
array |
组件数据 |
remote_data参数说明:
参数名 |
类型 |
说明 |
preview_color |
string |
背景 |
sort_style |
string |
商品排列样式 |
padding_top |
string |
上边距 |
item_radius |
string |
商品圆角 |
show_shadow |
string |
商品阴影 |
show_border |
string |
商品边框 |
border_color |
string |
商品边框颜色 |
good_tag |
string |
商品左上角标签 |
button_type |
string |
购买按钮样式 |
content_list |
array |
商品内容显示 |
disable_good |
int |
商品失效样式 |
get_number |
number |
商品显示数量 |
goods_type |
number |
商品类型(rush限时抢购) |
list |
array |
商品数组 |
data参数说明:
参数名 |
类型 |
说明 |
img |
string |
商品图片 |
goodid |
int |
商品ID |
name |
string |
商品名称 |
priceold |
number |
商品原价 |
pricenow |
number |
商品现价 |
stock |
int |
商品库存 |
award |
int |
商品是否启用爱心值 |
award_proportion |
int |
赠送爱心值比例 |
love_name |
string |
爱心值名称 |
sales |
int |
销量 |
price_level |
int |
会员价插件 2.就是下一级会员价格 |
vip_next_price |
number |
下一级会员价 |
vip_price |
number |
商品会员价 |
point |
int |
购买商品获得积分 |
备注: