* 店铺收藏列表
~~~[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请求失败
- 代码同步
- 短信平台更换