**簡要描述:**
- 訂單商品信息界面,由商品詳情頁或者購物車頁面點擊購買進入展示的商品訂單信息
**請求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否 |
- 文檔說明
- 商城部分
- 商城首頁(Index/index)
- 商品分類(Goods/cate)
- 商品列表(Goods/goodsList)
- 商品詳情(Goods/goodsDetail)
- 商品屬性獲取(Goods/goodsAttr)
- 收藏/取消收藏(Goods/goodsCollect)
- 加購物車(Goods/cartAdd)
- 立即購買(Goods/buyNow)
- 優惠券列表(Index/coupon)
- 領取優惠券(Index/couponGet)
- 文章列表(Index/articleList)
- 文章詳情(Index/articleSee)
- 簽到頁面(Index/signPageShow)
- 用戶簽到(Index/signIn)
- 簽到記錄(Index/signRecord)
- 文章分類(Index/articleCate)
- 商品評價列表(Goods/goodsComment)
- 登錄部分
- 獲取驗證碼(Login/getCode)
- 用戶注冊(Login/reg)
- 用戶登錄(Login/login)
- 找回密碼(Login/resetPass)
- 用戶協議(Login/agreement)
- 個人中心
- 個人首頁(User/index)
- 修改密碼(User/passReset)
- 修改頭像昵稱(User/userEdit)
- 地址列表(User/addressList)
- 地址操作(User/addressOperate)
- 收藏列表(User/collectList)
- 優惠券列表(User/userCoupon)
- 余額頁面(User/balancePage)
- 余額充值(User/balanceRecharge)
- 賬單列表(User/billList)
- 積分頁面(User/integralPage)
- 購物車部分
- 購物車列表(Cart/lists)
- 修改購物車商品數量(Cart/setNumber)
- 刪除購物車商品(Cart/del)
- 清空失效商品(Cart/unEffectiveDel)
- 訂單部分
- 訂單商品信息界面(Order/orderShow)
- 獲取訂單可用優惠券(Order/orderAvaCoupon)
- 提交訂單(Order/orderSub)
- 余額支付(Order/balancePay)
- 微信支付(Order/wxPay)
- 訂單列表(Order/OrderList)
- 訂單詳情(Order/orderDetail)
- 取消訂單(Order/orderCancel)
- 申請退款界面(Order/orderRefundShow)
- 提交退款申請(Order/refundApply)
- 查看物流(Order/orderLogistics)
- 確認收貨(Order/confirmReceipt)
- 評價訂單(Order/orderComment)
- 刪除訂單(Order/orderDel)
- 其他
- 上傳圖片(Upload/img)
- 獲取推薦商品(Goods/getRecGoods)