Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
b57b9c9e
Commit
b57b9c9e
authored
Mar 04, 2020
by
Jennie Shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复上传文件bug
parent
5d89a83b
Pipeline
#5028
canceled with stages
Changes
14
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
88 additions
and
78 deletions
+88
-78
dev.env.js
config/dev.env.js
+3
-5
prod.env.js
config/prod.env.js
+1
-1
uat.env.js
config/uat.env.js
+5
-5
body-check.vue
src/pages/carConfirm/body-check.vue
+1
-0
confirm-detail.vue
src/pages/carConfirm/confirm-detail.vue
+13
-11
confirm-list.vue
src/pages/carConfirm/confirm-list.vue
+1
-0
body-check.vue
src/pages/contractSigning/body-check.vue
+1
-0
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+11
-11
contract-signing.vue
src/pages/contractSigning/contract-signing.vue
+1
-0
body-check.vue
src/pages/distributorSign/body-check.vue
+1
-0
contract-details.vue
src/pages/distributorSign/contract-details.vue
+11
-11
my-info.vue
src/pages/myInfo/my-info.vue
+1
-1
hlsUtil.js
src/scripts/hlsUtil.js
+37
-32
index.html
www/index.html
+1
-1
No files found.
config/dev.env.js
View file @
b57b9c9e
...
...
@@ -8,10 +8,10 @@ module.exports = merge(prodEnv, {
debug
:
true
,
isMobilePlatform
:
false
,
loginPath
:
'"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" '
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_
UAT
&apiName="'
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_
DEV
&apiName="'
,
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
UAT
&apiName=file_view&"'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_
UAT
&apiName="'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
DEV
&apiName=file_view&"'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_
DEV
&apiName="'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"1.9.0"'
,
...
...
@@ -19,5 +19,3 @@ module.exports = merge(prodEnv, {
config/prod.env.js
View file @
b57b9c9e
...
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://www.xcmgfs.com:8087/r/api"'
,
fileUploadSvcPath
:
'"http://www.xcmgfs.com:8087/r/api/app/fileUploadSvc?sysName=XCMG_PROD&apiName="'
,
appId
:
'"com.xcmg.app"'
,
currentVersion
:
'"0.0.
8
"'
currentVersion
:
'"0.0.
3
"'
}
config/uat.env.js
View file @
b57b9c9e
...
...
@@ -5,12 +5,12 @@ module.exports = {
debug
:
true
,
isMobilePlatform
:
true
,
loginPath
:
'"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" '
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_
UAT
&apiName="'
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_
PROD
&apiName="'
,
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
UAT
&apiName=file_view&"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
PROD
&apiName=file_view&"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_
UAT
&apiName="'
,
appId
:
'"com.xcmg.app"'
,
currentVersion
:
'"1.
7.9
"'
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_
PROD
&apiName="'
,
appId
:
'"com.xcmg.app
.dev
"'
,
currentVersion
:
'"1.
8.3
"'
}
src/pages/carConfirm/body-check.vue
View file @
b57b9c9e
...
...
@@ -76,6 +76,7 @@ export default {
file
:
''
,
sessionId
:
''
,
codeList
:
[],
videoListUpload
:
[],
showFlag
:
false
,
}
},
...
...
src/pages/carConfirm/confirm-detail.vue
View file @
b57b9c9e
...
...
@@ -189,6 +189,7 @@ export default {
num
:
null
,
downNum
:
false
,
attachArray
:
[],
faceListUpload
:
[],
show
:
false
,
flag
:
false
,
// 判断是否为已确认
vehicleImg
:
''
,
// 查询到的合格证
...
...
@@ -444,7 +445,7 @@ export default {
if
(
res
.
success
&&
res
.
result
.
result
.
score
)
{
vm
.
save_picture
(
vm
.
faceListUpload
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
//
if (identifyScore >= 50) {
if
(
identifyScore
>=
50
)
{
hlsPopup
.
showPopup
({
title
:
'提示'
,
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
...
...
@@ -453,9 +454,9 @@ export default {
vm
.
goBodyCheck
(
vm
.
confirm_id
)
},
})
//
} else {
//
hlsPopup.showLongCenter('比对失败,请保证和绑定时是同一个人')
//
}
}
else
{
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
}
else
{
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
...
...
@@ -505,6 +506,7 @@ export default {
}
if
(
!
list
[
i
].
attachment_id
)
{
attLength
++
// alert('list[i] = ' + list[i])
hlsUtil
.
fileUploadSvc
(
list
[
i
],
uploadSuccess
)
}
}
...
...
src/pages/carConfirm/confirm-list.vue
View file @
b57b9c9e
...
...
@@ -140,6 +140,7 @@ export default {
this
.
$refs
.
scroll
.
scrollToTop
()
},
changePage
(
e
)
{
debugger
this
.
$router
.
push
({
name
:
'ConfirmDetail'
,
params
:
{
...
...
src/pages/contractSigning/body-check.vue
View file @
b57b9c9e
...
...
@@ -76,6 +76,7 @@ export default {
file
:
''
,
sessionId
:
''
,
codeList
:
[],
videoListUpload
:
[],
showFlag
:
false
,
}
},
...
...
src/pages/contractSigning/contract-detail.vue
View file @
b57b9c9e
...
...
@@ -702,7 +702,7 @@ export default {
if
(
res
.
success
&&
res
.
result
.
result
.
score
)
{
vm
.
save_picture
(
vm
.
faceListUpload
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
//
if (identifyScore > 50) {
if
(
identifyScore
>
50
)
{
hlsPopup
.
showPopup
({
title
:
'提示'
,
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
...
...
@@ -711,9 +711,9 @@ export default {
vm
.
goBodyCheck
(
vm
.
confirm_id
)
},
})
//
} else {
//
hlsPopup.showLongCenter('比对失败,请保证和绑定时是同一个人')
//
}
}
else
{
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
}
else
{
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
...
...
src/pages/contractSigning/contract-signing.vue
View file @
b57b9c9e
...
...
@@ -335,6 +335,7 @@ export default {
},
goDetails
(
item
)
{
debugger
this
.
$router
.
push
({
name
:
'ContractDetail'
,
params
:
{
...
...
src/pages/distributorSign/body-check.vue
View file @
b57b9c9e
...
...
@@ -76,6 +76,7 @@ export default {
file
:
''
,
sessionId
:
''
,
codeList
:
[],
videoListUpload
:
[],
showFlag
:
false
,
}
},
...
...
src/pages/distributorSign/contract-details.vue
View file @
b57b9c9e
...
...
@@ -521,7 +521,7 @@ export default {
if
(
res
.
success
&&
res
.
result
.
result
.
score
)
{
vm
.
save_picture
(
vm
.
faceListUpload
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
//
if (identifyScore >= 50) {
if
(
identifyScore
>=
50
)
{
vm
.
hlsPopup
.
showPopup
({
title
:
'提示'
,
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
...
...
@@ -530,9 +530,9 @@ export default {
vm
.
goBodyCheck
()
},
})
//
} else {
//
vm.hlsPopup.showLongCenter('比对失败,请保证和绑定时是同一个人')
//
}
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
...
...
src/pages/myInfo/my-info.vue
View file @
b57b9c9e
...
...
@@ -971,7 +971,7 @@ export default {
let
vm
=
this
if
(
vm
.
bp_id
)
{
if
(
vm
.
bp_identity
===
'NP_NO'
||
vm
.
bp_identity
===
'ORG_L_NO'
)
{
let
authUrl
=
await
vm
.
getNpCertificationUrl
(
)
let
authUrl
=
hlsUtil
.
convertImageUrl
(
await
vm
.
getNpCertificationUrl
()
)
if
(
authUrl
)
{
const
u
=
navigator
.
userAgent
const
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
)
...
...
src/scripts/hlsUtil.js
View file @
b57b9c9e
...
...
@@ -398,6 +398,7 @@ export default {
* @param success
*/
fileUploadSvc
:
function
(
file
,
success
)
{
if
(
file
.
pkvalue
&&
file
.
source_type
){
let
path
=
file
.
filePath
var
name
=
path
.
substr
(
path
.
lastIndexOf
(
'/'
)
+
1
)
let
url
=
encodeURI
(
process
.
env
.
fileUploadSvcPath
+
'attachment_upload'
)
...
...
@@ -433,6 +434,10 @@ export default {
}
ft
.
upload
(
path
,
url
,
uploadSuccess
,
fileError
,
options
)
}
else
{
hlsPopup
.
showLongCenter
(
'上传失败!'
)
}
},
/**
* 汉王识别
...
...
www/index.html
View file @
b57b9c9e
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
./cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"
></script><title>
徐工金服
</title><link
href=
./static/css/app.3e4289c3a03bc2b076ec4d914dfb4bba.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.6a178e8d77c32e3c385d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.d56dec0015f4cf7e8b3b.js
></script><script
type=
text/javascript
src=
./static/js/app.da2cdd7ca6ffd4a9106e.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
./cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"
></script><title>
徐工金服
</title><link
href=
./static/css/app.4df5bfd4df456db4bc580b0772f120e7.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.6a178e8d77c32e3c385d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.adf9b230a1046c0fc990.js
></script><script
type=
text/javascript
src=
./static/js/app.b1b90efe22b1d77d9c11.js
></script></body></html>
\ No newline at end of file
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