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
0e97354a
Commit
0e97354a
authored
Jan 06, 2022
by
胡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ios身份证拍照后读取不到的bug
parent
5097b2d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
uat.env.js
config/uat.env.js
+1
-1
hlsUtil.js
src/scripts/hlsUtil.js
+15
-1
No files found.
config/uat.env.js
View file @
0e97354a
...
...
@@ -11,5 +11,5 @@ module.exports = {
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.dev"'
,
currentVersion
:
'"3.5.
0
"'
currentVersion
:
'"3.5.
2
"'
}
src/scripts/hlsUtil.js
View file @
0e97354a
...
...
@@ -313,10 +313,24 @@ export default {
if
(
vum
.
Platform
.
isAndroid
()){
return
url
}
else
if
(
vum
.
Platform
.
isIOS
()){
return
window
.
Ionic
.
WebView
.
convertFileSrc
(
url
)
return
this
.
convertFileSrc
(
url
)
}
},
convertFileSrc
:
function
(
url
)
{
if
(
!
url
)
{
return
url
;
}
if
(
url
.
startsWith
(
'/'
))
{
return
'http://localhost:8080'
+
''
+
url
;
}
if
(
url
.
startsWith
(
'file://'
))
{
return
'http://localhost:8080'
+
url
.
replace
(
'file://'
,
''
);
}
return
url
;
},
/**
* 录制视频
*/
...
...
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