|
@@ -138,7 +138,6 @@ Component(
|
|
|
|
|
|
if (id === 1) {
|
|
if (id === 1) {
|
|
const { userInfo } = this.data; // 判断用户是否已经登陆
|
|
const { userInfo } = this.data; // 判断用户是否已经登陆
|
|
-
|
|
|
|
if (userInfo.isLogin) {
|
|
if (userInfo.isLogin) {
|
|
isAuthSuccess = true;
|
|
isAuthSuccess = true;
|
|
} else {
|
|
} else {
|
|
@@ -147,6 +146,10 @@ Component(
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ isAuthSuccess = await doLogin.call(this, {
|
|
|
|
+ scopes: "auth_user",
|
|
|
|
+ });
|
|
|
|
+
|
|
if (isAuthSuccess) {
|
|
if (isAuthSuccess) {
|
|
const {
|
|
const {
|
|
phone,
|
|
phone,
|