Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
33df47e3
authored
May 08, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
d9cbc66b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
src/assets/js/setBarHeight.js
src/views/Bill/index.vue
src/assets/js/setBarHeight.js
View file @
33df47e3
const
setBarHeight
=
{
const
setBarHeight
=
{
mounted
()
{
mounted
()
{
try
{
window
.
WebViewJavascriptBridge
.
callHandler
(
"getBarHeight"
,
null
,
function
(
response
)
{
console
.
log
(
"getBarHeight来自 ios/android的回传数据: "
,
response
);
if
(
response
)
{
const
barHeight
=
response
.
statusBarHeight
;
const
conHeight
=
46
+
barHeight
;
document
.
getElementsByClassName
(
"iosStyle"
)[
0
]
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
document
.
getElementsByClassName
(
"container"
)[
0
]
.
setAttribute
(
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
);
}
}
);
}
catch
(
err
)
{
console
.
log
(
"getBarHeight is error"
);
}
}
}
}
}
...
...
src/views/Bill/index.vue
View file @
33df47e3
...
@@ -445,7 +445,7 @@ export default {
...
@@ -445,7 +445,7 @@ export default {
}
}
);
);
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
"getBarHeight is error,err="
,
err
);
console
.
log
(
"getBarHeight is error,err="
,
err
);
}
}
},
},
closeWebView
()
{
closeWebView
()
{
...
@@ -466,12 +466,11 @@ export default {
...
@@ -466,12 +466,11 @@ export default {
}
}
},
},
async
mounted
()
{
async
mounted
()
{
this
.
getBarHeight
();
this
.
setPageNavState
();
this
.
setPageNavState
();
this
.
getBarHeight
();
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
await
this
.
loadPeriodData
();
await
this
.
loadPeriodData
();
this
.
payUrl
=
await
this
.
loadPayUrl
();
this
.
payUrl
=
await
this
.
loadPayUrl
();
}
}
};
};
</
script
>
</
script
>
...
...
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