From 9e8c608aa8ab6985d192616e8fb45e9e1721a820 Mon Sep 17 00:00:00 2001 From: panqihua Date: Sat, 14 Jan 2023 12:09:23 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=B0=83=E6=95=B4=E6=94=B6=E8=B4=A7=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E8=A1=A8=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E6=8E=A5=E5=8F=A3=202.=E5=A2=9E=E5=8A=A0=E7=B2=89?= =?UTF-8?q?=E4=B8=9D=E8=A1=A8=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/platform/follower.js | 9 ++ src/views/platform/address.vue | 11 +++ src/views/platform/follower.vue | 152 ++++++++++++++++++++++++++++++++ src/views/system/user/index.vue | 13 +-- 4 files changed, 180 insertions(+), 5 deletions(-) create mode 100644 src/api/platform/follower.js create mode 100644 src/views/platform/follower.vue diff --git a/src/api/platform/follower.js b/src/api/platform/follower.js new file mode 100644 index 0000000..cbba817 --- /dev/null +++ b/src/api/platform/follower.js @@ -0,0 +1,9 @@ +import request from "@/utils/request"; + +// 查询收货地址列表 +export function listFollower(user_id) { + return request({ + url: `/platform/follower/list/${user_id}`, + method: "get", + }); +} diff --git a/src/views/platform/address.vue b/src/views/platform/address.vue index dedbb87..4f6be87 100644 --- a/src/views/platform/address.vue +++ b/src/views/platform/address.vue @@ -31,6 +31,9 @@ import { listAddress, getAddress, delAddress, addAddress, updateAddress } from " export default { name: "Address", + props: { + userId: Number + }, data() { return { // 遮罩层 @@ -101,6 +104,7 @@ export default { /** 查询收货地址列表 */ getList() { this.loading = true; + this.queryParams.userId = this.userId listAddress(this.queryParams).then(response => { this.addressList = response.rows; this.total = response.total; @@ -195,6 +199,13 @@ export default { ...this.queryParams }, `address_${new Date().getTime()}.xlsx`) } + }, + watch: { + userId(newValue) { + if (newValue) { + this.getList(); + } + } } }; diff --git a/src/views/platform/follower.vue b/src/views/platform/follower.vue new file mode 100644 index 0000000..24db9c3 --- /dev/null +++ b/src/views/platform/follower.vue @@ -0,0 +1,152 @@ + + + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index c917c1c..6139c3e 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -78,7 +78,7 @@ @@ -131,12 +131,14 @@ 钱包明细 购买明细 - + 浏览记录 收藏记录 购物车 - 粉丝 + + + 优惠券 @@ -168,13 +170,14 @@