资源一体化-用户端

资源一体化-用户端


确认购物车商品接口

<p><strong>接口说明 </strong></p> <pre><code>请求接口: /kmall/app/cart/confirm 请求方式: POST 接口说明: 确认购物车商品接口(需登录)</code></pre> <p><strong>请求参数 </strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>长度</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>mallId</td> <td>是</td> <td>20</td> <td>int</td> <td>商圈id</td> </tr> <tr> <td>productIds</td> <td>是</td> <td>500</td> <td>string</td> <td>商品id数组,JSON</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>totalNum</td> <td>Integer</td> <td>购买总价</td> </tr> <tr> <td>totalAmount</td> <td>String</td> <td>购买总价</td> </tr> <tr> <td>deliverAmount</td> <td>String</td> <td>配送费</td> </tr> <tr> <td>item</td> <td>list</td> <td>订单明细</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "code": "0000", "msg": "操作成功!", "data":{ "totalNum": 1, "totalAmount": "50.0", "deliverAmount": "5.5", "item":[{ "shopId": 1, "shopName": "张三店", "cart":[ { "id": 1, "productName": "测试商品111", "mainPic": "", "quantity": 1, "marketPrice": 90.0, "price": 50.0, "totalAmount": 50.0 } ]} ] } } 失败 { "code": "0001", "msg": "店家含有必选菜,请重新下单", "data": null }</code></pre>

页面列表

ITEM_HTML