购物车列表
<h3>请求路由url</h3>
<p>/api/cart/getCartLists</p>
<h3>请求方式</h3>
<p>get</p>
<h3>请求参数</h3>
<h3>请求参数</h3>
<table>
<thead>
<tr>
<th style="text-align: center;"><strong> 参数 </strong></th>
<th style="text-align: center;"><strong> 说明 </strong></th>
<th style="text-align: center;"><strong> 类型 </strong></th>
<th style="text-align: center;"><strong> 是否必要 </strong></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">token</td>
<td style="text-align: center;">登录时返回的token</td>
<td style="text-align: center;">string</td>
<td style="text-align: center;">是</td>
</tr>
</tbody>
</table>
<h3>请求结果</h3>
<pre><code class="language-json">{
"code": 1,
"msg": "操作成功",
"time": "1641985859",
"data": {
"goods_list": [//购物车商品列表
{
"goods_id": 21,//商品id
"goods_name": "小米Mix3",//商品名
"store_id": 0,//所属商家id
"category_id": 5,//分类id
"spec_type": "20",//商品规格:10=单规格,20=多规格
"deduct_stock_type": "20",//库存计算方式:10=下单减库存,20=付款减库存
"sales_initial": 20,//初始销量
"sales_actual": 4,//实际销量
"goods_sort": 21,//商品排序
"image": "https://her-family.oss-cn-qingdao.aliyuncs.com/addons_store_uploads/20181105/ffc4440df18661948b9c2d4dd4ae419b.jpg",//商品图片
"goods_sku_id": "41_43",//属性sku id
"goods_sku": {//属性详情
"goods_spec_id": 84,//属性自增id
"goods_id": 21,//商品id
"goods_no": "SN012",//商品编号
"goods_price": "4099.00",//销售价格
"line_price": "0.00",
"stock_num": 999,//库存
"goods_sales": 0,
"goods_weight": 0.5,
"spec_sku_id": "41_43",
"spec_image": "",
"create_time": 1542271178,
"update_time": 1542271178,
"goods_attr": "颜色:翡翠绿; 版本:8+128; ",//规格属性说明
"img_show": ""
},
"show_error": 0,
"goods_price": "4099.00",//商品销售价格
"total_num": "1",//商品数量
"total_price": "4099.00",//该商品总价格
"goods_total_weight": "0.50",//重量
"express_price": "10.00",//运费
"goods_sales": 24,//总销量(初始销量+实际销量)
"goods_spec_id": 84//规格id
},
{
"goods_id": 24,
"goods_name": "车厘子智利进口",
"store_id": 0,
"category_id": 7,
"spec_type": "10",
"deduct_stock_type": "20",
"sales_initial": 0,
"sales_actual": 12,
"goods_sort": 24,
"image": "https://her-family.oss-cn-qingdao.aliyuncs.com/addons_store_uploads/20181105/a460ffdbd534b10cdf40487189ccb6b7.jpg",
"goods_sku_id": "",
"goods_sku": {
"goods_spec_id": 94,
"goods_id": 24,
"goods_no": "CHE001",
"goods_price": "258.00",
"line_price": "29999999.01",
"stock_num": 94,
"goods_sales": 12,
"goods_weight": 1,
"spec_sku_id": "",
"spec_image": "",
"create_time": 1542707236,
"update_time": 1543283382,
"goods_attr": ""
},
"show_error": 0,
"goods_price": "258.00",
"total_num": 2,
"total_price": "516.00",
"goods_total_weight": "2.00",
"express_price": "18.00",
"goods_sales": 12,
"goods_spec_id": 94
}
],
"order_total_num": 3,//总数力量
"goods_total_num": 2,//商品种类数量
"order_total_price": 4675,//商品总价格
"order_pay_price": "4665.00",//计算完运费优惠后应该付款价格
"preferential_price":10,//优惠金额
"express_price": 28,//运费合计
"intra_region": true,
"has_error": false,
"error_msg": ""
}
}</code></pre>
<h3>备注</h3>