feat: 个人app登录校验[不需要手机号]

This commit is contained in:
huxiaoshuang
2022-11-23 16:29:24 +08:00
parent 13aca07785
commit 6f0ae57c14
5 changed files with 17 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
import { Toast } from "@antmjs/vantui";
import Taro from "@tarojs/taro";
import { getCurrentInstance } from "@tarojs/taro";
import {type} from '../../config'
// 数据库环境
// const db: any = Taro.cloud.database({
@@ -211,8 +212,14 @@ export const phoneLogin = async () => {
resolve(true)
return true;
} else {
resolve(false)
return false;
if(type==='people'){
resolve(true)
return true;
}else{
resolve(false)
return false;
}
}
}
},