feat: 个人app登录校验[不需要手机号]
This commit is contained in:
2
dist/app.js
vendored
2
dist/app.js
vendored
File diff suppressed because one or more lines are too long
4
dist/app.js.LICENSE.txt
vendored
4
dist/app.js.LICENSE.txt
vendored
@@ -34,10 +34,6 @@
|
||||
|
||||
/*! react-dom */
|
||||
|
||||
/*!*******************!*\
|
||||
!*** ./config.js ***!
|
||||
\*******************/
|
||||
|
||||
/*!********************!*\
|
||||
!*** ./src/app.ts ***!
|
||||
\********************/
|
||||
|
||||
2
dist/common.js
vendored
2
dist/common.js
vendored
File diff suppressed because one or more lines are too long
6
dist/common.js.LICENSE.txt
vendored
6
dist/common.js.LICENSE.txt
vendored
@@ -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 ***!
|
||||
\****************************/
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user