购物车推荐
<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": "carRecommendList",
"page": 1,
"pageSize": 10,
"userid": 1
}
</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>固定传carRecommendList</td>
</tr>
<tr>
<td style="text-align: left;">page</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">userid</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 1,
"msg": "",
"actionName": "carRecommendList",
"data": {
"itemList": [
{
"id": 102169,
"name": "感冒灵颗粒 感冒灵颗粒 10g*9袋 广东新峰药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100152",
"price": 9.8,
"origin_price": 11.76,
"sales": 0,
"inventory_nums": 952,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 102201,
"name": "小儿感冒颗粒 小儿感冒颗粒 6g*24袋 华润三九(枣庄)药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=104682",
"price": 28.8,
"origin_price": 34.56,
"sales": 0,
"inventory_nums": 21,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 102956,
"name": "三九感冒灵胶囊 12s*0.5g 华润三九医药(X)",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=104283",
"price": 20.9,
"origin_price": 25.08,
"sales": 0,
"inventory_nums": 35,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 103610,
"name": "风寒感冒颗粒 风寒感冒颗粒 8g*10袋 (百灵二部)贵州百灵企业制药",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100422",
"price": 25.8,
"origin_price": 30.96,
"sales": 0,
"inventory_nums": 80,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 104050,
"name": "复方感冒灵颗粒 复方感冒灵颗粒 14g*13袋 广西宝瑞坦制药",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100750",
"price": 29.8,
"origin_price": 35.76,
"sales": 0,
"inventory_nums": 87,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 104422,
"name": "桑菊感冒颗粒 11g*10袋 吉林敖东延边药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101036",
"price": 25,
"origin_price": 30,
"sales": 0,
"inventory_nums": 69,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 104942,
"name": "感冒清热胶囊 0.45g*24s 吉林敖东力源制药(原吉林敖东延边药业)",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101297",
"price": 28,
"origin_price": 33.6,
"sales": 0,
"inventory_nums": 173,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 105030,
"name": "感冒灵胶囊 感冒灵胶囊 0.5G*24S 广西嘉进药业(原广西嘉进药业)",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=102132",
"price": 22.8,
"origin_price": 27.36,
"sales": 0,
"inventory_nums": 48,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 105129,
"name": "感冒清热颗粒 感冒清热颗粒 12g*18袋 三九\/合肥华润神鹿药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=104074",
"price": 26,
"origin_price": 31.2,
"sales": 0,
"inventory_nums": 59,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 105317,
"name": "感冒止咳颗粒 感冒止咳颗粒 10g*10袋 西安博爱制药",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=102623",
"price": 19.8,
"origin_price": 23.76,
"sales": 0,
"inventory_nums": 8,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 105452,
"name": "感冒清热颗粒 感冒清热颗粒 12G*12袋 广西维威制药(原南宁市维威制药)",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100124",
"price": 17.8,
"origin_price": 21.36,
"sales": 0,
"inventory_nums": 444,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 105722,
"name": "风热感冒颗粒 风热感冒颗粒 10G*10袋 康县独一味生物制药(原甘肃独一味生物制药)",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100391",
"price": 19.8,
"origin_price": 23.76,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 105917,
"name": "风寒感冒颗粒 风寒感冒颗粒 8G*10袋 康县独一味生物制药(原甘肃独一味生物制药)",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=104714",
"price": 13,
"origin_price": 15.6,
"sales": 0,
"inventory_nums": 152,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 106031,
"name": "复方感冒灵片 复方感冒灵片 0.45G*12S*2板 海南葫芦娃药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101710",
"price": 18,
"origin_price": 21.6,
"sales": 0,
"inventory_nums": 35,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 107134,
"name": "感冒滴丸 感冒滴丸 2.5g*6袋 贵州健兴药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100640",
"price": 32.9,
"origin_price": 39.48,
"sales": 0,
"inventory_nums": 53,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 107195,
"name": "小儿感冒颗粒(999) 6g*10袋 华润三九(枣庄)药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=103955",
"price": 12,
"origin_price": 14.4,
"sales": 0,
"inventory_nums": 2,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 107531,
"name": "四季感冒片 四季感冒片 0.35g*40片 佐今明制药",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=106594",
"price": 15,
"origin_price": 18,
"sales": 0,
"inventory_nums": 1,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 118149,
"name": "小儿感冒颗粒 小儿感冒颗粒 6G*10袋 湖南时代阳光药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100210",
"price": 19.8,
"origin_price": 23.76,
"sales": 0,
"inventory_nums": 121,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"id": 118205,
"name": "四季感冒片 四季感冒片 0.37G*20片 天津和治药业(原天津和治药业)",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101453",
"price": 17.8,
"origin_price": 21.36,
"sales": 0,
"inventory_nums": 73,
"saleinfo": "满200减20,满300减少35",
"std": 0
},
{
"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
}
],
"pageSize": 10
}
}
</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;">itemList</td>
<td style="text-align: left;">array</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.id</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.name</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.isMed</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.thumb</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.price</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.origin_price</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.sales</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.inventory_nums</td>
<td style="text-align: left;">number</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.saleinfo</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">itemList.std</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">int</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>失败返回示例</h5>
<pre><code>{
"code": 0,
"msg": "请求不合法",
"actionName": "carRecommendList"
}
</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>