首页第二屏
<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": "recommentGoodsList",
"page": 1,
"pageSize": 10
}
</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>固定传recommentGoodsList</td>
</tr>
<tr>
<td style="text-align: left;">page</td>
<td style="text-align: left;">是</td>
<td>int</td>
<td>当前页码</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>每页个数</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 1,
"msg": "",
"actionName": "recommentGoodsList",
"data": {
"itemList": [
{
"id": 102090,
"name": "盐酸左西替利嗪片 5mg*18s 北京天衡药物研究院南阳天衡制药厂",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=101369",
"price": 18.8,
"origin_price": 22.56,
"sales": 0,
"inventory_nums": 103,
"saleinfo": "",
"isRx": 1,
"std": 0
},
{
"id": 102091,
"name": "醋氯芬酸肠溶胶囊 0.1g*12s 陕西开元制药",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=103218",
"price": 20.8,
"origin_price": 24.96,
"sales": 0,
"inventory_nums": 0,
"saleinfo": "",
"isRx": 1,
"std": 0
},
{
"id": 102100,
"name": "伊曲康唑胶囊 0.1g*7s 成都倍特药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=103421",
"price": 34.1,
"origin_price": 40.92,
"sales": 0,
"inventory_nums": 23,
"saleinfo": "",
"isRx": 1,
"std": 0
},
{
"id": 102101,
"name": "创口贴(经济型) 70mm*18mm*100s 青岛海诺生物工程",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=102098",
"price": 20,
"origin_price": 24,
"sales": 0,
"inventory_nums": 155,
"saleinfo": "",
"isRx": 0,
"std": 0
},
{
"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": 78,
"saleinfo": "",
"isRx": 1,
"std": 1
},
{
"id": 102113,
"name": "蒲公英颗粒 5g*10袋 (仁和妇炎洁部)江西心诚药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100139",
"price": 25,
"origin_price": 30,
"sales": 0,
"inventory_nums": 77,
"saleinfo": "",
"isRx": 0,
"std": 0
},
{
"id": 102119,
"name": "壮骨麝香止痛膏(盒装) 7cm*10cm*10s 河南羚锐制药",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100102",
"price": 32,
"origin_price": 38.4,
"sales": 0,
"inventory_nums": 30,
"saleinfo": "",
"isRx": 0,
"std": 0
},
{
"id": 102124,
"name": "碳酸氢钠片 0.5g*100s 新乡市常乐制药",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=103913",
"price": 6.3,
"origin_price": 7.56,
"sales": 0,
"inventory_nums": 37,
"saleinfo": "",
"isRx": 0,
"std": 0
},
{
"id": 102135,
"name": "倍适威脱脂棉球 0.2g* 20g 海氏海诺倍适威医疗用品",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=102439",
"price": 3,
"origin_price": 3.6,
"sales": 0,
"inventory_nums": 125,
"saleinfo": "",
"isRx": 0,
"std": 0
},
{
"id": 102142,
"name": "虚汗停颗粒 5g*20袋 广东宝丹制药\/白云山制药总厂\/广州白云山奇星药业",
"isMed": 1,
"thumb": "https:\/\/52.yunhu365.com\/ErpServer\/imguploader.aspx?sc=st0908_1&g=100135",
"price": 36.8,
"origin_price": 44.16,
"sales": 0,
"inventory_nums": 20,
"saleinfo": "",
"isRx": 0,
"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>错误码,1表示成功</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>商品ID</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;">string</td>
<td>1为药品</td>
</tr>
<tr>
<td style="text-align: left;">itemList.thumb</td>
<td style="text-align: left;">string</td>
<td>图片url</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;">string</td>
<td>划线价,市场价,零售价</td>
</tr>
<tr>
<td style="text-align: left;">itemList.sales</td>
<td style="text-align: left;">string</td>
<td>累计销售量</td>
</tr>
<tr>
<td style="text-align: left;">itemList.inventory_nums</td>
<td style="text-align: left;">string</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.isRx</td>
<td style="text-align: left;">int</td>
<td>1表示处方药</td>
</tr>
<tr>
<td style="text-align: left;">itemList.std</td>
<td style="text-align: left;">string</td>
<td>1表示有多规格,用于添加购物时判断</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": "请求不合法"
}
</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>