🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**1.接口地址**:http://api.zishahui.vip/product-cart/cart-list **2.支持格式**:json **3.请求方式**:post **4.请求参数**: | 参数 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | user_id |是 | int | 用户ID| ***5.返回字段说明*** |名称|类型|说明| |---|:---:|--:|--:| |code|int|返回码| |msg|string|返回提示信息| |data|string|返回数据| |count|int|购物车数量| ***6.返回字段data说明*** |名称|类型|说明| |---|:---:|--:|--:| |id|int|购物车ID| |product_id|int|商品ID| |price|int|单价| |title|string|名称| |intro|string|简介| |icon_path|string|封面图| |num|int|数量| |capacity|int|容量 |intro|string|简介| |shop_name|string|店名|| *******成功示列******* { "code": 1, "msg": "返回成功!", "data": [ [ { "id": "1", "shop_name": "利永紫砂官方旗靓店", "goods": [ { "product_id": "19", "product_status": "1", "id": "622", "title": "白羊座", "status": "1", "num": "2", "icon_path": "http://backend.zishahui.vip/upload/product/20180615/bb4c3b716edaa9521bc3c255f016fd3e.jpg", "price": "1268.00", "shop_id": "1", "shop_name": "利永紫砂官方旗靓店" }, { "product_id": "1", "product_status": "1", "id": "619", "title": "大汉雄风", "status": "1", "num": "1", "icon_path": "http://v2.backend.zishahui.vip/upload/product/20180713/ddbdb0e63d90688a52bf8df69b1357d4.png", "price": "2680.00", "shop_id": "1", "shop_name": "利永紫砂官方旗靓店" } ] }, { "id": "2", "shop_name": "紫砂云官方旗舰店", "goods": [ { "product_id": "20", "product_status": "1", "id": "621", "title": "处女座", "status": "1", "num": "1", "icon_path": "http://backend.zishahui.vip/upload/product/20180615/18e016664025c521bd6ead8e99436a46.jpg", "price": "3000.00", "shop_id": "2", "shop_name": "紫砂云官方旗舰店" } ] } ], [ { "product_id": "17", "product_status": "0", "id": "620", "title": "极光", "status": "0", "num": "1", "icon_path": "http://backend.zishahui.vip/upload/product/20180615/0a85386994584bbdcda84979ae5eeb4c.jpg", "price": "1250.00", "shop_id": "1", "shop_name": "利永紫砂官方旗靓店" } ] ], "count": 3 } *******获取失败******* { "code": -1, "msg": "非法参数!", "data": [] }