* [接口说明]()
* [公用响应]()
* [小程序授权]()
* [获取seesion\_key]()
* [获取token](https://www.kancloud.cn/crmeb/crmeb_api/1330602#token_45)
* [首页](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_108)
* [产品接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_375)
* [获取产品分类](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_376)
* [产品所有分类](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_403)
* [产品列表](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_456)
* [产品详情](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_511)
* [获取用户产品推广二维码 需要调整数据msg读取出来了](https://www.kancloud.cn/crmeb/crmeb_api/1330602#__msg_650)
* [用户是否收藏该产品](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_678)
* [产品收藏接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_705)
* [获取热门产品 待确定](https://www.kancloud.cn/crmeb/crmeb_api/1330602#___730)
* [我的收藏](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_780)
* [删除我的收藏](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_825)
* [购物车接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_849)
* [添加购物车](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_850)
* [我的购物车](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_880)
* [购物车修改数量](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_994)
* [购物车中收藏产品](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1020)
* [购物车中删除](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1045)
* [获取购物车中数量](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1070)
* [收货地址管理](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1095)
* [获取默认收货地址](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1096)
* [获取收货地址](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1129)
* [设置默认地址](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1173)
* [获取编辑收货地址](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1197)
* [保存收货地址](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1237)
* [删除收货地址](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1284)
* [订单接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1309)
* [订单确认](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1310)
* [订单详情](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1456)
* [申请退款前](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1590)
* [提交申请退款 uniID请post一起提交吧](https://www.kancloud.cn/crmeb/crmeb_api/1330602#__uniIDpost_1615)
* [取消订单](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1649)
* [订单支付](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1674)
* [获取支付后订单信息](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1755)
* [优惠券](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1836)
* [产品可领取优惠券列表](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1837)
* [订单中获取优惠券](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1875)
* [我的优惠券](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1912)
* [领取优惠券](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1969)
* [个人中心接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1994)
* [个人中心](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_1996)
* [获取个人中心导航菜单](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2056)
* [获取订单状态数量](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2111)
* [获取订单列表](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2143)
* [获取用户信息](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2251)
* [用户充值](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2295)
* [我的账单明细](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2325)
* [我的积分明细 需要完善类型筛选](https://www.kancloud.cn/crmeb/crmeb_api/1330602#__2370)
* [签到接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2436)
* [签到接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2437)
* [我的签到记录](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2462)
* [历史签到记录](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2491)
* [推广中心](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2526)
* [昨日收益](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2527)
* [申请提现](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2549)
* [提现获取配置接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2607)
* [我的分享海报](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2632)
* [我的推广人数 建议和下面接口合并](https://www.kancloud.cn/crmeb/crmeb_api/1330602#___2659)
* [我的推广人列表 oder 参数名字建议换一下,type 字段名字也换一下](https://www.kancloud.cn/crmeb/crmeb_api/1330602#__oder_type__2684)
* [佣金明细 接口错误](https://www.kancloud.cn/crmeb/crmeb_api/1330602#___2775)
* [推广订单总数](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2822)
* [推广订单列表 暂时没有](https://www.kancloud.cn/crmeb/crmeb_api/1330602#___2845)
* [提现记录 参数 first 换成page,该接口是不是和资金记录可以合并](https://www.kancloud.cn/crmeb/crmeb_api/1330602#___first_page_2869)
* [提现总额无接口建议和提现列表接口合并](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2898)
* [活动接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2899)
* [获取最新活动](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2900)
* [其它接口](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2927)
* [获取组合数据](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_2928)
* [创建formID](https://www.kancloud.cn/crmeb/crmeb_api/1330602#formID_2982)
* [标准格式](https://www.kancloud.cn/crmeb/crmeb_api/1330602#_3015)
# 接口说明
## 公用响应
* 所有的请求 接口都会响应统一的数据格式(json格式)
~~~
{
"code": 200, // 所有的code 为200 代表成功
"msg": null, //返回响应的提示消息
"data": {
"data_filed": "asd" // 前段需要展示的数据
},
"count":100 //总条数
}
~~~
### 小程序授权
#### 获取seesion\_key
* 接口说明
根据code获取seesion\_key
* 请求地址
/login/index
* 请求方式
POST
* 请求参数
~~~
{
"code":"023yrTy12MjQOU0L4Lx12fCYy12yrTyB"
}
~~~
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"session_key": "Jxyj\/\/+74+rkzTlbROX0IQ==",
"openid": "o9qvr4uGzrhWvPT8EgXhVD7oQyww",
"unionid": "oZEAhs5ELOKSQaoDyZxhnuRtVhkg"
},
"count": 0
}
~~~
#### 获取token
* 接口说明
根据session\_key 解密获取用户信息带unionid,返回token
* 请求地址
/login/index
* 请求方式
POST
* 请求参数
~~~
{
"info": {
"errMsg": "getUserInfo:ok",
"rawData": "{\"nickName\":\"༄许のོ࿆༘荣耀࿐\",\"gender\":1,\"language\":\"zh_CN\",\"city\":\"安康\",\"province\":\"陕西\",\"country\":\"中国\",\"avatarUrl\":\"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg/132\"}",
"userInfo": {
"nickName": "张三"
"gender": 1,
"language": "zh_CN",
"city": "安康",
"province": "陕西",
"country": "中国",
"avatarUrl": "https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg/132"
},
"signature": "3dcacd97950fc46f03da3724da55d086d4c5a484",
"encryptedData": "MuKWABhoSrtv0w6ZUlOsc9RT4GwZ5xEaDf2YuJ2yXeRFnsa8bXxMVZz45xeVHp9v71l+5Qv7sPsyfbdbGztOtM5I7KHD/mmHtc3o9/w43xfYH0cTeSR3wLdhRJ23QUqZCYim/FpckDSOBRrHKf9SJido53ThtrFXic8qYsxYd6UCIDGmHVXa874wNScfbmTbQDA9tsWLuzVEgxKxH7Lp32SEmBxBGerHXbuxByN0oicAaq8ZGo86xu/Sb2PsubvfyCc9FmSvD/lDmyBY4MMnPP+GyEzSWafV8KGpBpxNVnTHGAkjKf4j1IKLyRVzQAFqL0ymX17GAWtoauR6DHu/DWydBf8ZS+OfUuvWjGNLQqXOPJUqj7er7157ZCmMFucNTd5Z8SxNmbB3wp1qceXd088LGdJd0s/GgGd17GtTDPHwYncuXaAVmB4bFPGcdLtlGMDlWCHndWZp09M8nUfsbiWRrN6nzZD5yB/BTjBxL6vdqen2iNAl1IkIMGBzb7KID9qqoqmOpBIRK2MTiH+TPUzCxgg+oNocaBJVCXfUt5Q=",
"iv": "+8qBBd7IuQxSYOXBoQ0VVg==",
"spid": 0,
"session_key": "4jElZJx6uYw5CblZavNNIQ=="
}
}
~~~
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"openId": "o9qvr4uGzrhWvPT8EgXhVD7oQyww",
"nickName": "张三",
"gender": 1,
"language": "zh_CN",
"city": "安康",
"province": "陕西",
"country": "中国",
"avatarUrl": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg\/132",
"unionId": "oZEAhs5ELOKSQaoDyZxhnuRtVhkg",
"watermark": {
"timestamp": 1553821207,
"appid": "wx3b82801238ca1b57"
},
"session_key": "4jElZJx6uYw5CblZavNNIQ==",
"spid": 0,
"uid": 2,
"page": "",
"token": "6287cb324f0cf66249befa1f8cade097a3b0650355e7b45ab79746cf0c0de66cde471b8347e176ded65643930cc9fee5be477f702bcfaa7e5217de766f4650fdd5444564215cae1116276fb051091f4378704ad8739e38ee",
"status": 1
},
"count": 0
}
~~~
### 首页
* 接口说明
获取首页展示数据
* 请求地址
/public\_api/index
* 请求参数
无
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"banner": [{
"id": 104,
"name": "banenr2",
"url": "\/pages\/pink-list\/index?id=2",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db14908923.jpg"
}],
"menus": [{
"id": 99,
"name": "收藏",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc7146add5.png",
"url": "\/pages\/collect\/collect",
"show": "是"
}, {
"id": 100,
"name": "砍价",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc72335ee5.png",
"url": "\/pages\/activity\/goods_bargain\/index",
"show": "否"
}, {
"id": 101,
"name": "秒杀",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc730dead2.png",
"url": "\/pages\/miao-list\/miao-list",
"show": "否"
}, {
"id": 102,
"name": "拼团",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc73feecaf.png",
"url": "\/pages\/pink-list\/index",
"show": "否"
}],
"roll": [{
"id": 121,
"info": "CRMEB电商系统 V 2.5 即将上线!",
"url": "\/pages\/index\/index",
"show": "是"
}, {
"id": 122,
"info": "CRMEB电商系统 V 2.5 即将上线!",
"url": "\/pages\/miao-list\/miao-list",
"show": "否"
}, {
"id": 123,
"info": "CRMEB电商系统 V 2.5 即将上线!",
"url": "\/pages\/index\/index",
"show": "是"
}],
"info": {
"fastInfo": "上百种商品分类任您选择",
"bastInfo": "老李诚意推荐品质商品",
"firstInfo": "多个优质商品最新上架",
"salesInfo": "库存商品优惠促销活动",
"fastList": [{
"id": 2,
"cate_name": "清洁工具",
"pid": 1,
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg"
}, {
"id": 3,
"cate_name": "生活电器",
"pid": 1,
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg"
}, {
"id": 4,
"cate_name": "数码产品",
"pid": 1,
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg"
}, {
"id": 5,
"cate_name": "日化用品",
"pid": 1,
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg"
}, {
"id": 7,
"cate_name": "手表",
"pid": 6,
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg"
}, {
"id": 8,
"cate_name": "皮包",
"pid": 6,
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg"
}],
"bastList": [{
"id": 1,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg",
"store_name": "无线吸尘器F8 玫瑰金礼盒版",
"cate_id": "2",
"price": "0.01",
"ot_price": "1699.00",
"sales": "128",
"unit_name": "件",
"sort": 1
}, {
"id": 4,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg",
"store_name": "互联网电热水器1A",
"cate_id": "3",
"price": "999.00",
"ot_price": "1599.00",
"sales": "25",
"unit_name": "件",
"sort": 0
}, {
"id": 3,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg",
"store_name": "智米加湿器 白色",
"cate_id": "3",
"price": "249.00",
"ot_price": "299.00",
"sales": "10",
"unit_name": "件",
"sort": 0
}, {
"id": 2,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg",
"store_name": "智能马桶盖 AI版",
"cate_id": "3",
"price": "0.01",
"ot_price": "1999.00",
"sales": "28",
"unit_name": "件",
"sort": 0
}],
"firstList": [{
"id": 1,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg",
"store_name": "无线吸尘器F8 玫瑰金礼盒版",
"cate_id": "2",
"price": "0.01",
"unit_name": "件",
"sort": 1
}, {
"id": 4,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg",
"store_name": "互联网电热水器1A",
"cate_id": "3",
"price": "999.00",
"unit_name": "件",
"sort": 0
}, {
"id": 3,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg",
"store_name": "智米加湿器 白色",
"cate_id": "3",
"price": "249.00",
"unit_name": "件",
"sort": 0
}, {
"id": 2,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg",
"store_name": "智能马桶盖 AI版",
"cate_id": "3",
"price": "0.01",
"unit_name": "件",
"sort": 0
}],
"bastBanner": [{
"id": 127,
"img": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9cd03224d59.jpg",
"comment": "精品推荐",
"link": "\/pages\/first-new-product\/index"
}, {
"id": 128,
"img": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9cd03224d59.jpg",
"comment": "精品推荐",
"link": "\/pages\/first-new-product\/index"
}]
},
"activity": [{
"id": 124,
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg",
"title": "一起来拼团",
"info": "优惠多多",
"link": "\/pages\/activity\/goods_combination\/index"
}, {
"id": 125,
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e97660.jpg",
"title": "秒杀专区",
"info": "新能源汽车火热销售",
"link": "\/pages\/activity\/goods_seckill\/index"
}, {
"id": 126,
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccfc86a6c1.jpg",
"title": "砍价活动",
"info": "呼朋唤友来砍价~~~",
"link": "\/pages\/activity\/goods_bargain\/index"
}],
"lovely": [{
"id": 88,
"img": "http:\/\/shop.crmeb.net\/public\/uploads\/editor\/20180601\/5b10b2b0969d7.jpg",
"comment": "拼团"
}],
"benefit": [{
"id": 4,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg",
"store_name": "互联网电热水器1A",
"cate_id": "3",
"price": "999.00",
"ot_price": "1599.00",
"stock": 485,
"unit_name": "件",
"sort": 0
}, {
"id": 3,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg",
"store_name": "智米加湿器 白色",
"cate_id": "3",
"price": "249.00",
"ot_price": "299.00",
"stock": 999,
"unit_name": "件",
"sort": 0
}, {
"id": 2,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg",
"store_name": "智能马桶盖 AI版",
"cate_id": "3",
"price": "0.01",
"ot_price": "1999.00",
"stock": 994,
"unit_name": "件",
"sort": 0
}],
"likeInfo": [{
"id": 1,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg",
"store_name": "无线吸尘器F8 玫瑰金礼盒版",
"cate_id": "2",
"price": "0.01",
"unit_name": "件",
"sort": 1
}, {
"id": 4,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg",
"store_name": "互联网电热水器1A",
"cate_id": "3",
"price": "999.00",
"unit_name": "件",
"sort": 0
}, {
"id": 3,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg",
"store_name": "智米加湿器 白色",
"cate_id": "3",
"price": "249.00",
"unit_name": "件",
"sort": 0
}]
},
"count": 0
}
~~~
### 产品接口
#### 获取产品分类
* 接口说明
获取产品分类
* 请求地址
/store\_api/get\_pid\_cate
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| pid | int | 分类ID 无或者0 获取所有分类 | 否 |
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"id": 1,
"cate_name": "热门推荐"
}, {
"id": 6,
"cate_name": "商务人士"
}],
"count": 0
}
~~~
#### 产品所有分类
* 接口说明
获取产品所有分类
* 请求地址
/store\_api/get\_product\_category
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| pid | int | 分类ID 无或者0 获取所有分类 | 否 |
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"id": 1,
"cate_name": "热门推荐",
"child": [{
"id": 2,
"cate_name": "清洁工具",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg"
}, {
"id": 3,
"cate_name": "生活电器",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg"
}, {
"id": 4,
"cate_name": "数码产品",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg"
}, {
"id": 5,
"cate_name": "日化用品",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg"
}]
}, {
"id": 6,
"cate_name": "商务人士",
"child": [{
"id": 7,
"cate_name": "手表",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg"
}, {
"id": 8,
"cate_name": "皮包",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg"
}]
}],
"count": 0
}
~~~
#### 产品列表
* 接口说明
获取产品列表
* 请求地址
/store\_api/get\_product\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| sid | int | 分类ID | 是 |
| keyword | string | 关键词 | 否 |
| priceOrder | string | 价格排序“asc”升序,“desc”倒序 | 否 |
| salesOrder | string | 销量排序“asc”升序,“desc”倒序 | 否 |
| news | int | 新上架 1新品 0 不限制 | 否 |
| page | int | 翻页默认1 | 否 |
| limit | int | 每页条数默认10 | 否 |
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"id": 2,
"store_name": "智能马桶盖 AI版",
"cate_id": "3",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg",
"sales": 16,
"ficti": 12,
"price": "0.01",
"stock": 994
}, {
"id": 4,
"store_name": "互联网电热水器1A",
"cate_id": "3",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg",
"sales": 15,
"ficti": 10,
"price": "999.00",
"stock": 485
}, {
"id": 3,
"store_name": "智米加湿器 白色",
"cate_id": "3",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg",
"sales": 2,
"ficti": 8,
"price": "249.00",
"stock": 999
}],
"count": 0
}
~~~
#### 产品详情
* 接口说明
获取产品详情
* 请求地址
/store\_api/details
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| id | int | 产品ID | 是 |
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"id": "1",
"storeInfo": {
"id": 1,
"mer_id": 0,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg",
"slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg"],
"store_name": "无线吸尘器F8 玫瑰金礼盒版",
"store_info": "【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】",
"keyword": "无线吸尘器",
"cate_id": "2",
"price": "0.01",
"vip_price": "0.00",
"ot_price": "1699.00",
"postage": "1.00",
"unit_name": "件",
"sort": 1,
"sales": 47,
"stock": 586,
"is_show": 1,
"is_hot": 1,
"is_benefit": 0,
"is_best": 1,
"is_new": 1,
"description": "<p><img src=\"http:\/\/datong.crmeb.net\/public\/uploads\/editor\/20190115\/5c3dbb137d656.jpeg\"\/><img src=\"http:\/\/datong.crmeb.net\/public\/uploads\/editor\/20190115\/5c3dbb229e820.jpeg\"\/><img src=\"http:\/\/datong.crmeb.net\/public\/uploads\/editor\/20190115\/5c3dbb3b37f84.jpeg\"\/><img src=\"http:\/\/datong.crmeb.net\/public\/uploads\/editor\/20190115\/5c3dbb513b06f.jpeg\"\/><\/p>",
"add_time": 1547205504,
"is_postage": 1,
"is_del": 0,
"mer_use": 0,
"give_integral": "1699.00",
"cost": "100.00",
"is_seckill": 0,
"is_bargain": 0,
"ficti": 81,
"browse": 0,
"code_path": "",
"userCollect": false
},
"similarity": [{
"id": 1,
"store_name": "无线吸尘器F8 玫瑰金礼盒版",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg",
"price": "0.01",
"sales": 47,
"ficti": 81
}, {
"id": 4,
"store_name": "互联网电热水器1A",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg",
"price": "999.00",
"sales": 15,
"ficti": 10
}, {
"id": 3,
"store_name": "智米加湿器 白色",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg",
"price": "249.00",
"sales": 2,
"ficti": 8
}, {
"id": 2,
"store_name": "智能马桶盖 AI版",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg",
"price": "0.01",
"sales": 16,
"ficti": 12
}],
"productAttr": [{
"product_id": 1,
"attr_name": "颜色",
"attr_values": ["黑色", "白色", "蓝色"],
"attr_value": [{
"attr": "黑色",
"check": false
}, {
"attr": "白色",
"check": false
}, {
"attr": "蓝色",
"check": false
}]
}],
"productValue": {
"白色": {
"product_id": 1,
"suk": "白色",
"stock": 195,
"sales": 4,
"price": "0.02",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg",
"unique": "a84fff47",
"cost": "100.00"
},
"蓝色": {
"product_id": 1,
"suk": "蓝色",
"stock": 188,
"sales": 11,
"price": "0.03",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg",
"unique": "f39d47dc",
"cost": "100.00"
},
"黑色": {
"product_id": 1,
"suk": "黑色",
"stock": 187,
"sales": 12,
"price": "0.01",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg",
"unique": "6af2068e",
"cost": "100.00"
}
},
"priceName": "0~0",
"reply": null,
"replyCount": 0,
"replyChance": 0,
"mer_id": 0
},
"count": 0
}
~~~
#### 获取用户产品推广二维码 需要调整数据msg读取出来了
* 接口说明
获取用户产品推广二维码
* 请求地址
/store\_api/product\_promotion\_code
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| id | int | 产品ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "http:\/\/datong.crmeb.net\/public\/uploads\/codepath\/product\/1_2.jpg",
"data": [],
"count": 0
}
~~~
#### 用户是否收藏该产品
* 接口说明
获取用户是否收藏该产品
* 请求地址
/store\_api/get\_product\_collect
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| product\_id | int | 产品ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"userCollect": false //没有收藏false,已经收藏 true
},
"count": 0
}
~~~
#### 产品收藏接口
* 接口说明
用户收藏产品接口
* 请求地址
/store\_api/collect\_product
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| product\_id | int | 产品ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [],
"count": 0
}
~~~
#### 获取热门产品 待确定
* 接口说明
获取热门产品列表
* 请求地址
/public\_api/get\_hot\_product
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| offset | int | 其实ID | 是 |
| limit | int | 调试 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"id": 4,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg",
"store_name": "互联网电热水器1A",
"cate_id": "3",
"price": "999.00",
"unit_name": "件",
"sort": 0
}, {
"id": 3,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg",
"store_name": "智米加湿器 白色",
"cate_id": "3",
"price": "249.00",
"unit_name": "件",
"sort": 0
}, {
"id": 2,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg",
"store_name": "智能马桶盖 AI版",
"cate_id": "3",
"price": "0.01",
"unit_name": "件",
"sort": 0
}],
"count": 0
}
~~~
#### 我的收藏
* 接口说明
获取我收藏的产品
* 请求地址
/store\_api/get\_user\_collect\_product
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| page | int | 请求起始页数,默认1 | 是 |
| limit | int | 请求条数 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"pid": 1,
"store_name": "无线吸尘器F8 玫瑰金礼盒版",
"price": "0.01",
"ot_price": "1699.00",
"sales": 49,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg",
"is_del": 0,
"is_show": 1,
"is_fail": false
}, {
"pid": 3,
"store_name": "智米加湿器 白色",
"price": "249.00",
"ot_price": "299.00",
"sales": 2,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg",
"is_del": 0,
"is_show": 1,
"is_fail": false
}],
"count": 0
}
~~~
#### 删除我的收藏
* 接口说明
删除我收藏的产品
* 请求地址
/store\_api/get\_user\_collect\_product\_del
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| pid | int | 收藏ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": 1,
"count": 0
}
~~~
### 购物车接口
#### 添加购物车
* 接口说明
添加购物车接口
* 请求地址
/auth\_api/set\_cart
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| productId | int | 产品ID | 是 |
| cartNum | int | 加入购物车数量 默认1 | 是 |
| uniqueId | string | 产品SKU | 否 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"cartId": "78" //购物车ID
},
"count": 0
}
~~~
#### 我的购物车
* 接口说明
获取我的购物车
* 请求地址
/auth\_api/get\_cart\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"valid": [{
"id": 75,
"uid": 2,
"type": "product",
"product_id": 4,
"product_attr_unique": "",
"cart_num": 1,
"add_time": 1553823585,
"is_pay": 0,
"is_del": 0,
"is_new": 0,
"combination_id": 0,
"seckill_id": 0,
"bargain_id": 0,
"productInfo": {
"id": 4,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg",
"slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg"],
"price": "999.00",
"ot_price": "1599.00",
"vip_price": "0.00",
"postage": "0.00",
"mer_id": 0,
"give_integral": "999.00",
"cate_id": "3",
"sales": 15,
"stock": 485,
"store_name": "互联网电热水器1A",
"store_info": "3000w双管速热,动态360L热水用量,双重漏电保护,智能APP操控",
"unit_name": "件",
"is_show": 1,
"is_del": 0,
"is_postage": 1,
"cost": "888.00"
},
"truePrice": 999,
"trueStock": 485,
"costPrice": "888.00"
}, {
"id": 78,
"uid": 2,
"type": "product",
"product_id": 1,
"product_attr_unique": "f39d47dc",
"cart_num": 1,
"add_time": 1553823313,
"is_pay": 0,
"is_del": 0,
"is_new": 0,
"combination_id": 0,
"seckill_id": 0,
"bargain_id": 0,
"productInfo": {
"id": 1,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg",
"slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg"],
"price": "0.01",
"ot_price": "1699.00",
"vip_price": "0.00",
"postage": "1.00",
"mer_id": 0,
"give_integral": "1699.00",
"cate_id": "2",
"sales": 47,
"stock": 586,
"store_name": "无线吸尘器F8 玫瑰金礼盒版",
"store_info": "【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】",
"unit_name": "件",
"is_show": 1,
"is_del": 0,
"is_postage": 1,
"cost": "100.00",
"attrInfo": {
"product_id": 1,
"suk": "蓝色",
"stock": 188,
"sales": 11,
"price": "0.03",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg",
"unique": "f39d47dc",
"cost": "100.00"
}
},
"truePrice": 0.03,
"trueStock": 188,
"costPrice": "100.00"
}],
"invalid": []
},
"count": 0
}
~~~
#### 购物车修改数量
* 接口说明
购物车修改数量
* 请求地址
/auth\_api/change\_cart\_num
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| cartId | int | 购物车ID | 是 |
| cartNum | int | 修改数量 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [],
"count": 0
}
~~~
#### 购物车中收藏产品
* 接口说明
购物车中收藏产品
* 请求地址
/store\_api/collect\_product\_all
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| productId | string | 产品ID 例如:“1,2,3” | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "收藏成功",
"data": [],
"count": 0
}
~~~
#### 购物车中删除
* 接口说明
购物车中删除
* 请求地址
/auth\_api/remove\_cart
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| ids | string | 购物车ID 例如"1,2" | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [],
"count": 0
}
~~~
#### 获取购物车中数量
* 接口说明
获取领取优惠券列表
* 请求地址
/auth\_api/get\_cart\_num
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": 1,
"count": 0
}
~~~
### 收货地址管理
#### 获取默认收货地址
* 接口说明
获取默认收货地址
* 请求地址
/user\_api/user\_default\_address
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"id": 17,
"real_name": "张三",
"phone": "020-81167888",
"province": "广东省",
"city": "广州市",
"district": "海珠区",
"detail": "新港中路397号",
"is_default": 1
},
"count": 0
}
~~~
#### 获取收货地址
* 接口说明
获取收货地址列表
* 请求地址
/user\_api/user\_address\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| page | int | 起始页 | 否 |
| limit | int | 每页条数 | 否 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"id": 17,
"real_name": "张三",
"phone": "020-81167888",
"province": "广东省",
"city": "广州市",
"district": "海珠区",
"detail": "新港中路397号",
"is_default": 1
}, {
"id": 16,
"real_name": "张三",
"phone": "020-81167888",
"province": "广东省",
"city": "广州市",
"district": "海珠区",
"detail": "新港中路397号",
"is_default": 0
}],
"count": 0
}
~~~
#### 设置默认地址
* 接口说明
提交申请退款
* 请求地址
/user\_api/set\_user\_default\_address
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| addressId | int | 收货地址ID | 是 |
* 请求方式
POST
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [],
"count": 0
}
~~~
#### 获取编辑收货地址
* 接口说明
获取编辑收货地址信息
* 请求地址
/user\_api/get\_user\_address
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| addressId | int | 收货地址ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"id": 16,
"uid": 2,
"real_name": "张三",
"phone": "020-81167888",
"province": "广东省",
"city": "广州市",
"district": "海珠区",
"detail": "新港中路397号",
"post_code": 510000,
"longitude": "0",
"latitude": "0",
"is_default": 1,
"is_del": 0,
"add_time": 1553183200
},
"count": 0
}
~~~
#### 保存收货地址
* 接口说明
编辑保存添加保存收货地址
* 请求地址
/user\_api/edit\_user\_address
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| real\_name | string | 收货人姓名 | 是 |
| phone | phone | 收货人电话 | 是 |
| detail | string | 详细地址注 | 是 |
| id | string | 收货地址ID,0新添加 | 是 |
| address | json | 地址"province""city""district" | 是 |
| is\_default | int | 1设置默认地址0不设置默认地址 | 否 |
示例
~~~
{
"real_name": "张三",
"phone": "13679281699",
"detail": "新港中路397号",
"id": "16",
"address": {
"province": "广东省",
"city": "广州市",
"district": "海珠区"
},
"is_default": 1
}
~~~
* 请求方式
POST
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [],
"count": 0
}
~~~
#### 删除收货地址
* 接口说明
删除收货地址
* 请求地址
/user\_api/remove\_user\_address
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| addressId | int | 收货地址ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [],
"count": 0
}
~~~
### 订单接口
#### 订单确认
* 接口说明
订单确认页面
* 请求地址
/auth\_api/confirm\_order
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| cartId | string | 购物车ID格式“1,2,3” | 是 |
* 请求方式
POST
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"cartId": "78,79",
"usableCoupon": null,
"seckill_id": 0,
"cartInfo": [{
"id": 78,
"uid": 2,
"type": "product",
"product_id": 1,
"product_attr_unique": "f39d47dc",
"cart_num": 1,
"add_time": 1553823313,
"is_pay": 0,
"is_del": 0,
"is_new": 0,
"combination_id": 0,
"seckill_id": 0,
"bargain_id": 0,
"productInfo": {
"id": 1,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg",
"slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg"],
"price": "0.01",
"ot_price": "1699.00",
"vip_price": "0.00",
"postage": "1.00",
"mer_id": 0,
"give_integral": "1699.00",
"cate_id": "2",
"sales": 47,
"stock": 586,
"store_name": "无线吸尘器F8 玫瑰金礼盒版",
"store_info": "【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】",
"unit_name": "件",
"is_show": 1,
"is_del": 0,
"is_postage": 1,
"cost": "100.00",
"attrInfo": {
"product_id": 1,
"suk": "蓝色",
"stock": 188,
"sales": 11,
"price": "0.03",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg",
"unique": "f39d47dc",
"cost": "100.00"
}
},
"truePrice": 0.03,
"trueStock": 188,
"costPrice": "100.00"
}, {
"id": 79,
"uid": 2,
"type": "product",
"product_id": 4,
"product_attr_unique": "",
"cart_num": 1,
"add_time": 1553825017,
"is_pay": 0,
"is_del": 0,
"is_new": 0,
"combination_id": 0,
"seckill_id": 0,
"bargain_id": 0,
"productInfo": {
"id": 4,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg",
"slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg"],
"price": "999.00",
"ot_price": "1599.00",
"vip_price": "0.00",
"postage": "0.00",
"mer_id": 0,
"give_integral": "999.00",
"cate_id": "3",
"sales": 15,
"stock": 485,
"store_name": "互联网电热水器1A",
"store_info": "3000w双管速热,动态360L热水用量,双重漏电保护,智能APP操控",
"unit_name": "件",
"is_show": 1,
"is_del": 0,
"is_postage": 1,
"cost": "888.00"
},
"truePrice": 999,
"trueStock": 485,
"costPrice": "888.00"
}],
"priceGroup": {
"storePostage": 0,
"storeFreePostage": 20,
"totalPrice": "999.03",
"costPrice": "988.00"
},
"orderKey": "533640e54157471f799a907976bf3932",
"offlinePostage": "1",
"userInfo": {
"uid": 2,
"account": "rt21548052469",
"pwd": "e10adc3949ba59abbe56e057f20f883e",
"nickname": "༄许のོ࿆༘荣耀࿐",
"avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg\/132",
"phone": null,
"add_time": 1548052469,
"add_ip": "123.139.168.143",
"last_time": 1553821207,
"last_ip": "123.139.69.172",
"now_money": "0.10",
"integral": "986.00",
"sign_num": 0,
"status": 1,
"level": 0,
"spread_uid": 0,
"spread_time": 0,
"user_type": "routine",
"is_promoter": 0,
"pay_count": 8
},
"integralRatio": "0.01"
},
"count": 0
}
~~~
#### 订单详情
* 接口说明
获取订单详情
* 请求地址
/user\_api/get\_order
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| uni | string | 订单ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"id": 41,
"order_id": "wx2019032910400510003",
"uid": 2,
"real_name": "张三",
"user_phone": "020-81167888",
"user_address": "广东省 广州市 海珠区 新港中路397号",
"cart_id": [81],
"total_num": 1,
"total_price": "0.01",
"total_postage": "0.00",
"pay_price": "0.01",
"pay_postage": "0.00",
"deduction_price": "0.00",
"coupon_id": 0,
"coupon_price": "0.00",
"paid": 1,
"pay_time": 1553827359,
"pay_type": "weixin",
"add_time": 1553827205,
"status": 0,
"refund_status": 0,
"refund_reason_wap_img": null,
"refund_reason_wap_explain": null,
"refund_reason_time": null,
"refund_reason_wap": null,
"refund_reason": null,
"refund_price": "0.00",
"delivery_name": null,
"delivery_type": null,
"delivery_id": null,
"gain_integral": "1.00",
"use_integral": "0.00",
"back_integral": null,
"mark": "",
"is_del": 0,
"unique": "b3db609baad6fde98980fe66ce3b75bf",
"remark": null,
"mer_id": 0,
"is_mer_check": 0,
"combination_id": 0,
"pink_id": 0,
"cost": "1500.00",
"seckill_id": 0,
"bargain_id": 0,
"is_channel": 1,
"add_time_y": "2019-03-29",
"add_time_h": "10:40:05",
"cartInfo": [{
"id": 81,
"uid": 2,
"type": "product",
"product_id": 2,
"product_attr_unique": "bae75a3a",
"cart_num": 1,
"add_time": 1553827189,
"is_pay": 0,
"is_del": 0,
"is_new": 1,
"combination_id": 0,
"seckill_id": 0,
"bargain_id": 0,
"productInfo": {
"id": 2,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg",
"slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg"],
"price": "0.01",
"ot_price": "1999.00",
"vip_price": "0.00",
"postage": "0.00",
"mer_id": 0,
"give_integral": "1999.00",
"cate_id": "3",
"sales": 17,
"stock": 994,
"store_name": "智能马桶盖 AI版",
"store_info": "智能马桶盖 AI版",
"unit_name": "件",
"is_show": 1,
"is_del": 0,
"is_postage": 1,
"cost": "1500.00",
"attrInfo": {
"product_id": 2,
"suk": "30cm",
"stock": 984,
"sales": 10,
"price": "0.01",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg",
"unique": "bae75a3a",
"cost": "1500.00"
}
},
"truePrice": 0.01,
"trueStock": 984,
"costPrice": "1500.00",
"unique": "f1de5100906f31712aaa5166689bfdf4",
"is_reply": 0
}],
"_status": {
"_type": 1,
"_title": "未发货",
"_msg": "商家未发货,请耐心等待",
"_class": "state-nfh",
"_payType": "微信支付"
},
"_pay_time": "2019-03-29 10:42:39",
"_add_time": "2019-03-29 10:40:05",
"status_pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccca12638a.gif"
},
"count": 0
}
~~~
#### 申请退款前
* 接口说明
申请退款前获取订单信息
* 请求地址
/public\_api/get\_refund\_reason
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| uni | string | 订单ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": ["收货地址填错了", "与描述不符", "信息填错了,重新拍", "收到商品损坏了", "未按预定时间发货", "其它原因"],
"count": 0
}
~~~
#### 提交申请退款 uniID请post一起提交吧
* 接口说明
提交申请退款
* 请求地址
/auth\_api/apply\_order\_refund
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| uni | string | 订单ID | 是 |
| text | string | 退款理由 | 是 |
| refund\_reason\_wap\_explain | string | 申请退款备注 | 是 |
| refund\_reason\_wap\_img | string | 申请退款图片“1.jpg,2.jpg” | 否 |
示例
{
"text": "信息填错了,重新拍",
"refund\_reason\_wap\_explain": "请尽快发货谢谢",
"refund\_reason\_wap\_img": ""
}
* 请求方式
POST
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": ["收货地址填错了", "与描述不符", "信息填错了,重新拍", "收到商品损坏了", "未按预定时间发货", "其它原因"],
"count": 0
}
~~~
#### 取消订单
* 接口说明
取消订单
* 请求地址
/auth\_api/cancel\_order
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| uni | string | 订单号 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [],
"count": 0
}
~~~
#### 订单支付
* 接口说明
订单结算创建订单
* 请求地址
/auth\_api/create\_order
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| addressId | int | 收货地址ID | 是 |
| bargainId | int | 砍价ID 0 | 否 |
| combinationId | int | 拼团ID | 否 |
| couponId | int | 优惠券id | 否 |
| formId | int | 生成formid | 否 |
| mark | string | 备注 | 否 |
| payType | string | 支付方式 微信“weixin”,余额“yue” | 是 |
| pinkId | int | 拼团ID | 否 |
| seckill\_id | int | 秒杀ID 0 | 否 |
| useIntegral | bool | ture 用积分 false 不用积分 | 是 |
示例
~~~
{
"addressId": 17,
"formId": "the formId is a mock one",
"couponId": 0,
"payType": "weixin",
"useIntegral": false,
"bargainId": 0,
"combinationId": 0,
"pinkId": 0,
"seckill_id": 0,
"mark": ""
}
~~~
* 请求方式
POST
* 响应数据
余额支付返回数据
~~~
{
"code": 200,
"msg": "余额不足999.03",
"data": {
"status": "PAY_DEFICIENCY",
"result": []
},
"count": 0
}
~~~
微信支付返回数据
~~~
{
"code": 200,
"msg": "订单创建成功",
"data": {
"status": "WECHAT_PAY",
"result": {
"orderId": "wx2019032910400510003",
"key": "b3db609baad6fde98980fe66ce3b75bf",
"jsConfig": {
"appId": "wx3b82801238ca1b57",
"nonceStr": "5c9d85861e78f",
"package": "prepay_id=wx29104006078008b9289ca1fb1291811394",
"signType": "MD5",
"paySign": "B02F5F4A4D48F9A3B3DA3D31B271A35C",
"timestamp": "1553827206"
}
}
},
"count": 0
}
~~~
#### 获取支付后订单信息
* 接口说明
订单结算创建订单
* 请求地址
/auth\_api/get\_order\_pay\_info
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| order\_id | string | 订单ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"id": 41,
"order_id": "wx2019032910400510003",
"uid": 2,
"real_name": "张三",
"user_phone": "020-81167888",
"user_address": "广东省 广州市 海珠区 新港中路397号",
"cart_id": [81],
"total_num": 1,
"total_price": "0.01",
"total_postage": "0.00",
"pay_price": "0.01",
"pay_postage": "0.00",
"deduction_price": "0.00",
"coupon_id": 0,
"coupon_price": "0.00",
"paid": 1,
"pay_time": 1553827359,
"pay_type": "weixin",
"add_time": 1553827205,
"status": 0,
"refund_status": 0,
"refund_reason_wap_img": null,
"refund_reason_wap_explain": null,
"refund_reason_time": null,
"refund_reason_wap": null,
"refund_reason": null,
"refund_price": "0.00",
"delivery_name": null,
"delivery_type": null,
"delivery_id": null,
"gain_integral": "1.00",
"use_integral": "0.00",
"back_integral": null,
"mark": "",
"is_del": 0,
"unique": "b3db609baad6fde98980fe66ce3b75bf",
"remark": null,
"mer_id": 0,
"is_mer_check": 0,
"combination_id": 0,
"pink_id": 0,
"cost": "1500.00",
"seckill_id": 0,
"bargain_id": 0,
"is_channel": 1,
"_status": {
"_type": 1,
"_title": "未发货",
"_msg": "商家未发货,请耐心等待",
"_class": "state-nfh",
"_payType": "微信支付",
"_deliveryType": "其他方式"
},
"_pay_time": "2019-03-29 10:42:39",
"_add_time": 1553827366,
"status_pic": ""
},
"count": 0
}
~~~
### 优惠券
#### 产品可领取优惠券列表
* 接口说明
获取领取优惠券列表
* 请求地址
/coupons\_api/get\_issue\_coupon\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| limit | int | 条数 | 否 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"id": 2,
"cid": 4,
"start_time": 0,
"end_time": "1970\/01\/01",
"total_count": 5,
"remain_count": 3,
"is_permanent": 0,
"status": 1,
"is_del": 0,
"add_time": "2019\/03\/21",
"coupon_price": "1.00",
"use_min_price": "0.00",
"is_use": true
}],
"count": 0
}
~~~
#### 订单中获取优惠券
* 接口说明
订单中获取可用优惠券列表
* 请求地址
/coupons\_api/get\_use\_coupon\_order
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| totalPrice | float | 订单总价格 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"id": 6,
"cid": 4,
"uid": 2,
"coupon_title": "全场优惠券1元",
"coupon_price": "1.00",
"use_min_price": "0.00",
"add_time": "2019\/03\/29",
"end_time": "2019\/04\/08",
"use_time": 0,
"type": "get",
"status": 0,
"is_fail": 0
}],
"count": 0
}
~~~
#### 我的优惠券
* 接口说明
我的所有优惠券列表
* 请求地址
/coupons\_api/get\_use\_coupons
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"id": 6,
"cid": 4,
"uid": 2,
"coupon_title": "测试 2019.3.21.21.22",
"coupon_price": 1,
"use_min_price": 0,
"add_time": "2019\/03\/29",
"end_time": "2019\/04\/08",
"use_time": 0,
"type": "get",
"status": 0,
"is_fail": 0,
"_add_time": "2019\/03\/29",
"_end_time": "2019\/04\/08",
"_type": 2,
"_msg": "可使用"
}, {
"id": 5,
"cid": 4,
"uid": 2,
"coupon_title": "测试 2019.3.21.21.22",
"coupon_price": 1,
"use_min_price": 0,
"add_time": "2019\/03\/28",
"end_time": "2019\/04\/07",
"use_time": 1553784135,
"type": "get",
"status": 1,
"is_fail": 0,
"_add_time": "2019\/03\/28",
"_end_time": "2019\/04\/07",
"_type": 0,
"_msg": "已使用"
}],
"count": 0
}
~~~
#### 领取优惠券
* 接口说明
点击领取优惠券
* 请求地址
/coupons\_api/user\_get\_coupon
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| couponId | int | 优惠券ID | 是 |
* 请求方式
POST
* 响应数据
~~~
{
"code": 200,
"msg": "领取成功",
"data": [],
"count": 0
}
~~~
### 个人中心接口
#### 个人中心
* 接口说明
个人中心数据接口
* 请求地址
/user\_api/my
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"uid": 2,
"account": "rt21548052469",
"nickname": "张三",
"avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg\/132",
"phone": null,
"add_time": 1548052469,
"add_ip": "123.139.168.143",
"last_time": 1553827154,
"last_ip": "123.139.69.172",
"now_money": "0.10",
"integral": "0.00",
"sign_num": 0,
"status": 1,
"level": 0,
"spread_uid": 0,
"spread_time": 0,
"user_type": "routine",
"is_promoter": 0,
"pay_count": 9,
"couponCount": 0,
"like": 3,
"orderStatusNum": {
"noBuy": 4,
"noPostage": "9",
"noTake": 0,
"noReply": 0,
"noPink": 0,
"noRefund": 1
},
"notice": 0,
"brokerage": 0,
"recharge": 0.1,
"orderStatusSum": 0.02,
"statu": 1,
"vip": false
},
"count": 0
}
~~~
#### 获取个人中心导航菜单
* 接口说明
获取个人中心导航菜单
* 请求地址
/public\_api/get\_my\_naviga
* 请求参数
参数名称 | 类型 | 描述 | 是否必须
\---|---|---|---
token|string|授权token header中提交|是
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"routine_my_menus": [{
"id": 135,
"name": "会员中心",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc9934a7c.png",
"url": "\/pages\/user_vip\/index"
}, {
"id": 137,
"name": "我的推广",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc9943575.png",
"url": "\/pages\/user_spread_user\/index"
}, {
"id": 138,
"name": "我的余额",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc992db31.png",
"url": "\/pages\/user_money\/index"
}, {
"id": 139,
"name": "地址信息",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc99101a8.png",
"url": "\/pages\/user_address_list\/index"
}, {
"id": 140,
"name": "我的收藏",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc99269d1.png",
"url": "\/pages\/user_goods_collection\/index"
}, {
"id": 141,
"name": "优惠卷",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc991f394.png",
"url": "\/pages\/user_coupon\/index"
}, {
"id": 162,
"name": "砍价记录",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc9918091.png",
"url": "\/pages\/activity\/user_goods_bargain_list\/index"
}]
}
}
~~~
#### 获取订单状态数量
* 接口说明
获取订单状态数量
* 请求地址
/auth\_api/get\_order\_data
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"order_count": 9,
"sum_price": 0.02,
"unpaid_count": 4,
"unshipped_count": 8,
"received_count": 0,
"evaluated_count": 0,
"complete_count": 0
},
"count": 0
}
~~~
#### 获取订单列表
* 接口说明
获取订单列表
* 请求地址
/user\_api/get\_user\_order\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| type | int | 订单类型0全部,1待发货,2待收货,3待评价,4已完成 | 是 |
| page | int | 请求起始页数,默认1 | 是 |
| limit | int | 请求条数 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"add_time": 1553827012,
"seckill_id": 0,
"bargain_id": 0,
"combination_id": 0,
"id": 40,
"order_id": "wx2019032910365210002",
"pay_price": "877.14",
"total_num": 1,
"total_price": "888.00",
"pay_postage": "0.00",
"total_postage": "0.00",
"paid": 0,
"status": 0,
"refund_status": 0,
"pay_type": "weixin",
"coupon_price": "1.00",
"deduction_price": "9.86",
"pink_id": 0,
"delivery_type": null,
"cartInfo": [{
"id": 80,
"uid": 2,
"type": "product",
"product_id": 2,
"product_attr_unique": "19f1d772",
"cart_num": 1,
"add_time": 1553826976,
"is_pay": 0,
"is_del": 0,
"is_new": 1,
"combination_id": 0,
"seckill_id": 0,
"bargain_id": 0,
"productInfo": {
"id": 2,
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg",
"slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg"],
"price": "0.01",
"ot_price": "1999.00",
"vip_price": "0.00",
"postage": "0.00",
"mer_id": 0,
"give_integral": "1999.00",
"cate_id": "3",
"sales": 16,
"stock": 994,
"store_name": "智能马桶盖 AI版",
"store_info": "智能马桶盖 AI版",
"unit_name": "件",
"is_show": 1,
"is_del": 0,
"is_postage": 1,
"cost": "1500.00",
"attrInfo": {
"product_id": 2,
"suk": "40cm",
"stock": 994,
"sales": 0,
"price": "888.00",
"image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg",
"unique": "19f1d772",
"cost": "1500.00"
}
},
"truePrice": 888,
"trueStock": 994,
"costPrice": "1500.00",
"unique": "544defa9fddff50c53b71c43e0da72be",
"is_reply": 0
}],
"_status": {
"_type": 0,
"_title": "未支付",
"_msg": "立即支付订单吧",
"_class": "nobuy",
"_payType": "微信支付"
},
"_pay_time": "",
"_add_time": "2019-03-29 10:36:52",
"status_pic": ""
}],
"count": 0
}
~~~
#### 获取用户信息
* 接口说明
获取领取优惠券列表
* 请求地址
/user\_api/get\_my\_user\_info
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"uid": 2,
"account": "rt21548052469",
"nickname": "༄ོ࿆༘荣耀࿐",
"avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg\/132",
"phone": null,
"add_time": 1548052469,
"add_ip": "123.139.168.143",
"last_time": 1553821207,
"last_ip": "123.139.69.172",
"now_money": "0.10",
"integral": "986.00",
"sign_num": 0,
"status": 1,
"level": 0,
"spread_uid": 0,
"spread_time": 0,
"user_type": "routine",
"is_promoter": 0,
"pay_count": 8
},
"count": 0
}
~~~
#### 用户充值
* 接口说明
用户充值
* 请求地址
/user\_api/user\_wechat\_recharge
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| price | float | 充值金额 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"appId": "wx3b82801238ca1b57",
"nonceStr": "5c9e0e2027eaf",
"package": "prepay_id=wx29202256137894a2e3836a062582534758",
"signType": "MD5",
"paySign": "101888B544AC89A4E3C2D1D3AE143006",
"timestamp": "1553862176"
}
}
~~~
#### 我的账单明细
* 接口说明
我的账单明细
* 请求地址
/user\_api/get\_user\_bill\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| type | int | 账单类型0全部,1消费2充值 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"money": "2019-03",
"list": [{
"add_time": "2019-03-21 23:46",
"title": "购买商品",
"number": "0.00",
"pm": 0
}, {
"add_time": "2019-03-22 15:56",
"title": "购买商品",
"number": "0.00",
"pm": 0
}]
}, {
"money": "2019-01",
"list": [{
"add_time": "2019-01-22 16:02",
"title": "用户余额充值",
"number": "0.10",
"pm": 1
}]
}],
"count": 0
}
~~~
#### 我的积分明细 需要完善类型筛选
* 接口说明
我的积分明细
* 请求地址
/user\_api/user\_integral\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| type | int | 账单类型0全部,1消费2签到 | 否 |
| page | int | 请求起始页数,默认1 | 否 |
| limit | int | 请求条数 | 否 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"mark": "用户累计签到第1天",
"pm": 1,
"number": 10,
"add_time": "2019\/03\/29 12:26"
}, {
"mark": "购买商品使用986积分抵扣9.86元",
"pm": 0,
"number": 986,
"add_time": "2019\/03\/29 10:36"
}, {
"mark": "购买商品使用3积分抵扣0.03元",
"pm": 0,
"number": 3,
"add_time": "2019\/03\/22 16:11"
}, {
"mark": "购买商品使用2积分抵扣0.02元",
"pm": 0,
"number": 2,
"add_time": "2019\/03\/22 16:06"
}, {
"mark": "购买商品使用3积分抵扣0.03元",
"pm": 0,
"number": 3,
"add_time": "2019\/03\/22 16:05"
}, {
"mark": "购买商品使用3积分抵扣0.03元",
"pm": 0,
"number": 3,
"add_time": "2019\/03\/22 16:02"
}, {
"mark": "购买商品使用3积分抵扣0.03元",
"pm": 0,
"number": 3,
"add_time": "2019\/03\/22 15:56"
}, {
"mark": "系统增加了1000积分",
"pm": 1,
"number": 1000,
"add_time": "2019\/03\/22 15:56"
}]
}
~~~
### 签到接口
#### 签到接口
* 接口说明
签到
* 请求地址
/user\_api/user\_sign
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "签到获得10积分",
"data": {
"integral": "10"
},
"count": 0
}
~~~
#### 我的签到记录
* 接口说明
我的签到记录
* 请求地址
/user\_api/get\_sign\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| page | int | 请求起始页数,默认1 | 是 |
| limit | int | 请求条数 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"add_time": "2019-03-29",
"title": "用户累计签到第1天",
"number": "10.00"
}],
"count": 0
}
~~~
#### 历史签到记录
* 接口说明
历史签到记录
* 请求地址
/user\_api/get\_sign\_month\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| page | int | 请求起始页数,默认1 | 是 |
| limit | int | 请求条数 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"data": [{
"month": "2019-03",
"list": [{
"add_time": "2019-03-29",
"title": "用户累计签到第1天",
"number": "10.00"
}]
}],
"page": 2
},
"count": 0
}
~~~
### 推广中心
#### 昨日收益
* 接口说明
获取最新活动
* 请求地址
/user\_api/yesterday\_commissio
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": 0
}
~~~
#### 申请提现
* 接口说明
申请提现接口
* 请求地址
/user\_api/user\_extract
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| extract\_type | string | 提现方式'bank'银行卡提现,'weixin'微信提现,'alipay'支付宝提现 | 是 |
| name | string | 提现人姓名 | 否 |
| cardnum | string | 银行卡号 | 否 |
| money | string | 申请提现金额 | 是 |
| bankname | string | 银行名字 | 否 |
| alipay\_code | string | 支付宝账号 | 否 |
示例
~~~
//银行卡
{
"lists": {
"name": "许先生",
"cardnum": "622202377772767",
"money": "200",
"extract_type": "bank",
"bankname": "工商银行"
}
}
//微信提现
{
"lists": {
"money": "200",
"extract_type": "weixin"
}
}
//支付宝
{
"lists": {
"name": "rongyao_xu@163.com",
"money": "200",
"extract_type": "alipay",
"alipay_code": "rongyao_xu@163.com"
}
}
~~~
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": 0
}
~~~
#### 提现获取配置接口
* 接口说明
获取银行列表和最小提现金额
* 请求地址
/public\_api/get\_user\_extract\_bank
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"extractBank": ["中国农行", "中国建设银行", "工商银行"],
"minPrice": 100 //最小提现金额
}
}
~~~
#### 我的分享海报
* 接口说明
我的分享海报
* 请求地址
/user\_api/user\_spread\_banner\_lis
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [{
"id": 161,
"title": "分享海报",
"pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/29\/5c9e1ef640019.jpg",
"poster": "http:\/\/datong.crmeb.net\/public\/uploads\/routine\/poster\/2019\/03\/29\/161_2.png"
}]
}
~~~
#### 我的推广人数 建议和下面接口合并
* 接口说明
我的推广人数
* 请求地址
/user\_api/team
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"total": 0,
"totalLevel": 0
}
}
~~~
#### 我的推广人列表 oder 参数名字建议换一下,type 字段名字也换一下
* 接口说明
我的推广人列表
* 请求地址
/user\_api/user\_spread\_new\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| first | int | 默认0 | 否 |
| limit | int | 没次获取数量 | 否 |
| keyword | int | 搜索关键词 | 否 |
| type | int | 类型默认0一级,1二级 | 否 |
| order | int | 排序 'childCount DESC'团队人数倒序,'childCount ASC'团队人数正序,'numberCount DESC'消费金额倒序,'numberCount ASC'消费金额正序,'orderCount DESC'订单数量倒序,'orderCount ASC'订单数量正序 | 否 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": [ {
"uid": 4,
"nickname": "徐斗明",
"avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/b3WKhsUahEKcwhibePOT8ODQaLZzhLKWpBkiaEoNMj5MNtlQ7FE8ylSMFVYKtVyTAicJTibAk4JdIPPvcdRRRoLLYQ\/132",
"time": "2019\/01\/21",
"childCount": 0,
"orderCount": 19,
"numberCount": "2834.10"
}, {
"uid": 5,
"nickname": "胡智超",
"avatar": "https:\/\/wx.qlogo.cn\/mmhead\/x2TEry65icUTPq3jnwDuDOfZsAdqpeoI6l8Kkj0a7jsk\/132",
"time": "2019\/01\/21",
"childCount": 0,
"orderCount": 0,
"numberCount": null
}, {
"uid": 6,
"nickname": "弱冠而立_",
"avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/ajNVdqHZLLCiaibOuHIPWChibiaUANzk8WeFicCubpeEwVYf3hoiaA51qAYjtVR03Nsv4JT3wcs8BGs6FicCaibT0C3rjg\/132",
"time": "2019\/01\/21",
"childCount": 4,
"orderCount": 8,
"numberCount": "2186.07"
}, {
"uid": 7,
"nickname": "王淳紫",
"avatar": "https:\/\/wx.qlogo.cn\/mmhead\/5gRq3ia05J69p4zc1Cthd1iajysUvymMSYxveib9ybGJ20\/132",
"time": "2019\/01\/21",
"childCount": 1,
"orderCount": 0,
"numberCount": null
}, {
"uid": 8,
"nickname": "邱淑贞",
"avatar": "https:\/\/wx.qlogo.cn\/mmhead\/TwSTp0ZOcMHf9jxJGAI2wLxqx74fBR8pHKU9U0o396A\/132",
"time": "2019\/01\/21",
"childCount": 0,
"orderCount": 0,
"numberCount": null
}, {
"uid": 9,
"nickname": "弱冠而立_",
"avatar": "http:\/\/thirdwx.qlogo.cn\/mmopen\/0yOibuhvkGFib3C7lgPfs2Dhr87FQUPoIic9FqyWzfTspYMMibD0uM0x5N2AHtyPGTywOkVNHyhI1hyodjcUVSibh0Q\/132",
"time": "2019\/01\/22",
"childCount": 0,
"orderCount": 1,
"numberCount": "1.00"
}, {
"uid": 10,
"nickname": "徐斗明",
"avatar": "http:\/\/thirdwx.qlogo.cn\/mmopen\/R4EyJCxQnIfNaJ3ibNCp4vuQTH2CIibDLAicFsLk7AMVkDBTxochREzIYAaj50vNRWvWPSsdZFM8VTCLNUyDBbcwdPSIFA3eG5K\/132",
"time": "2019\/01\/22",
"childCount": 0,
"orderCount": 0,
"numberCount": null
}, {
"uid": 11,
"nickname": "林馨仪",
"avatar": "https:\/\/wx.qlogo.cn\/mmhead\/NVscISQ1icjE2ic4gKXfx5HajElCnAMJQPRr3W3UQEHZM\/132",
"time": "2019\/01\/22",
"childCount": 0,
"orderCount": 0,
"numberCount": null
}]
}
~~~
#### 佣金明细 接口错误
* 接口说明
获取用户佣金明细
* 请求地址
/user\_api/get\_record\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"list": [{
"time": "2019-03",
"child": [{
"title": "佣金收入",
"time": "2019-03-29 20:28",
"number": "0.10",
"pm": 1
}, {
"title": "佣金收入",
"time": "2019-03-28 22:42",
"number": "0.00",
"pm": 0
}]
}, {
"time": "2019-01",
"child": [{
"title": "佣金收入",
"time": "2019-01-22 16:02",
"number": "0.10",
"pm": 1
}]
}],
"count": "0.20"
}
}
~~~
#### 推广订单总数
* 接口说明
推广订单总数
* 请求地址
/user\_api/get\_record\_order\_count
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "",
"data": 0
}
~~~
#### 推广订单列表 暂时没有
* 接口说明
推广订单总数
* 请求地址
/user\_api/get\_record\_order\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| page | int | 请求起始页数,默认1 | 是 |
| limit | int | 请求条数 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "",
"data": []
}
~~~
#### 提现记录 参数 first 换成page,该接口是不是和资金记录可以合并
* 接口说明
提现记录
* 请求地址
/user\_api/get\_record\_list
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| page | int | 请求起始页数,默认1 | 否 |
| limit | int | 请求条数 | 否 |
| category | string | now\_money | 是 |
| type | string | extract | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"list": [],
"count": 0
}
}
~~~
#### 提现总额无接口建议和提现列表接口合并
### 活动接口
#### 获取最新活动
* 接口说明
获取最新活动
* 请求地址
/user\_api/get\_activity
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"is_bargin": true,
"is_pink": true,
"is_seckill": false
},
"count": 0
}
~~~
### 其它接口
#### 获取组合数据
* 接口说明
获取组合数据
* 请求地址
/get\_system\_group\_data\_value
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| name | string | 组合数据名称 | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": {
"sign_day_num": [{
"id": 147,
"day": "第一天",
"sign_num": "10"
}, {
"id": 148,
"day": "第二天",
"sign_num": "20"
}, {
"id": 149,
"day": "第三天",
"sign_num": "30"
}, {
"id": 150,
"day": "第四天",
"sign_num": "40"
}, {
"id": 151,
"day": "第五天",
"sign_num": "50"
}, {
"id": 152,
"day": "第六天",
"sign_num": "60"
}, {
"id": 153,
"day": "奖励",
"sign_num": "111"
}]
},
"count": 0
}
~~~
#### 创建formID
* 接口说明
创建formid 方便接收模版消息
* 请求地址
/public\_api/get\_form\_id
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| formIds | json | 批量生成fomrID | 是 |
示例
~~~
{
"formIds": ["the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one"]
}
~~~
* 请求方式
POST
* 响应数据
~~~
{
"code": 200,
"msg": "",
"data": [],
"count": 0
}
~~~
#### 标准格式
* 接口说明
接口详细说明
* 请求地址
/store\_api/url
* 请求参数
| 参数名称 | 类型 | 描述 | 是否必须 |
| --- | --- | --- | --- |
| token | string | 授权token header中提交 | 是 |
| pid | int | 收藏ID | 是 |
* 请求方式
GET
* 响应数据
~~~
{
"code": 200,
"msg": "ok",
"data": 1,
"count": 0
}
~~~
- 简介
- 应用接口
- 首页接口
- 小程序
- 小程序授权
- 创建formid
- 产品接口
- 获取产品分类
- 获取产品列表
- 获取产品详情
- 产品是否收藏
- 我的收藏
- 删除收藏产品
- 获取推荐产品
- 产品推广二维码
- 购物车接口
- 添加购物车
- 我的购物车
- 购物车修改数量
- 从购物车中收藏
- 购物车中删除产品
- 获取购物车中产品数量
- 订单接口
- 订单确认
- 订单详情
- 申请退款前
- 申请退款
- 取消订单
- 订单支付
- 获取订单后订单信息
- 收货地址管理
- 获取默认收货地址
- 获取收货地址列表
- 设置默认地址
- 获取单个收货地址详情
- 保存添加收货地址
- 删除收货地址
- 优惠券接口
- 获取可领取优惠券列表
- 订单中获取可用优惠券列表
- 获取我的优惠券列表
- 领取优惠券
- 个人中心接口
- 个人中心
- 获取个人中心导航菜单
- 获取订单状态数量
- 获取订单列表
- 获取用户信息
- 用户充值
- 我的账单明细
- 我的积分明细
- 签到接口
- 新增签到接口
- 会员签到记录
- 历史签到记录
- 分销推广接口
- 昨日收益
- 我的分享海报
- 我的推广人
- 佣金明细
- 推广订单
- 申请提现
- 提现记录
- 其它接口
- 获取组合数据
- 获取配置
- 二维码接口
- 空白目录