* 店铺列表页
~~~[api]
get:/index.php?ctl=Shop_Index&met=index&typ=json&ua=wap&sub_site_id=0&rows=10&page=1&firstRow=0&or=&keywords=&district=&plat=
ua=wap#说明文字
sub_site_id#分站id
rows#说明文字
page#说明文字
firstRow#说明文字
or#筛选条件
keywords#搜索词
district#说明文字
plat#说明文字
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 10,
"totalsize": "99",
"records": "99",
"items": [
{
"shop_id": "176",
"user_id": "10740",
"user_name": "test7",
"shop_name": "test7",
"shop_grade_id": "0",
"shop_class_id": "0",
"shop_all_class": "1",
"shop_self_support": "true",
"shop_business": "1",
"shop_create_time": "2017-11-14 05:04:39",
"shop_end_time": "0000-00-00 00:00:00",
....
"goods_barcode": "",
"goods_is_recommend": "2",
"goods_click": "2",
"goods_salenum": "2",
"goods_collect": "0",
"goods_image": "***/20171114/1510650531780250.jpg",
"color_id": "0",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "1",
"goods_max_sale": "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
}
]
},
"goods_num": 1
},
...
]
}
}
<<<
error
~~~
* 店铺详情页
~~~[api]
get:/index.php?ctl=Shop&met=getStoreInfo&typ=json
string:k#key
int:u#用户id
int:shop_id#店铺id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"rec_goods_list": [
{
"common_id": "2029",
"common_name": "新测试",
"common_promotion_tips": "123",
"cat_id": "120",
"cat_name": "服装鞋帽 > ceshi10 > ceshi1 > ceshi1_1",
"shop_id": "176",
"shop_name": "test7",
"shop_cat_id": ",0,",
"shop_goods_cat_id": [
"0"
],
"goods_id": "1692",
"shop_self_support": "1",
"shop_status": "3",
"common_property": null,
"common_spec_name": null,
"common_spec_value": null,
"brand_id": "0",
"brand_name": "",
"type_id": "0",
"common_image": "***/1510650531780250.jpg",
........
"is_favorate": false,
"is_own_shop": "true",
"mb_sliders": [
{
"link": "",
"imgUrl": ""
}
],
"mb_title_img": "",
"member_id": "10014",
"store_avatar": "",
"user_name": "test7",
"store_collect": "0",
"store_credit_text": "描述: 5.00, 服务: 100.00, 物流: 5.00",
"shop_id": "176",
"store_name": "test7",
"user_id": "10740",
"store_tel": "",
"is_open_im": 1
},
"voucher_list": []
}
}
<<<
error
~~~
* 销量排行/收藏排行
~~~[api]
get:/index.php?ctl=Shop&met=goodsList&sort=desc&typ=json
int:id#店铺id
order#排行条件common_collect:收藏排行common_salenum:销量排行
num#卖出数量
sort=desc#排序方式
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "1",
"records": "1",
"items": [
{
"common_id": "2029",
"common_name": "新测试",
"common_promotion_tips": "123",
"cat_id": "120",
"cat_name": "服装鞋帽 > ceshi10 > ceshi1 > ceshi1_1",
"shop_id": "176",
"shop_name": "test7",
"shop_cat_id": ",0,",
"shop_goods_cat_id": [
"0"
],
"goods_id": [
{
"goods_id": "1692",
"color_id": 0
}
],
......
"goods_image": "***/20171114/1510650531780250.jpg",
"color_id": "0",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "1",
"goods_max_sale": "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=goodsList&typ=json
int:shop_id#店铺id
pagesize#说明文字
curpage#说明文字
firstRow#说明文字
int:id#店铺id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "1",
"records": "1",
"items": [
{
"common_id": "2029",
"common_name": "新测试",
"common_promotion_tips": "123",
"cat_id": "120",
"cat_name": "服装鞋帽 > ceshi10 > ceshi1 > ceshi1_1",
"shop_id": "176",
"shop_name": "test7",
"shop_cat_id": ",0,",
"shop_goods_cat_id": [
"0"
],
......
"goods_salenum": "2",
"goods_collect": "0",
"goods_image": "***/1510650531780250.jpg",
"color_id": "0",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "1",
"goods_max_sale": "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=goodsList&order=common_sell_time&sort=desc&typ=json&id=160&curpage=1&page=10
int:id#店铺id
curpage#说明文字
page#说明文字
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "2",
"records": "2",
"items": [
{
"common_id": "954",
"common_name": "6611aa普通商品1",
"common_promotion_tips": "",
"cat_id": "11",
"cat_name": "服装鞋帽 > 服饰衣帽 > 女装服饰 > 连衣裙",
"shop_id": "160",
"shop_name": "6611个人分销",
"shop_cat_id": ",0,",
"shop_goods_cat_id": [
"0"
],
......
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "1550"
}
],
"shop_owner": 0,
"dist_owner": 0,
"is_favorite": 0
}
]
}
}
<<<
error
~~~
- 商城api接口
- 首页数据获取
- 分类接口
- 购物车接口
- 商品信息接口
- 搜索接口
- 订单列表接口
- 店铺接口
- 收藏接口
- 收货地址接口
- 生成订单接口
- 支付接口
- 会员中心接口
- 登录注册接口
- 关于我们
- 图片上传
- 分销中心
- 分销明细
- 代金券
- 平台红包列表
- 分销申请列表
- 我的推广
- 微信小程序
- 简介
- 开发前准备
- 目录结构介绍
- 发起请求
- 网络请求提交表单
- 代码及开发所遇到问题总结
- 导航跳转时所遇到的问题
- 缓存数据与数据取得的问题
- 如何引入外部css
- 如何定义与使用全局变量
- 如何定义新的界面
- 微信小程序支付
- 小程序的手机验证码登录
- 上传,下载
- 提示框
- app.json配置
- 配置demo
- pages
- window
- tabBar
- networkTimeout
- debug
- page.json
- 缓存
- 特效
- 滑动方式
- 城市切换
- 五星好评
- Switch
- 上拉加载
- wxml 标签
- 视图容器
- 基础内容
- 表单组件
- 导航
- 媒体组件
- 自定义提示框
- 小程序内访问网页
- 倒计时显示
- 微信小程序,如何在返回前一个页面时,执行前一个页面的方法
- 在本地可以请求到数据,但手机上是请求不到的
- curl请求失败
- 代码同步
- 短信平台更换