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 */
|
/*! react-dom */
|
||||||
|
|
||||||
/*!*******************!*\
|
|
||||||
!*** ./config.js ***!
|
|
||||||
\*******************/
|
|
||||||
|
|
||||||
/*!********************!*\
|
/*!********************!*\
|
||||||
!*** ./src/app.ts ***!
|
!*** ./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/asyncToGenerator.js */
|
||||||
|
|
||||||
/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */
|
/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */
|
||||||
@@ -24,6 +26,10 @@
|
|||||||
|
|
||||||
/*! react/jsx-runtime */
|
/*! react/jsx-runtime */
|
||||||
|
|
||||||
|
/*!*******************!*\
|
||||||
|
!*** ./config.js ***!
|
||||||
|
\*******************/
|
||||||
|
|
||||||
/*!****************************!*\
|
/*!****************************!*\
|
||||||
!*** ./src/utils/index.ts ***!
|
!*** ./src/utils/index.ts ***!
|
||||||
\****************************/
|
\****************************/
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Toast } from "@antmjs/vantui";
|
import { Toast } from "@antmjs/vantui";
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import { getCurrentInstance } from "@tarojs/taro";
|
import { getCurrentInstance } from "@tarojs/taro";
|
||||||
|
import {type} from '../../config'
|
||||||
|
|
||||||
// 数据库环境
|
// 数据库环境
|
||||||
// const db: any = Taro.cloud.database({
|
// const db: any = Taro.cloud.database({
|
||||||
@@ -211,8 +212,14 @@ export const phoneLogin = async () => {
|
|||||||
resolve(true)
|
resolve(true)
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
resolve(false)
|
if(type==='people'){
|
||||||
return false;
|
resolve(true)
|
||||||
|
return true;
|
||||||
|
}else{
|
||||||
|
resolve(false)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user