* 店鋪收藏列表
~~~[api]
get:/index.php?ctl=Buyer_Favorites&met=favoritesShop&typ=json
string:k#key
int:u#用戶id
curpage#第一頁數據
page#每頁顯示數量
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "3",
"records": "3",
"items": [
{
"favorites_shop_id": "338",
"user_id": "10014",
"shop_id": "176",
"shop_name": "test7",
"shop_logo": "",
"favorites_shop_time": "2017-11-14 18:10:33",
"id": "338",
"shop": {
"shop_id": "176",
"user_id": "10740",
"user_name": "test7",
"shop_name": "test7",
"shop_grade_id": "0",
......
"goods_is_shelves": "1",
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "1692"
}
],
"shop_owner": 0,
"dist_owner": 0,
"is_favorite": 0
}
]
}
}
},
...
]
}
}
<<<
error
~~~
* 收藏店鋪
~~~[api]
get:/index.php?ctl=Shop&met=addCollectShop&typ=json
string:k#key
int:u#用戶id
int:shop_id#店鋪id
<<<
success
{"cmd_id":-140,"status":200,"msg":"success","data":{"msg":"\u6536\u85cf\u6210\u529f\uff01"}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"failure","data":{"msg":"\u60a8\u5df2\u6536\u85cf\u8fc7\u8be5\u5e97\u94fa\uff01"}}
~~~
* 取消收藏店鋪
~~~[api]
get:/index.php?ctl=Buyer_Favorites&met=delFavoritesShop&typ=json
string:k#key
int:u#用戶id
int:id#店鋪id
<<<
success
{"cmd_id":-140,"status":200,"msg":"success","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"failure","data":{}}
~~~
* * * * *
* 商品收藏列表
~~~[api]
get:/index.php?ctl=Buyer_Favorites&met=favoritesGoods&typ=json
string:k#key
int:u#用戶id
curpage#第一頁數據
page#每頁顯示數量
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "16",
"records": "16",
"items": [
{
"favorites_goods_id": "415",
"user_id": "10014",
"goods_id": "63",
"favorites_goods_time": "2017-08-08 19:14:43",
"id": "415",
"detail": {
"goods_id": "63",
"common_id": "6",
"shop_id": "12",
"shop_name": "JZ的店鋪",
"goods_name": "連衣裙2017韓版大碼女裝春夏季新款收腰雪紡短袖長裙",
"goods_promotion_tips": "",
"cat_id": "3",
"brand_id": "0",
"goods_spec": {
"i_2433": {
"24": "藍色",
"33": "L"
}
},
....
}
]
}
}
<<<
error
~~~
* 收藏商品
~~~[api]
get:/index.php?ctl=Goods_Goods&met=collectGoods&typ=json
string:k#key
int:u#用戶id
int:goods_id#商品id
<<<
success
{"cmd_id":-140,"status":200,"msg":"success","data":{"msg":"\u6536\u85cf\u6210\u529f\uff01"}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"failure","data":{"msg":"\u60a8\u5df2\u6536\u85cf\u8fc7\u8be5\u5546\u54c1\uff01"}}
~~~
* 取消收藏商品
~~~[api]
get:/index.php?ctl=Buyer_Favorites&met=delFavoritesGoods&typ=json
string:k#key
int:u#用戶id
int:id#商品id
<<<
success
{"cmd_id":-140,"status":200,"msg":"success","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"failure","data":{}}
~~~
- 商城api接口
- 首頁數據獲取
- 分類接口
- 購物車接口
- 商品信息接口
- 搜索接口
- 訂單列表接口
- 店鋪接口
- 收藏接口
- 收貨地址接口
- 生成訂單接口
- 支付接口
- 會員中心接口
- 登錄注冊接口
- 關于我們
- 圖片上傳
- 分銷中心
- 分銷明細
- 代金券
- 平臺紅包列表
- 分銷申請列表
- 我的推廣
- 微信小程序
- 簡介
- 開發前準備
- 目錄結構介紹
- 發起請求
- 網絡請求提交表單
- 代碼及開發所遇到問題總結
- 導航跳轉時所遇到的問題
- 緩存數據與數據取得的問題
- 如何引入外部css
- 如何定義與使用全局變量
- 如何定義新的界面
- 微信小程序支付
- 小程序的手機驗證碼登錄
- 上傳,下載
- 提示框
- app.json配置
- 配置demo
- pages
- window
- tabBar
- networkTimeout
- debug
- page.json
- 緩存
- 特效
- 滑動方式
- 城市切換
- 五星好評
- Switch
- 上拉加載
- wxml 標簽
- 視圖容器
- 基礎內容
- 表單組件
- 導航
- 媒體組件
- 自定義提示框
- 小程序內訪問網頁
- 倒計時顯示
- 微信小程序,如何在返回前一個頁面時,執行前一個頁面的方法
- 在本地可以請求到數據,但手機上是請求不到的
- curl請求失敗
- 代碼同步
- 短信平臺更換