From 203d98ead2149f60d016df4772ab19787a6947bb Mon Sep 17 00:00:00 2001 From: panqihua Date: Fri, 13 Jan 2023 20:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=AF=A6=E6=83=85-=E6=94=B6?= =?UTF-8?q?=E8=B4=A7=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/platform/address.js | 44 +++++++ src/views/platform/address.vue | 200 ++++++++++++++++++++++++++++++++ src/views/system/user/index.vue | 12 +- 3 files changed, 251 insertions(+), 5 deletions(-) create mode 100644 src/api/platform/address.js create mode 100644 src/views/platform/address.vue 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 @@