From 15b7e3d94ce35ec612840ef294b9151c2279b13f Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 9 Sep 2023 21:06:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BD=A3=EF=BC=9A=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=20user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 5 ++-- api/trade/brokerage.js | 7 +++++ components/login_mobile/index.vue | 7 ----- pages/users/app_login/index.vue | 2 +- pages/users/login/index.vue | 50 +++++++++++++------------------ 5 files changed, 31 insertions(+), 40 deletions(-) diff --git a/App.vue b/App.vue index dc6be859..5f6e0dab 100644 --- a/App.vue +++ b/App.vue @@ -81,7 +81,7 @@ let snsapiBase = 'snsapi_base'; let urlData = location.pathname + location.search; if (!that.$store.getters.isLogin && Auth.isWeixin()) { - const { code, state, scope } = option.query; + const { code, } = option.query; if (code && code != uni.getStorageSync('snsapiCode') && location.pathname.indexOf('/pages/users/wechat_login/index') === -1) { // 存储静默授权code @@ -89,8 +89,7 @@ let spread = that.globalData.spid ? that.globalData.spid : 0; Auth.auth(code, that.$Cache.get('spread')) .then(res => { - uni.setStorageSync('snRouter', decodeURIComponent(decodeURIComponent(option.query - .back_url))); + uni.setStorageSync('snRouter', decodeURIComponent(decodeURIComponent(option.query.back_url))); if (res.type === 'register') { this.$Cache.set('snsapiKey', res.key); } diff --git a/api/trade/brokerage.js b/api/trade/brokerage.js index 27b33788..bd344a37 100644 --- a/api/trade/brokerage.js +++ b/api/trade/brokerage.js @@ -5,6 +5,13 @@ export function getBrokerageUser() { return request.get('app-api/trade/brokerage-user/get'); } +// 获得个人分销信息 +export function bindBrokerageUser(bindUserId) { + return request.put('app-api/trade/brokerage-user/bind', { + bindUserId + }); +} + // 获得个人分销统计 export function getBrokerageUserSummary() { return request.get('app-api/trade/brokerage-user/get-summary'); diff --git a/components/login_mobile/index.vue b/components/login_mobile/index.vue index 94886b06..76f054cb 100644 --- a/components/login_mobile/index.vue +++ b/components/login_mobile/index.vue @@ -17,19 +17,13 @@