From 9acaf3c27ccaf25c9c007941d6cf5fc79ac608f8 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 3 Sep 2023 21:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BD=A3=EF=BC=9Auser=5Fspread=5Fuser?= =?UTF-8?q?=20=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/member/brokerage.js | 6 +++ pages/user/index.vue | 2 +- pages/users/login/index.vue | 2 +- pages/users/user_spread_money/index.vue | 23 +------- pages/users/user_spread_user/index.vue | 71 ++++++++----------------- utils/request.js | 1 + 6 files changed, 32 insertions(+), 73 deletions(-) create mode 100644 api/member/brokerage.js diff --git a/api/member/brokerage.js b/api/member/brokerage.js new file mode 100644 index 00000000..b232f709 --- /dev/null +++ b/api/member/brokerage.js @@ -0,0 +1,6 @@ +import request from "@/utils/request.js"; + +// 获得个人分销统计 +export function getBrokerageUserSummary() { + return request.get('app-api/member/brokerage-user/get-summary'); +} diff --git a/pages/user/index.vue b/pages/user/index.vue index bbf5f43e..6abf6a81 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -95,7 +95,7 @@ + || (item.url === '/pages/users/user_spread_user/index' && !userInfo.brokerageEnabled))"> {{ item.name }} diff --git a/pages/users/login/index.vue b/pages/users/login/index.vue index b9d4a8f2..6b253f7f 100644 --- a/pages/users/login/index.vue +++ b/pages/users/login/index.vue @@ -316,7 +316,7 @@ getUserInfo(data) { this.$store.commit("SETUID", data.userId); // TODO 芋艿:换成自己的先 - if (true) { + if (false) { UserApi.getUserInfo().then(res => { this.$store.commit("UPDATE_USERINFO", res.data); // 调回登录前页面 diff --git a/pages/users/user_spread_money/index.vue b/pages/users/user_spread_money/index.vue index 8a582355..e4fe6caf 100644 --- a/pages/users/user_spread_money/index.vue +++ b/pages/users/user_spread_money/index.vue @@ -72,34 +72,22 @@ - - - -