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
219993a9
Commit
219993a9
authored
Jan 07, 2022
by
胡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ios上InAppBrowser状态刷新问题
parent
836d5e68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
uat.env.js
config/uat.env.js
+1
-1
batchSign.vue
src/pages/carConfirm/batchSign.vue
+11
-5
No files found.
config/uat.env.js
View file @
219993a9
...
...
@@ -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
:
'"0.5.
6
"'
currentVersion
:
'"0.5.
8
"'
}
src/pages/carConfirm/batchSign.vue
View file @
219993a9
...
...
@@ -49,11 +49,17 @@ export default {
checkList
:
[],
// 需要进行签署的合同
faceListUpload
:
[],
eventListener
:
null
,
// 事件监听
}
},
created
()
{
this
.
checkSigned
();
},
beforeDestroy
()
{
// 去除事件监听(ios独有)
if
(
this
.
eventListener
)
this
.
eventListener
.
removeEventListener
(
'exit'
);
},
methods
:
{
// 检测已经签署的合同,进行过滤
async
checkSigned
()
{
...
...
@@ -140,11 +146,11 @@ export default {
this
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
==
'S'
&&
res
.
info
.
msg
===
'success'
)
{
//
this.$router.push({
// name: 'ElectronicSign',
// params: { url: res.info.data.url },
// })
cordova
.
InAppBrowser
.
open
(
res
.
info
.
data
.
url
,
'_blank'
,
'location=yes'
)
//
监听 InAppBrowser 关闭
this
.
eventListener
=
cordova
.
InAppBrowser
.
open
(
res
.
info
.
data
.
url
,
'_blank'
,
'location=yes'
);
this
.
eventListener
.
addEventListener
(
'exit'
,
()
=>
{
this
.
checkSigned
();
});
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
||
res
.
info
.
msg
)
}
...
...
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