企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
**简要描述:** - 订单商品信息界面,由商品详情页或者购物车页面点击购买进入展示的商品订单信息 **请求URL:** - ` index/Order/orderShow ` **参数:** |参数|必选|类型|描述| |:-------|:-------|:-------|:-------| | token | 是 | string| 用户token| | from |是 | string| 来源:goods_detail 表示从详情页进入,cart 表示从购物车进入 | | - goods_info |是 |object | 商品信息 | | cart_id |是 | number| 购物车id,详情页进入传0 | | goods_id | 是 |number| 商品id | | attr_value_id |是 | number| 商品属性id,如果有活动,则是对应的活动商品的属性 | | goods_num | 是 |number| 商品数量,大于0 | **请求示例** ``` $.post(url + 'index/Order/orderShow', { token : '1A25D044E590503C68D04CFF8F924161', from : 'goods_detail', goods_info : [ { cart_id : 0, goods_id : 5, attr_value_id : 571, goods_num : 1 } ] }, function (res) { console.log(JSON.parse(res)); }); ``` **返回示例** ``` { "code": 1, "msg": "请求成功", "data": { "balance": "10000.00", "address": { "id": 6, "user_id": 1, "name": "嘻嘻", "phone": "13100000012", "province": "安徽省", "city": "合肥市", "area": "瑶海区", "detail": "火车站" }, "goods_info": [ { "cart_id": 0, "img": "/uploads/20200401/d718cc8ffbf6d75e306960956e5fc22e.jpg", "title": "小米101", "attr": "l,白色", "nums": 1, "price": "2500.00", "is_postage": 1, "postage": "5.00" } ], "coupon_list": [ { "id": 1, "coupon_title": "满288减2", "coupon_price": "28.50", "coupon_require_price": "300.00", "start_time": "2020-03-30 17:14:50", "end_time": "2020-03-29 00:00:00", "is_select": 1 } ], "goods_num": 1, "total_price": 2500, "postage": 0, "coupon": "28.50", "pay_price": 2471.5 } } ``` **data返回值说明** |参数|类型|描述| |:-------|:-------|:-------| | balance | string| 用户余额 | | goods_num |int |商品数量 | | total_price |decimal |商品总金额 | | postage |decimal |应付邮费 | | coupon |decimal |优惠券抵扣金额 | | pay_price |decimal |用户应付金额 | | - address |object | 地址信息 | | id | number| 地址id | | user_id | number| 用户id | | name | string| 收件人姓名 | | phone | string| 收件人手机 | | province | string| 省 | | city | string| 市 | | area | string| 县或区 | | detail | string| 详细地址 | | - goods_info |object | 商品信息 | | cart_id | number| 购物车id | | img | string| 商品图片 | | title | string| 商品名称 | | attr | string| 商品属性 | | nums | number| 商品数量 | | price | string| 商品单价 | | is_postage | number| 是否包邮:1是,0否 | | postage | string| 邮费 | | - coupon_list |object | 可用优惠券列表 | | id | number| 优惠券id | | coupon_title | string| 优惠券名称 | | coupon_price | string| 优惠券金额 | | coupon_require_price | string| 满足使用的金额 | | start_time | string| 生效时间 | | end_time | string| 失效时间 | | is_select | number| 是否选择:1是,0否 |