diff --git a/api/member/address.js b/api/member/address.js index 7b6a5b2e..861dad04 100644 --- a/api/member/address.js +++ b/api/member/address.js @@ -7,6 +7,11 @@ export function getAddress(id) { }); } +// 获得默认的用户收件地址 +export function getDefaultUserAddress() { + return request.get('app-api/member/address/get-default', {}); +} + // 获得用户收件地址列表 export function getAddressList() { return request.get('app-api/member/address/list', {}); diff --git a/api/user.js b/api/user.js index 3ac9f17a..53854438 100644 --- a/api/user.js +++ b/api/user.js @@ -243,40 +243,6 @@ export function userLevelDetection(){ return request.get('user/level/detection'); } -/** - * - * 地址列表 - * @param object data -*/ -export function getAddressList(data){ - return request.get('address/list',data); -} - -/** - * 设置默认地址 - * @param int id -*/ -export function setAddressDefault(id){ - return request.post('address/default/set',{id:id}) -} - -/** - * 修改 添加地址 - * @param object data -*/ -export function editAddress(data){ - return request.post('address/edit',data); -} - -/** - * 删除地址 - * @param int id - * -*/ -export function delAddress(id){ - return request.post('address/del',{id:id}) -} - /** * 获取单个地址 * @param int id diff --git a/components/addressWindow/index.vue b/components/addressWindow/index.vue index d079fb3a..274c023f 100644 --- a/components/addressWindow/index.vue +++ b/components/addressWindow/index.vue @@ -3,14 +3,17 @@ 选择地址 - - + + - {{item.realName}}{{item.phone}} - {{item.province}}{{item.city}}{{item.district}}{{item.detail}} + + {{ item.name }} + {{ item.mobile }} + + {{ item.areaName }} {{ item.detailAddress }} - + @@ -24,10 +27,8 @@ -