人脸识别

This commit is contained in:
Your Name
2023-10-07 16:19:18 +08:00
parent 61bf1f5b61
commit 1702d6dd85
16 changed files with 456 additions and 388 deletions
+39 -34
View File
@@ -1,38 +1,43 @@
<script>
import config from './config'
import store from '@/store'
import { getToken } from '@/utils/auth'
import { initEid,startEid } from './mp_ecard_sdk/main';
export default {
globalData:{
requestUrl:'http://121.40.189.20:9001',
},
onLaunch: function() {
this.initApp();
initEid();
},
methods: {
// 初始化应用
initApp() {
// 初始化应用配置
this.initConfig()
// 检查用户登录状态
//#ifdef H5
this.checkLogin()
//#endif
},
initConfig() {
this.globalData.config = config
},
checkLogin() {
if (!getToken()) {
this.$tab.reLaunch('/pages/login')
}
}
}
}
import config from './config'
import store from '@/store'
import {
getToken
} from '@/utils/auth'
import {
initEid
} from './mp_ecard_sdk/main';
export default {
globalData: {
requestUrl: 'https://www.api.xayunmei.com/API',
},
onLaunch: function() {
this.initApp();
initEid();
uni.setStorageSync('certificationStatus', '未认证')
},
methods: {
// 初始化应用
initApp() {
// 初始化应用配置
this.initConfig()
// 检查用户登录状态
//#ifdef H5
this.checkLogin()
//#endif
},
initConfig() {
this.globalData.config = config
},
checkLogin() {
if (!getToken()) {
this.$tab.reLaunch('/pages/login')
}
}
}
}
</script>
<style lang="scss">
@import '@/static/scss/index.scss'
</style>
@import '@/static/scss/index.scss'
</style>