多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[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": "错误信息" } } ~~~