购物车确认订单
<h3>请求路由url</h3>
<p>/api/order_pay/orderConfirm</p>
<h3>请求方式</h3>
<p>post</p>
<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>
<tr>
<td style="text-align: center;">goods_spec_ids</td>
<td style="text-align: center;">商品规格</td>
<td style="text-align: center;">array</td>
<td style="text-align: center;">是</td>
</tr>
</tbody>
</table>
<h3>goods_spec_ids 请求参数</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;">goods_spec_id</td>
<td style="text-align: center;">商品规格id</td>
<td style="text-align: center;">int</td>
<td style="text-align: center;">是</td>
</tr>
<tr>
<td style="text-align: center;">is_prepay_send_goods</td>
<td style="text-align: center;">是否为赠品:0 不是,1 是</td>
<td style="text-align: center;">int</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=付款减库存
"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,//总数力量
"order_total_price": 4635,//商品总价格
"order_pay_price": "4615.00",//计算完运费优惠后应该付款价格
"address": {//默认的收获地址
"id": 1,//收获地址id
"name": "舒珊珊",//收获人
"phone": "15507599086",//联系电话
"province_id": 1964,//省id
"province": "广东生",//省名
"city_id": 1988,//城市id
"city": "深圳",//城市名
"region_id": 1993,//区id
"region": "龙岗区",//区名
"detail": "坂田寄到",//详细地址
"user_id": 2,//用户id
"is_default": 1,//是否默认地址
},
"express_price": 28,//运费合计
"intra_region": true,
"has_error": false,
"error_msg": "",
"preferential_price": 20//优惠金额
}
}</code></pre>
<h3>备注</h3>