...
|
...
|
@@ -170,7 +170,7 @@ class App extends Component { |
|
|
console.log(error);
|
|
|
});
|
|
|
|
|
|
event.on('user-is-login', (loginedCallBack, loginSuccess) => {
|
|
|
event.one('user-is-login', (loginedCallBack, loginSuccess) => {
|
|
|
let userInfo = Taro.getStorageSync('userInfo');
|
|
|
if (userInfo && userInfo.uid) {
|
|
|
checkUidAndSessionKey(userInfo.uid, userInfo.session_key).then(result => {
|
...
|
...
|
@@ -183,7 +183,9 @@ class App extends Component { |
|
|
} else {
|
|
|
event.one('my-user-login-success', () => {
|
|
|
if (loginSuccess) {
|
|
|
loginSuccess();
|
|
|
setTimeout(() => {
|
|
|
loginSuccess();
|
|
|
}, 1000);
|
|
|
}
|
|
|
})
|
|
|
Taro.navigateTo({
|
...
|
...
|
@@ -207,7 +209,9 @@ class App extends Component { |
|
|
} else {
|
|
|
event.one('my-user-login-success', () => {
|
|
|
if (loginSuccess) {
|
|
|
loginSuccess();
|
|
|
setTimeout(() => {
|
|
|
loginSuccess();
|
|
|
}, 1000);
|
|
|
}
|
|
|
})
|
|
|
Taro.navigateTo({
|
...
|
...
|
@@ -223,7 +227,9 @@ class App extends Component { |
|
|
} else {
|
|
|
event.one('my-user-login-success', () => {
|
|
|
if (loginSuccess) {
|
|
|
loginSuccess();
|
|
|
setTimeout(() => {
|
|
|
loginSuccess();
|
|
|
}, 1000);
|
|
|
}
|
|
|
})
|
|
|
Taro.navigateTo({
|
...
|
...
|
@@ -241,7 +247,9 @@ class App extends Component { |
|
|
} else {
|
|
|
event.one('my-user-login-success', () => {
|
|
|
if (loginSuccess) {
|
|
|
loginSuccess();
|
|
|
setTimeout(() => {
|
|
|
loginSuccess();
|
|
|
}, 1000);
|
|
|
}
|
|
|
})
|
|
|
Taro.navigateTo({
|
...
|
...
|
@@ -252,7 +260,9 @@ class App extends Component { |
|
|
} else {
|
|
|
event.one('my-user-login-success', () => {
|
|
|
if (loginSuccess) {
|
|
|
loginSuccess();
|
|
|
setTimeout(() => {
|
|
|
loginSuccess();
|
|
|
}, 1000);
|
|
|
}
|
|
|
})
|
|
|
Taro.navigateTo({
|
...
|
...
|
@@ -261,7 +271,7 @@ class App extends Component { |
|
|
}
|
|
|
});
|
|
|
|
|
|
event.on('judge-user-is-login', (isLogined, isLoginCallback) => {
|
|
|
event.one('judge-user-is-login', (isLogined, isLoginCallback) => {
|
|
|
let userInfo = Taro.getStorageSync('userInfo');
|
|
|
if (userInfo && userInfo.uid) {
|
|
|
checkUidAndSessionKey(userInfo.uid, userInfo.session_key).then(result => {
|
...
|
...
|
|