Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
415af539
Commit
415af539
authored
Jul 28, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor:识别身份证接口地址修改,开发环境ip修改为22
parent
917f9eec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
+9
-13
.env.dev.js
.env.dev.js
+2
-2
user.js
src/api/user.js
+1
-2
info.vue
src/pages/mine/info.vue
+6
-9
No files found.
.env.dev.js
View file @
415af539
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
:
'http
s://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'
,
...
...
src/api/user.js
View file @
415af539
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
(
apiUrl
ZBo
+
'/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
(
...
...
src/pages/mine/info.vue
View file @
415af539
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
>
>
<view
slot=
"right-icon"
>
<view
slot=
"right-icon"
>
<u-image
<u-image
v-if=
"
isupLo
adCertPhoto"
v-if=
"
he
adCertPhoto"
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
})
})
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment