商品详情
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://52.yunhu365.com/ErpServer/h5api/12116/st0908_1</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">header</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">sign</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>上传的json字符串经过md5签名的值</td>
</tr>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">否</td>
<td>string</td>
<td>登录成功后返回的用户token,登录前传入空字符串</td>
</tr>
</tbody>
</table>
<h5>请求参数示例</h5>
<pre><code>{
"actionName": "goodsDetail",
"id": 102109
}
</code></pre>
<h5>json字段说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">actionName</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>固定传goodsDetail</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>商品ID</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 1,
"msg": "",
"actionName": "goodsDetail",
"data": {
"id": 102109,
"name": "奥硝唑分散片 0.25g*24s 天方药业",
"inventory_nums": 86,
"price": 32,
"origin_price": 38.4,
"content": "满200减20,满300减少35,满56免费送",
"isMed": 1,
"isRx": 0,
"isOTC": 1,
"std": 1,
"images": [
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101460",
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101461",
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101462",
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101464",
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101466"
],
"sales": 0,
"goods_rate": 0,
"goods_type": "",
"standards": [
{
"id": 0,
"name": "1盒\/0.25g*24s",
"price": 32,
"origin_price": 38.4,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101459",
"inventory_nums": 86,
"sales": 0
},
{
"id": 1,
"name": "奥硝唑+2盒维生素E",
"price": 148,
"origin_price": 152.6,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=104469",
"inventory_nums": 12,
"sales": 0
},
{
"id": 2,
"name": "奥硝唑1盒+蛋白质粉1盒",
"price": 301,
"origin_price": 315,
"thumb": "",
"inventory_nums": 36,
"sales": 0
}
],
"commitments": [
{
"id": 100002,
"name": "配送",
"content": "满50元免费配送",
"serviceclass": "配送",
"thumb": "",
"price": 0,
"spid": 0
},
{
"id": 100003,
"name": "煎药费用",
"content": "专业代煎",
"serviceclass": "售后",
"thumb": "",
"price": 15,
"spid": 0
},
{
"id": 100004,
"name": "药师服务",
"content": "专业的药师服务,为您提供一对一服务",
"serviceclass": "售后",
"thumb": "",
"price": 8,
"spid": 0
},
{
"id": 100005,
"name": "退货保险",
"content": "退货可获得5元运费",
"serviceclass": "售后",
"thumb": "",
"price": 0.8,
"spid": 0
}
],
"spparams": [
{
"id": 1,
"name": "条码",
"value": "6901398878179"
},
{
"id": 2,
"name": "商品名称",
"value": "奥硝唑分散片"
},
{
"id": 3,
"name": "规格",
"value": "0.25g*24s"
},
{
"id": 4,
"name": "型号",
"value": "10181"
},
{
"id": 5,
"name": "生产厂家",
"value": "天方药业有限公司"
},
{
"id": 6,
"name": "药品分类",
"value": "化学药制剂"
},
{
"id": 7,
"name": "计量单位",
"value": "盒"
},
{
"id": 8,
"name": "批准文号",
"value": "国药准字H20040375"
},
{
"id": 9,
"name": "剂型",
"value": "片剂"
},
{
"id": 10,
"name": "货号",
"value": "10181"
},
{
"id": 11,
"name": "功能主治",
"value": "药品属特殊商品,请详细阅读药品使用说明书,并遵医嘱安全用药"
}
],
"detailimages": [
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101460",
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101461",
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101462",
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101464",
"https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101466"
],
"sumRecommends": [
{
"id": 100002,
"name": "活血",
"context": "这个组合是最佳的,可以有效增强抵抗力,达到强身健体的效果",
"list": [
{
"id": 102109,
"name": "奥硝唑分散片 0.25g*24s 天方药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101459",
"price": 32,
"origin_price": 38.4,
"sales": 0,
"inventory_nums": 86,
"saleinfo": "满200减20,满300减少35",
"std": 1
},
{
"id": 102780,
"name": "活血消痛酊 60ml 河南羚锐制药",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100674",
"price": 68,
"origin_price": 81.6,
"sales": 0,
"inventory_nums": 176,
"saleinfo": "满200减20,满300减少35",
"std": 0
}
]
},
{
"id": 100001,
"name": "增加免疫力",
"context": "这个组合是最佳的,可以有效增强抵抗力,达到强身健体的效果",
"list": [
{
"id": 102109,
"name": "奥硝唑分散片 0.25g*24s 天方药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101459",
"price": 32,
"origin_price": 38.4,
"sales": 0,
"inventory_nums": 86,
"saleinfo": "满200减20,满300减少35",
"std": 1
},
{
"id": 102713,
"name": "鱼油软胶囊 1g*100s (汤臣倍健生产)广州市佰健生物工程",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=102365",
"price": 118,
"origin_price": 141.6,
"sales": 0,
"inventory_nums": 3,
"saleinfo": "满200减20,满300减少35",
"std": 0
}
]
}
],
"recommends": [
{
"recommendType": "黄金组合",
"list": [
{
"id": 102713,
"name": "鱼油软胶囊 1g*100s (汤臣倍健生产)广州市佰健生物工程",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=102365",
"price": 118,
"origin_price": 141.6,
"sales": 0,
"inventory_nums": 3,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 102780,
"name": "活血消痛酊 60ml 河南羚锐制药",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100674",
"price": 68,
"origin_price": 81.6,
"sales": 0,
"inventory_nums": 176,
"saleinfo": "满200减20,满300减少35",
"std": 0
}
]
},
{
"recommendType": "同厂家",
"list": [
{
"id": 102109,
"name": "奥硝唑分散片 0.25g*24s 天方药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101459",
"price": 32,
"origin_price": 38.4,
"sales": 0,
"inventory_nums": 86,
"saleinfo": "满200减20,满300减少35",
"std": 1
},
{
"id": 104291,
"name": "阿托伐他汀钙胶囊 阿托伐他汀钙胶囊 10mg*14粒 天方药业",
"isMed": 1,
"thumb": "",
"price": 53.8,
"origin_price": 64.56,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 104556,
"name": "福多司坦胶囊 福多司坦胶囊 0.2g*12s 天方药业",
"isMed": 1,
"thumb": "",
"price": 18.6,
"origin_price": 22.32,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 104679,
"name": "阿托伐他汀钙胶囊 阿托伐他汀钙胶囊 10mg*7s 天方药业",
"isMed": 1,
"thumb": "",
"price": 25,
"origin_price": 30,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 104924,
"name": "诺氟沙星胶囊 诺氟沙星胶囊 0.1G*10粒 天方药业",
"isMed": 1,
"thumb": "",
"price": 2.2,
"origin_price": 2.64,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 119311,
"name": "盐酸雷尼替丁胶囊 30s*0.15g 天方药业",
"isMed": 1,
"thumb": "",
"price": 5.9,
"origin_price": 7.08,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 119935,
"name": "奥硝唑分散片 0.25g*12片 天方药业",
"isMed": 1,
"thumb": "",
"price": 32,
"origin_price": 38.4,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 120189,
"name": "克拉霉素片 克拉霉素片 0.25g*6片 天方药业",
"isMed": 1,
"thumb": "",
"price": 9.8,
"origin_price": 11.76,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 120456,
"name": "乙酰螺旋霉素片 乙酰螺旋霉素片 0.1g*12片 天方药业",
"isMed": 1,
"thumb": "",
"price": 1.2,
"origin_price": 1.44,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
}
]
},
{
"recommendType": "同品名",
"list": [
{
"id": 102109,
"name": "奥硝唑分散片 0.25g*24s 天方药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101459",
"price": 32,
"origin_price": 38.4,
"sales": 0,
"inventory_nums": 86,
"saleinfo": "满200减20,满300减少35",
"std": 1
},
{
"id": 119935,
"name": "奥硝唑分散片 0.25g*12片 天方药业",
"isMed": 1,
"thumb": "",
"price": 32,
"origin_price": 38.4,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
}
]
}
]
}
}
</code></pre>
<h5>成功返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">actionName</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">object</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">string</td>
<td>商品ID</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">string</td>
<td>品名</td>
</tr>
<tr>
<td style="text-align: left;">inventory_nums</td>
<td style="text-align: left;">number</td>
<td>库存</td>
</tr>
<tr>
<td style="text-align: left;">price</td>
<td style="text-align: left;">number</td>
<td>价格</td>
</tr>
<tr>
<td style="text-align: left;">origin_price</td>
<td style="text-align: left;">number</td>
<td>划线价</td>
</tr>
<tr>
<td style="text-align: left;">content</td>
<td style="text-align: left;">string</td>
<td>备注</td>
</tr>
<tr>
<td style="text-align: left;">isMed</td>
<td style="text-align: left;">int</td>
<td>1药品</td>
</tr>
<tr>
<td style="text-align: left;">isRx</td>
<td style="text-align: left;">int</td>
<td>isRx=1处方药</td>
</tr>
<tr>
<td style="text-align: left;">isOTC</td>
<td style="text-align: left;">int</td>
<td>isOTC=1为OTC</td>
</tr>
<tr>
<td style="text-align: left;">std</td>
<td style="text-align: left;">int</td>
<td>std=1表示是多规格商品</td>
</tr>
<tr>
<td style="text-align: left;">images</td>
<td style="text-align: left;">array</td>
<td>图片数组</td>
</tr>
<tr>
<td style="text-align: left;">images</td>
<td style="text-align: left;">array</td>
<td>图片数组</td>
</tr>
<tr>
<td style="text-align: left;">sales</td>
<td style="text-align: left;">number</td>
<td>销量</td>
</tr>
<tr>
<td style="text-align: left;">goods_rate</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">goods_type</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">standards</td>
<td style="text-align: left;">array</td>
<td>多规格数组,长度为0则无多规格</td>
</tr>
<tr>
<td style="text-align: left;">standards.id</td>
<td style="text-align: left;">int</td>
<td>多规格ID,添加购物车时,需要此值</td>
</tr>
<tr>
<td style="text-align: left;">standards.name</td>
<td style="text-align: left;">string</td>
<td>多规格名称</td>
</tr>
<tr>
<td style="text-align: left;">standards.price</td>
<td style="text-align: left;">number</td>
<td>多规格价格</td>
</tr>
<tr>
<td style="text-align: left;">standards.origin_price</td>
<td style="text-align: left;">number</td>
<td>多规格划线价</td>
</tr>
<tr>
<td style="text-align: left;">standards.thumb</td>
<td style="text-align: left;">string</td>
<td>多规格图片</td>
</tr>
<tr>
<td style="text-align: left;">standards.inventory_nums</td>
<td style="text-align: left;">number</td>
<td>多规格库存</td>
</tr>
<tr>
<td style="text-align: left;">standards.sales</td>
<td style="text-align: left;">number</td>
<td>多规格数量</td>
</tr>
<tr>
<td style="text-align: left;">commitments</td>
<td style="text-align: left;">array</td>
<td>产品或店铺服务</td>
</tr>
<tr>
<td style="text-align: left;">commitments.id</td>
<td style="text-align: left;">int</td>
<td>服务ID</td>
</tr>
<tr>
<td style="text-align: left;">commitments.name</td>
<td style="text-align: left;">string</td>
<td>服务名称</td>
</tr>
<tr>
<td style="text-align: left;">commitments.content</td>
<td style="text-align: left;">string</td>
<td>服务内容</td>
</tr>
<tr>
<td style="text-align: left;">commitments.serviceclass</td>
<td style="text-align: left;">string</td>
<td>服务类别</td>
</tr>
<tr>
<td style="text-align: left;">commitments.thumb</td>
<td style="text-align: left;">string</td>
<td>服务图片</td>
</tr>
<tr>
<td style="text-align: left;">commitments.price</td>
<td style="text-align: left;">number</td>
<td>有价服务,是选择的服务,选择时计入总计</td>
</tr>
<tr>
<td style="text-align: left;">spparams</td>
<td style="text-align: left;">array</td>
<td>产品参数</td>
</tr>
<tr>
<td style="text-align: left;">spparams.id</td>
<td style="text-align: left;">int</td>
<td>参数序号</td>
</tr>
<tr>
<td style="text-align: left;">spparams.name</td>
<td style="text-align: left;">string</td>
<td>参数</td>
</tr>
<tr>
<td style="text-align: left;">spparams.value</td>
<td style="text-align: left;">string</td>
<td>参数值</td>
</tr>
<tr>
<td style="text-align: left;">detailimages</td>
<td style="text-align: left;">array</td>
<td>产品详情图片</td>
</tr>
<tr>
<td style="text-align: left;">detailimages</td>
<td style="text-align: left;">array</td>
<td>产品详情图片</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends</td>
<td style="text-align: left;">string</td>
<td>组合的名称</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.id</td>
<td style="text-align: left;">int</td>
<td>组合ID</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.name</td>
<td style="text-align: left;">string</td>
<td>组合标题</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.context</td>
<td style="text-align: left;">string</td>
<td>组合说明</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list</td>
<td style="text-align: left;">string</td>
<td>组合的商品列表,字段值同商品</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.id</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.name</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.isMed</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.thumb</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.price</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.origin_price</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.sales</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.inventory_nums</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.saleinfo</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">sumRecommends.list.std</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends</td>
<td style="text-align: left;">array</td>
<td>推荐商品</td>
</tr>
<tr>
<td style="text-align: left;">recommends.recommendType</td>
<td style="text-align: left;">string</td>
<td>推荐类型,如同名,同品牌</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list</td>
<td style="text-align: left;">string</td>
<td>推荐的商品列表,字段值同商品。</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.id</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.name</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.isMed</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.thumb</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.price</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.origin_price</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.sales</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.inventory_nums</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.saleinfo</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">recommends.list.std</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>失败返回示例</h5>
<pre><code>{
"code": 0,
"msg": "请求不合法",
"actionName": "goodsDetail"
}
</code></pre>
<h5>失败返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">string</td>
<td>0表示产生错误</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>如果有错误时此值不为空</td>
</tr>
</tbody>
</table>