资源一体化-用户端

资源一体化-用户端


获取购物车商品列表接口

<p><strong>接口说明 </strong></p> <pre><code>请求接口: /kmall/app/cart/list 请求方式: 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>mallId</td> <td>是</td> <td>int</td> <td>11</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>totalNum</td> <td>string</td> <td>商品总数</td> </tr> <tr> <td>totalPrice</td> <td>string</td> <td>购物车总价</td> </tr> <tr> <td>limitPrice</td> <td>string</td> <td>起购价格</td> </tr> <tr> <td>item</td> <td>string</td> <td>购物车信息</td> </tr> </tbody> </table> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>shopId</td> <td>string</td> <td>店铺id</td> </tr> <tr> <td>shopName</td> <td>string</td> <td>店铺名称</td> </tr> <tr> <td>cart</td> <td>list</td> <td>商品信息</td> </tr> </tbody> </table> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>string</td> <td>商品id</td> </tr> <tr> <td>productName</td> <td>string</td> <td>商品名称</td> </tr> <tr> <td>mainPic</td> <td>string</td> <td>商品主图</td> </tr> <tr> <td>quantity</td> <td>string</td> <td>购买数量</td> </tr> <tr> <td>marketPrice</td> <td>string</td> <td>商品市场价</td> </tr> <tr> <td>price</td> <td>string</td> <td>商品现价</td> </tr> <tr> <td>totalAmount</td> <td>string</td> <td>购买总价</td> </tr> <tr> <td>isCheck</td> <td>int</td> <td>商品是否符合条件,可以下单(0不符合:商家含有必选菜;1:符合)</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "code": "0000", "msg": "操作成功!", "data": { "totalNum": 2, "deliverAmount": null, "totalAmount": "3.00", "limitAmount": "39.0", "gapAmount": "36.00", "items": [ { "shopId": 1, "shopName": "小丸子", "totalNum": 1, "totalAmount": "0.00", "isCheck": 1, "details": [ { "id": 1, "categoryId": 1, "productName": "221", "mainPic": "xxx", "price": 0.0, "marketPrice": 0.0, "quantity": 1, "totalAmount": 0.00 } ] } ] } }</code></pre>

页面列表

ITEM_HTML