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 @@