资源一体化-用户端

资源一体化-用户端


商品详情接口

<p><strong>接口说明 </strong></p> <pre><code>请求接口: /mall/product/info/ 请求方式: GET 接口说明: 商品详情接口</code></pre> <p><strong>请求参数 </strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>长度</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>productId</td> <td>是</td> <td>20</td> <td>int</td> <td>商品id</td> </tr> </tbody> </table> <p><strong>返回参数</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>string</td> <td>状态值</td> </tr> <tr> <td>msg</td> <td>string</td> <td>返回消息</td> </tr> <tr> <td>data</td> <td>string</td> <td>返回数据</td> </tr> <tr> <td>id</td> <td>int</td> <td>福利id</td> </tr> <tr> <td>productName</td> <td>sring</td> <td>商品名称</td> </tr> <tr> <td>mainPic</td> <td>sring</td> <td>商品图</td> </tr> <tr> <td>picture</td> <td>sring</td> <td>轮播图列表</td> </tr> <tr> <td>salesVolume</td> <td>sring</td> <td>销量</td> </tr> <tr> <td>price</td> <td>sring</td> <td>现价</td> </tr> <tr> <td>marketPrice</td> <td>sring</td> <td>原市场价</td> </tr> <tr> <td>productDetails</td> <td>sring</td> <td>商品详情,html格式</td> </tr> <tr> <td>sendTime</td> <td>date</td> <td>发货时间</td> </tr> <tr> <td>getbyselfTime</td> <td>sring</td> <td>自提时间</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "code":"0000", "msg":"success", "data":{ "id": 7, "productName": "第一杯卡布奇诺!!!!", "mainPic": "http://1.png", "pictures": ["http://1.png","http://2.png"], "salesVolume": null, "price": 0, "marketPrice": 0, "productDetails":"&lt;html&gt;&lt;/html&gt;", "sendTime":"2019-10-20", "getbyselfTime":"2019-10-20" } }</code></pre>

页面列表

ITEM_HTML