json数据如下:
{
"title": "\u7eaf\u8272\u7b80\u7ea6\u5361\u901a\u56db\u4ef6\u5957\u5e8a\u54c1\u9ad8\u6807\u5e73\u7ec7\u9002\u75281.5m\/1.8m\u5e8a\u5bb6\u7528\u6c34\u6d17100%\u7eaf\u68c9\u56db\u5b63\u5957\u4ef6\u5e8a\u4e0a\u7528\u54c1",
"head_imgs": ["https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HEXkRN0VFBgWysNx93stTrJG7ECrXtLttMkCOdjq4p0"],
"deliver_method": 1,
"cats": [{
"cat_id": "6932"
}, {
"cat_id": "7261"
}, {
"cat_id": "7277"
}],
"attrs": [
{
"attr_key": "商品毛重",
"attr_value": "380g"
},
{
"attr_key": "商品产地",
"attr_value": "中国大陆"
}
],
"skus": [{
"thumb_img": "https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HMdo-nCL6MbK8RSms7ofKDgvR963e7b4YtajBrj7XY4",
"sale_price": 24800,
"stock_num": 3479,
"sku_code": "",
"sku_attrs": [{
"attr_key": "\u60a8\u559c\u6b22",
"attr_value": "700019"
}]
}, {
"thumb_img": "https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HPtht3L_tIc9kOSZBpm1oRwGcnwE8fbAPeY6zgnmha4",
"sale_price": 24800,
"stock_num": 3479,
"sku_code": "",
"sku_attrs": [{
"attr_key": "\u60a8\u559c\u6b22",
"attr_value": "700012"
}]
}, {
"thumb_img": "https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HNe1Y5IqOXYfy_vOM-2qaqlFoTuvew0Vc0xuc1bC3AU",
"sale_price": 24800,
"stock_num": 3479,
"sku_code": "",
"sku_attrs": [{
"attr_key": "\u60a8\u559c\u6b22",
"attr_value": "700005"
}]
}, {
"thumb_img": "https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HPXhgfiAyEOo08-nOwRWIHymy3Jthye1jBrq4QHZW9Q",
"sale_price": 24800,
"stock_num": 3479,
"sku_code": "",
"sku_attrs": [{
"attr_key": "\u60a8\u559c\u6b22",
"attr_value": "700015"
}]
}, {
"thumb_img": "https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HCieF3mgdoaDeYZstelKOSr3XNGj4PiVwn6rstMgqGo",
"sale_price": 24800,
"stock_num": 3479,
"sku_code": "",
"sku_attrs": [{
"attr_key": "\u60a8\u559c\u6b22",
"attr_value": "700007"
}]
}, {
"thumb_img": "https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HGJJ0tRCa4YApyxgzUYjyAGQ9_T7tMW1E3quKR8_OfQ",
"sale_price": 24800,
"stock_num": 3479,
"sku_code": "",
"sku_attrs": [{
"attr_key": "\u60a8\u559c\u6b22",
"attr_value": "700003"
}]
}, {
"thumb_img": "https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HAbwhPKmvDn0UEjOh-uIP252pGGTdfHsJB7OurxGj6A",
"sale_price": 24800,
"stock_num": 3479,
"sku_code": "",
"sku_attrs": [{
"attr_key": "\u60a8\u559c\u6b22",
"attr_value": "700020"
}]
}, {
"thumb_img": "https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HOqwhXjcNbIOwh5AW4ocaq0kZuObpBiU81JTkkg6_IA",
"sale_price": 24800,
"stock_num": 3479,
"sku_code": "",
"sku_attrs": [{
"attr_key": "\u60a8\u559c\u6b22",
"attr_value": "700006"
}]
}, {
"thumb_img": "https:\/\/mmecimage.cn\/p\/wx2c58b9aee2cb6971\/HA2XbHGo9JAlnwFmBGirEgA_ZXuS60gzzJ7aBaABpn4",
"sale_price": 100,
"stock_num": 3460,
"sku_code": "",
"sku_attrs": [{
"attr_key": "\u60a8\u559c\u6b22",
"attr_value": "700010"
}]
}]
}
先通过类目接口获取必须填写的字段,然后商品信息中添加必填字段信息
然后获取以后呢,在前端页面需要显示出来这些信息里面的那一部分呢,是带有"is_required": true这部分的信息还是需要在前端页面显示出来所有的回传过来的商品属性信息呢?