Selaa lähdekoodia

支付宝登录

DELL 3 vuotta sitten
vanhempi
commit
37d70a04a3
3 muutettua tiedostoa jossa 0 lisäystä ja 5 poistoa
  1. 0 1
      src/components/auth/auth.vue
  2. 0 1
      src/pages/login/code.vue
  3. 0 3
      src/pages/login/index.vue

+ 0 - 1
src/components/auth/auth.vue

@@ -85,7 +85,6 @@
 				my.getAuthCode ({
 					scopes : ['auth_user'],
 					success: (res) => {
-						console.log("res2",res);
 						$http.post('/api/v1/mp/user/aliAuth', {code: res.authCode}).then(res => {
 							_this.authIng = false
 							if (res.code === 0) {

+ 0 - 1
src/pages/login/code.vue

@@ -135,7 +135,6 @@
 					if (res.code == 0) {
 						uni.setStorageSync('userInfo', res.data)
 						// #ifdef MP-ALIPAY
-						console.log("111");
 						if (res.data.aliuserId) {
 							uni.$u.toast('登录成功');
 							setTimeout(() => {

+ 0 - 3
src/pages/login/index.vue

@@ -166,7 +166,6 @@
 				$http.post('/api/v1/mp/user/getLoginUserinfo', {}).then(res => {
 					uni.hideLoading();
 					if (res.code == 0) {
-						console.log(res);
 						uni.setStorageSync('userInfo', res.data)
 						if (res.data.openId) {
 							uni.$u.toast('登录成功');
@@ -187,7 +186,6 @@
 				$http.post('/api/v1/mp/user/getLoginUserinfo', {}).then(res => {
 					uni.hideLoading();
 					if (res.code == 0) {
-						console.log("11111",res);
 						uni.setStorageSync('userInfo', res.data)
 						if (res.data.aliuserId) {
 							uni.$u.toast('登录成功');
@@ -220,7 +218,6 @@
 							identity: 1,
 							noToken: true
 						}).then(res=>{
-							console.log("res",res);
 							if(res.code == 0){
 								uni.setStorageSync('token', res.token)
 								_this.getBaseInfoAli()