**簡要說明**
* 商品分類
**請求URL:**
* `index/Goods/cate`
**參數**
* 無
**返回示例**
```
{
"code": 1,
"msg": "操作成功",
"data": [
{
"id": 12,
"pid": 0,
"name": "居家生活",
"img": "/uploads/20200319/afd1fc9bd44bbfd0049e7fb4a1527019.jpg",
"child": [
{
"id": 13,
"pid": 12,
"name": "家具",
"img": "/uploads/20200324/99fa2387e83ba1fb69d7194e5008d98b.png",
"child": []
},
{
"id": 14,
"pid": 12,
"name": "燈具",
"img": "/uploads/20200324/ca94656321c2c412577094007501910f.png",
"child": []
}
]
},
{
"id": 10,
"pid": 0,
"name": "手機數碼",
"img": "/uploads/20200330/e00ec5b8b570ef722e95dd71a2f38894.jpg",
"child": [
{
"id": 15,
"pid": 10,
"name": "華為手機",
"img": "/uploads/20200401/9625a96e9a5a82625ff048628bd5cb3a.png",
"child": []
}
]
}
]
}
```
**data返回值說明**
| 參數 | 類型 | 描述 |
| --- | --- | --- |
| id | number | 分類id |
| pid | number | 上級分類id |
| name | string | 分類名稱 |
| img | string | 分類圖片 |
| \- child | object | 子分類信息 |
- 文檔說明
- 商城部分
- 商城首頁(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)