文档
测试

购物车提交购买

POST
/index.php?s=/api/order/cart

接口描述

get获取订单信息,post创建真实订单获取支付参数

请求参数

参数名
类型
描述
必填
delivery
必填
shop_id
必填
coupon_id
必填
cart_ids
选中的购物车id集合,拼接方法看说明
必填

说明 / 示例

``` /** * 获取已选中的商品 */ getCheckedIds() { let _this = this; let arrIds = []; _this.data.goods_list.forEach(item => { if (item.checked === true) { arrIds.push(item.goods_id + '_' + item.goods_sku_id); } }); return arrIds; }, ```