🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
#### 列表 ~~~[api] get:/index/member_address/index <<< success { "code": 1, "msg": "", "time": "2018-06-19 21:53:59", "data": [ { "id": 1, "member_id": 5, "consignee": "收件人", "mobile": "18666864521", "email": "", "country": 86, "province": 100000, "city": 110000, "district": 111000, "twon": 0, "address": "详细地址", "zipcode": "", "is_default": 0, "sort": 0, "status": 1, "created_at": "2018-06-19 21:46:52", "updated_at": "2018-06-19 21:46:52", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/index/member_address/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-19 21:53:21", "data": { "id": 1, "member_id": 5, "consignee": "收件人", "mobile": "18666864521", "email": "", "country": 86, "province": 100000, "city": 110000, "district": 111000, "twon": 0, "address": "详细地址", "zipcode": "", "is_default": 0, "sort": 0, "status": 1, "created_at": "2018-06-19 21:46:52", "updated_at": "2018-06-19 21:46:52", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/index/member_address/create *string:consignee#收货人 *string:mobile#手机 string:email#邮箱 number:country=86#国家 *number:province#省份 *number:city#城市 *number:district#地区 number:twon#乡镇 *string:address#详细地址 *string:full_address#含省市区的地址 string:zipcode#邮编 number:is_default=0#是否默认地址 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:37:29", "data": [] } <<< example { "consignee": "张三", "mobile": "18824252628", "email": "", "country": 86, "province": 100000, "city": 100001, "district": 100020, "twon": 100021, "address": "人民大会堂", "zipcode": 100000, "is_default": 1, "sort": 0 } ~~~ #### 更新 ~~~[api] post:/index/member_address/update/id/:id string:consignee#收货人 string:mobile#手机 string:email#邮箱 number:country=86#国家 number:province#省份 number:city#城市 number:district#地区 number:twon#乡镇 string:address#详细地址 string:zipcode#邮编 number:is_default=0#是否默认地址 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-29 16:06:18", "data": [] } ~~~ #### 删除 ~~~[api] post:/index/member_address/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:41:03", "data": [] } ~~~ #### 获取默认地址 ~~~[api] get:/index/member_address/getDefault <<< success { "code": 1, "msg": "", "time": "2018-08-13 17:52:38", "data": { "id": 1, "member_id": 5, "consignee": "收货人", "mobile": "18666864521", "email": "", "country": 86, "province": 440000, "city": 441900, "district": 441903, "twon": 0, "address": "恒大御景", "zipcode": "", "is_default": 1, "sort": 0, "status": 1, "created_at": "2018-06-19 21:46:52", "updated_at": "2018-08-12 22:41:04", "longitude": "113.709085", "latitude": "22.994832", "status_text": "正常" } } ~~~