[TOC]
* * * * *
### WeEngine Android、IOS Address api
#### 收貨地址列表
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.address
*string:openid=默認值#openid
<<<
success
{
"status": 1,
"result": {
"addressList": [
{
"id": "", //地址ID
"uniacid": "", //公眾號ID
"openid": "", //openid
"realname": "", //姓名
"mobile": "", //手機號
"province": "", //省
"city": "", //市
"area": "", //區
"address": "", //詳細地址
"isdefault": "", //默認 0否 1是
"zipcode": "", //郵編 預留
"deleted": "0", // 是否刪除 0否 1是 接口只查未刪除
"street": "", // 街道
"datavalue": "", //數據值 預留
"streetdatavalue": "" //街道數據值 預留
},
......
],
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 選擇收貨地址 (下單調用 返回個人所有地址)
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.address.selector
*string:openid=默認值#openid
<<<
success
{
同收貨地址列表
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 編輯收貨地址
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.address.post
*string:id=默認值#地址ID
*string:openid=默認值#openid
<<<
success
{
"status": 1,
"result": {
"address": {
"id": "",
"uniacid": "",
"openid": "",
"realname": "",
"mobile": "",
"province": "",
"city": "",
"area": "",
"address": "",
"isdefault": "",
"zipcode": "",
"deleted": "0",
"street": "",
"datavalue": "",
"streetdatavalue": ""
}
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 保存收貨地址
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.address.submit
*string:openid=默認值#openid
string:id=默認值#地址ID 編輯地址必填
*string:realname=默認值#收件人
*string:mobile=默認值#聯系電話
*string:areas=默認值#省 市 區 空格分割
*string:address=默認值#詳細地址
<<<
success
{
"status": 1,
"result": {
"addressid": , //地址ID
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 默認收貨地址
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.address.setdefault
*string:openid=默認值#openid
*string:id=默認值#地址ID
<<<
success
{
"status": 1,
"result": {
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 刪除收貨地址
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.address.delete
*string:openid=默認值#openid
*string:id=默認值#地址ID
<<<
success
{
"status": 1,
"result": {
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~