Commit 415af539 authored by linwenqing's avatar linwenqing

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

parent 917f9eec
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_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/'
argoDebugMode: 1,
version: 'v1.0.0',
......
const globalUrl = process.uniEnv || {}
const apiUrl = globalUrl.apiUrl
const apiUrlZBo = globalUrl.apiUrlZBo
const uCenterUrl = globalUrl.uCenterUrl
let userApiFun = function(vm) {
/* 更新学员信息 */
......@@ -31,7 +30,7 @@ let userApiFun = function(vm) {
await vm.$u.get(apiUrl + '/rest/certificate/national', 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 = {}) =>
await vm.$u.get(
......
......@@ -32,7 +32,7 @@
>
<view slot="right-icon">
<u-image
v-if="isupLoadCertPhoto"
v-if="headCertPhoto"
width="92rpx"
height="120rpx"
:src="headCertPhoto"
......@@ -100,13 +100,7 @@ export default {
'touxiang bianle',
this.student ? this.student.certificatePhotoPath : 'kong'
)
return (
(this.student && this.student.certificatePhotoPath) ||
process.uniEnv.qn_base_url + 'xitongtouxiang.png'
)
},
isupLoadCertPhoto() {
return (this.student && this.student.identityNumber) || false
return (this.student && this.student.certificatePhotoPath) || false
},
getMobile() {
return (
......@@ -135,7 +129,10 @@ export default {
})
this.$u.api.getUserInfo().then((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
})
},
......
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