diff --git a/src/api/platform/address.js b/src/api/platform/address.js new file mode 100644 index 0000000..80a19ad --- /dev/null +++ b/src/api/platform/address.js @@ -0,0 +1,44 @@ +import request from "@/utils/request"; + +// 查询收货地址列表 +export function listAddress(query) { + return request({ + url: "/platform/address/list", + method: "get", + params: query, + }); +} + +// 查询收货地址详细 +export function getAddress(id) { + return request({ + url: "/platform/address/" + id, + method: "get", + }); +} + +// 新增收货地址 +export function addAddress(data) { + return request({ + url: "/platform/address", + method: "post", + data: data, + }); +} + +// 修改收货地址 +export function updateAddress(data) { + return request({ + url: "/platform/address", + method: "put", + data: data, + }); +} + +// 删除收货地址 +export function delAddress(id) { + return request({ + url: "/platform/address/" + id, + method: "delete", + }); +} diff --git a/src/views/platform/address.vue b/src/views/platform/address.vue new file mode 100644 index 0000000..dedbb87 --- /dev/null +++ b/src/views/platform/address.vue @@ -0,0 +1,200 @@ + + + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 7f5d020..c917c1c 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -123,14 +123,16 @@ - + 钱包明细 购买明细 - 收货地址 + + + 浏览记录 收藏记录 购物车 @@ -164,15 +166,15 @@