Commit 415af539 authored by linwenqing's avatar linwenqing

refactor:识别身份证接口地址修改,开发环境ip修改为22

parent 917f9eec
const UNI_APP = { const UNI_APP = {
apiUrl: 'http://192.168.0.204:8760', apiUrl: 'http://192.168.1.22:8760',
qn_base_url: 'https://qn-static.banshouhui.com/study/', qn_base_url: 'https://qn-static.banshouhui.com/study/',
qn_asset_url: 'http://deudn.c.pp.cc/', qn_asset_url: 'https://img2.banshouhui.com/',
uCenterUrl: 'http://192.168.0.5:8093/', //'http://rest-u.yunya.com/' uCenterUrl: 'http://192.168.0.5:8093/', //'http://rest-u.yunya.com/'
argoDebugMode: 1, argoDebugMode: 1,
version: 'v1.0.0', version: 'v1.0.0',
......
const globalUrl = process.uniEnv || {} const globalUrl = process.uniEnv || {}
const apiUrl = globalUrl.apiUrl const apiUrl = globalUrl.apiUrl
const apiUrlZBo = globalUrl.apiUrlZBo
const uCenterUrl = globalUrl.uCenterUrl const uCenterUrl = globalUrl.uCenterUrl
let userApiFun = function(vm) { let userApiFun = function(vm) {
/* 更新学员信息 */ /* 更新学员信息 */
...@@ -31,7 +30,7 @@ let userApiFun = function(vm) { ...@@ -31,7 +30,7 @@ let userApiFun = function(vm) {
await vm.$u.get(apiUrl + '/rest/certificate/national', params) await vm.$u.get(apiUrl + '/rest/certificate/national', params)
//身份证识别 //身份证识别
let getCertifyInfoByType = async (type, params = {}) => let getCertifyInfoByType = async (type, params = {}) =>
await vm.$u.get(apiUrlZBo + '/student/get/idCard/' + type, params) await vm.$u.get(apiUrl + '/student/get/idCard/' + type, params)
//获取学员题库列表 //获取学员题库列表
let getUserQuestionWareHouse = async (params = {}) => let getUserQuestionWareHouse = async (params = {}) =>
await vm.$u.get( await vm.$u.get(
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
> >
<view slot="right-icon"> <view slot="right-icon">
<u-image <u-image
v-if="isupLoadCertPhoto" v-if="headCertPhoto"
width="92rpx" width="92rpx"
height="120rpx" height="120rpx"
:src="headCertPhoto" :src="headCertPhoto"
...@@ -100,13 +100,7 @@ export default { ...@@ -100,13 +100,7 @@ export default {
'touxiang bianle', 'touxiang bianle',
this.student ? this.student.certificatePhotoPath : 'kong' this.student ? this.student.certificatePhotoPath : 'kong'
) )
return ( return (this.student && this.student.certificatePhotoPath) || false
(this.student && this.student.certificatePhotoPath) ||
process.uniEnv.qn_base_url + 'xitongtouxiang.png'
)
},
isupLoadCertPhoto() {
return (this.student && this.student.identityNumber) || false
}, },
getMobile() { getMobile() {
return ( return (
...@@ -135,7 +129,10 @@ export default { ...@@ -135,7 +129,10 @@ export default {
}) })
this.$u.api.getUserInfo().then((res) => { this.$u.api.getUserInfo().then((res) => {
console.log('huoqu userinfo', res) console.log('huoqu userinfo', res)
res.isCertify = res && res.identityNumber.length > 5 ? true : false res.isCertify =
res && res.identityNumber && res.identityNumber.length > 5
? true
: false
this.student = res this.student = res
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment