* 获取收货地址列表
~~~[api]
get:/index.php?ctl=Buyer_User&met=address&typ=json
string:k#key
int:u#用户id
<<<
success
{
"cmd_id":-140,
"status":200,
"msg":"success",
"data":{
"address_list":{
"5":
{
"user_address_id":"5",
"user_id":"10014",
"user_address_contact":"adwq",
"user_address_province_id":"9",
"user_address_city_id":"152",
"user_address_area_id":"1892",
"user_address_area":"\u4e0a\u6d77 \u95f5\u884c\u533a \u53e4\u7f8e\u8857\u9053",
"user_address_address":"aaaaaaaaaaaaa",
"user_address_phone":"15222222222",
"user_address_company":"",
"user_address_default":"0",
"user_address_time":"2017-04-26 10:50:54",
"id":"5",
"address_info":"\u4e0a\u6d77 \u95f5\u884c\u533a \u53e4\u7f8e\u8857\u9053"
}
}
}
}
<<<
error
~~~
* 添加收货地址
~~~[api]
get:/index.php?ctl=Buyer_User&met=addAddressInfo&typ=json
string:k#key
int:u#用户id
user_address_contact#收货人姓名
user_address_phone#联系手机
province_id#所属省id
city_id#城市Id
area_id#地区id
user_address_address#详细地址
address_area#地区选择
user_address_default#默认地址
<<<
success
{"cmd_id":-140,"status":200,"msg":"success","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"error","data":{}}
~~~
* 编辑收货地址
~~~[api]
get:/index.php?ctl=Buyer_User&met=address&act=edit&typ=json
string:k#key
int:u#用户id
id#收货地址id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"address_list": {
"user_address_id": "402",
"user_id": "10014",
"user_address_contact": "1313",
"user_address_province_id": "9",
"user_address_city_id": "151",
"user_address_area_id": "1886",
"user_address_area": "上海 杨浦区 新江湾城街道 ",
"user_address_address": "12313212313",
"user_address_phone": "15212212321",
"user_address_company": "",
"user_address_default": "1",
"user_address_time": "2017-11-15 11:39:20",
"id": "402"
}
}
}
<<<
error
~~~
* 保存收货地址
~~~[api]
get:/index.php?ctl=Buyer_User&met=editAddressInfo&typ=json
string:k#key
int:u#用户id
user_address_contact#收货人姓名
user_address_phone#联系手机
province_id#所属省id
city_id#城市Id
area_id#地区id
user_address_address#详细地址
address_area#地区选择
user_address_default#默认地址
user_address_id#收货地址id
<<<
success
{"cmd_id":-140,"status":200,"msg":"success","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"error","data":{}}
~~~
* 删除收货地址
~~~[api]
get:/index.php?ctl=Buyer_User&met=delAddress&typ=json
int:id#收货地址id
string:k#key
int:u#用户id
<<<
success
{"cmd_id":-140,"status":200,"msg":"success","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"error","data":{}}
~~~
* 收货地址地址选择
~~~[api]
get:/index.php?ctl=Base_District&met=district&typ=json&pid=0
int:pid=0#地区id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"items": [
{
"district_id": "1",
"district_name": "北京",
"district_parent_id": "0",
"district_displayorder": "0",
"district_region": "华北",
"district_is_leaf": "1",
"district_is_level": "1",
"id": "1",
"parent_id": "0",
"name": "北京",
"level": 1,
"district_level": 1,
"district_icon": "ui-icon-star",
"expanded": false,
"loaded": false,
"is_leaf": false
},
...
]
}
}
<<<
error
~~~
- 商城api接口
- 首页数据获取
- 分类接口
- 购物车接口
- 商品信息接口
- 搜索接口
- 订单列表接口
- 店铺接口
- 收藏接口
- 收货地址接口
- 生成订单接口
- 支付接口
- 会员中心接口
- 登录注册接口
- 关于我们
- 图片上传
- 分销中心
- 分销明细
- 代金券
- 平台红包列表
- 分销申请列表
- 我的推广
- 微信小程序
- 简介
- 开发前准备
- 目录结构介绍
- 发起请求
- 网络请求提交表单
- 代码及开发所遇到问题总结
- 导航跳转时所遇到的问题
- 缓存数据与数据取得的问题
- 如何引入外部css
- 如何定义与使用全局变量
- 如何定义新的界面
- 微信小程序支付
- 小程序的手机验证码登录
- 上传,下载
- 提示框
- app.json配置
- 配置demo
- pages
- window
- tabBar
- networkTimeout
- debug
- page.json
- 缓存
- 特效
- 滑动方式
- 城市切换
- 五星好评
- Switch
- 上拉加载
- wxml 标签
- 视图容器
- 基础内容
- 表单组件
- 导航
- 媒体组件
- 自定义提示框
- 小程序内访问网页
- 倒计时显示
- 微信小程序,如何在返回前一个页面时,执行前一个页面的方法
- 在本地可以请求到数据,但手机上是请求不到的
- curl请求失败
- 代码同步
- 短信平台更换