diff --git a/mobile-web/src/api/user.js b/mobile-web/src/api/user.js index 2fd7d250a..bc4432cc2 100644 --- a/mobile-web/src/api/user.js +++ b/mobile-web/src/api/user.js @@ -16,45 +16,6 @@ export function DelFavorite(id){ }) } -export function GetAddressList(){ - return request({ - url: '/user-api/users/address/list', - method: 'get', - }) -} - -export function GetAddressById(id){ - return request({ - url: '/user-api/users/address/address', - method: 'get', - params: { id } - }) -} - -export function UpdateAddress(data){ - return request({ - url: '/user-api/users/address/update', - method: 'PUT', - params: data - }) -} - -export function SaveAddress(data){ - return request({ - url: '/user-api/users/address/add', - method: 'POST', - params: data - }) -} - -export function DelAddress(data){ - return request({ - url: '/user-api/users/address/remove', - method: 'DELETE', - params: data - }) -} - export function GetCoupon(data){ return request({ url: '/User/GetCoupon', @@ -108,3 +69,53 @@ export function doPassportMobileSendRegisterCode(mobile) { } }); } + + + +// -------------------------- address + +export function GetAddressList(){ + return request({ + url: '/user-api/users/address/list', + method: 'get', + }) +} + +export function GetAddressById(id){ + return request({ + url: '/user-api/users/address/address', + method: 'get', + params: { id } + }) +} + +export function GetDefaultAddress(){ + return request({ + url: '/user-api/users/address/default_address', + method: 'get', + }) +} + +export function UpdateAddress(data){ + return request({ + url: '/user-api/users/address/update', + method: 'PUT', + params: data + }) +} + +export function SaveAddress(data){ + return request({ + url: '/user-api/users/address/add', + method: 'POST', + params: data + }) +} + +export function DelAddress(data){ + return request({ + url: '/user-api/users/address/remove', + method: 'DELETE', + params: data + }) +} diff --git a/mobile-web/src/page/shipping/order.vue b/mobile-web/src/page/shipping/order.vue index 3d9e495ee..7fcc78964 100644 --- a/mobile-web/src/page/shipping/order.vue +++ b/mobile-web/src/page/shipping/order.vue @@ -57,6 +57,7 @@