* 一級分類接口
~~~[api]
get:/index.php?ctl=Goods_Cat&met=cat&typ=json&cat_parent_id=0
*int:cat_parent_id=默認值#分類父級id
<<<
success
{"cmd_id":-140,
"status":200,
"msg":"success",
"data":{"items":[
{
"cat_id":"1",
"cat_name":"\u670d\u88c5\u978b\u5e3d",
"cat_parent_id":"0",
"cat_pic":"***/20171031\/1509430424912695.jpg",
"type_id":"0",
"cat_commission":"3",
"cat_is_wholesale":"0",
"cat_is_virtual":"0",
"cat_templates":"0",
"cat_displayorder":"0",
"cat_level":2,
"cat_show_type":"0",
"id":"1",
"parent_id":"0",
"type_number":"trade",
"name":"\u670d\u88c5\u978b\u5e3d",
"level":2,
"cat_icon":"ui-icon-star",
"expanded":true,
"loaded":true,
"is_leaf":true
}
]
}
}
<<<
error
{"cmd_id":-140,"status":200,"msg":"success","data":{"items":[]}}
~~~
* 默認二級分類接口
~~~[api]
get:/index.php?ctl=Goods_Brand&met=lists&typ=json
<<<
success
{
"cmd_id":-140,
"status":200,
"msg":"success",
"data":{
"page":1,
"total":1,
"totalsize":"12",
"records":"12",
"items":[
{
"brand_id":"1",
"brand_name":"\u97e9\u90fd\u8863\u820d",
"brand_name_cn":"",
"cat_id":"2",
"brand_initial":"H",
"brand_show_type":"0",
"brand_pic":"****1497851550726555.jpg",
"brand_displayorder":"0",
"brand_enable":"1",
"brand_recommend":"1",
"shop_id":"0",
"brand_collect":"0",
"id":"1"
}
]
}
}
<<<
error
~~~
* 點擊一級分類獲對應的二級分類數據
~~~[api]
get:/index.php?ctl=Goods_Cat&met=tree&typ=json&cat_parent_id=cat_parent_id
*int:cat_parent_id=默認值#分類父級id
<<<
success
{
"cmd_id":-140,
"status":200,
"msg":"success",
"data":{"items":[
{
"cat_id":"2",
"cat_name":"\u670d\u9970\u8863\u5e3d",
"child":[
{
"cat_id":"3","cat_name":"\u5973\u88c5\u670d\u9970",
"cat_parent_id":"2",
"cat_pic":"***/1495696823535239.jpg",
"type_id":"1",
"cat_commission":"1",
"cat_is_wholesale":"0",
"cat_is_virtual":"1",
"cat_templates":"0",
"cat_displayorder":"0",
"cat_level":"0",
"cat_show_type":"0",
"id":"3"
},
]
}
]
}
}
<<<
error
{"cmd_id":-140,"status":200,"msg":"success","data":{"items":[]}}
~~~
- 商城api接口
- 首頁數據獲取
- 分類接口
- 購物車接口
- 商品信息接口
- 搜索接口
- 訂單列表接口
- 店鋪接口
- 收藏接口
- 收貨地址接口
- 生成訂單接口
- 支付接口
- 會員中心接口
- 登錄注冊接口
- 關于我們
- 圖片上傳
- 分銷中心
- 分銷明細
- 代金券
- 平臺紅包列表
- 分銷申請列表
- 我的推廣
- 微信小程序
- 簡介
- 開發前準備
- 目錄結構介紹
- 發起請求
- 網絡請求提交表單
- 代碼及開發所遇到問題總結
- 導航跳轉時所遇到的問題
- 緩存數據與數據取得的問題
- 如何引入外部css
- 如何定義與使用全局變量
- 如何定義新的界面
- 微信小程序支付
- 小程序的手機驗證碼登錄
- 上傳,下載
- 提示框
- app.json配置
- 配置demo
- pages
- window
- tabBar
- networkTimeout
- debug
- page.json
- 緩存
- 特效
- 滑動方式
- 城市切換
- 五星好評
- Switch
- 上拉加載
- wxml 標簽
- 視圖容器
- 基礎內容
- 表單組件
- 導航
- 媒體組件
- 自定義提示框
- 小程序內訪問網頁
- 倒計時顯示
- 微信小程序,如何在返回前一個頁面時,執行前一個頁面的方法
- 在本地可以請求到數據,但手機上是請求不到的
- curl請求失敗
- 代碼同步
- 短信平臺更換