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

2
dist/app.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -34,10 +34,6 @@
/*! react-dom */
/*!*******************!*\
!*** ./config.js ***!
\*******************/
/*!********************!*\
!*** ./src/app.ts ***!
\********************/

2
dist/common.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,5 @@
/*! ../../config */
/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */
@@ -24,6 +26,10 @@
/*! react/jsx-runtime */
/*!*******************!*\
!*** ./config.js ***!
\*******************/
/*!****************************!*\
!*** ./src/utils/index.ts ***!
\****************************/

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;
}
}
}
},