- 必须先读
- Ajax编程_V7.6大纲配套
- 数据可视化
- Vue基础
- Vue_大事件
- 黑马头条号
- 极客园_PC
- 极客园(黑马头条)_移动端
- 人资项目
- 小兔鲜电商
- 小程序基础
- 小程序项目
- layui_大事件
- 品优购电商后台
- 其他可用接口
生成-订单(结算页)
GET
/member/order/pre
请求参数
Header 参数
Authorization
string
必需
示例值:
{{ERABBIT_ACCESS_TOKEN}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://pcapi-xiaotuxian-front-devtest.itheima.net/member/order/pre' \
--header 'Authorization: {{ERABBIT_ACCESS_TOKEN}}'
返回响应
🟢200成功
application/json
Body
code
string
业务状态码
msg
string
响应消息
result
object
响应结果
userAddresses
array [object {11}]
订单内 用户地址列表
goods
array [object {10}]
订单商品集合
summary
object
订单总计信息
示例
{
"code": "1",
"msg": "操作成功",
"result": {
"userAddresses": [
{
"id": "1540230291484839938",
"receiver": "龙龙酱",
"contact": "17265443216",
"provinceCode": "420000",
"cityCode": "420100",
"countyCode": "420111",
"address": "武昌首义学院",
"isDefault": 1,
"fullLocation": "湖北省武汉市洪山区",
"postalCode": null,
"addressTags": null
},
{
"id": "1539125179223904257",
"receiver": "阿朱",
"contact": "13966666666",
"provinceCode": "320000",
"cityCode": "320500",
"countyCode": "320508",
"address": "慕容山庄",
"isDefault": 1,
"fullLocation": "江苏省苏州市姑苏区",
"postalCode": "514688",
"addressTags": "姑苏慕容"
},
{
"id": "1527553797373562882",
"receiver": "张先生12",
"contact": "15236363232",
"provinceCode": "150000",
"cityCode": "150600",
"countyCode": "150625",
"address": "仙霞西路885弄",
"isDefault": 1,
"fullLocation": "内蒙古自治区鄂尔多斯市杭锦旗",
"postalCode": "100010",
"addressTags": "家"
},
{
"id": "1539126595464204290",
"receiver": "慕容复",
"contact": "13966666666",
"provinceCode": "320000",
"cityCode": "320500",
"countyCode": "320508",
"address": "慕容山庄",
"isDefault": 0,
"fullLocation": "江苏省苏州市姑苏区",
"postalCode": "415366",
"addressTags": "姑苏慕容"
}
],
"goods": [
{
"id": "3995844",
"name": "优质90%白鸭绒,儿童轻薄羽绒裤1-6岁",
"picture": "https://yanxuan-item.nosdn.127.net/f17d6260e7eb0cb805b796296f5f54b5.jpg",
"count": 5,
"skuId": "300247947",
"attrsText": "颜色:黑色 尺码:80cm(建议12-18个月) ",
"price": "129.00",
"payPrice": "129.00",
"totalPrice": "645.00",
"totalPayPrice": "645.00"
},
{
"id": "3997974",
"name": "入门首选,语音播报电子血压计",
"picture": "https://yanxuan-item.nosdn.127.net/8f0c15f981c5cbcb1aa17215a259fa62.png",
"count": 2,
"skuId": "300265327",
"attrsText": "规格:白色KD-5901 ",
"price": "109.00",
"payPrice": "109.00",
"totalPrice": "218.00",
"totalPayPrice": "218.00"
}
],
"summary": {
"goodsCount": 7,
"totalPrice": 863,
"totalPayPrice": 868,
"postFee": 5,
"discountPrice": 0
}
}
}
修改于 2022-07-10 03:16:50