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
61d4dfe0
authored
May 09, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
tj
parent
cf7f0fa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
src/main.js
src/views/Bill/index.vue
src/main.js
View file @
61d4dfe0
...
...
@@ -46,20 +46,6 @@ Vue.prototype.setPageNavState = function () {
console
.
log
(
"setPageNavState来自 ios/android的回传数据: "
,
response
);
}
);
window
.
WebViewJavascriptBridge
.
callHandler
(
"getBarHeight"
,
null
,
function
(
response
)
{
console
.
log
(
"main getBarHeight来自 ios/android的回传数据: "
,
response
);
if
(
response
)
{
response
=
JSON
.
parse
(
response
);
const
barHeight
=
response
.
statusBarHeight
;
console
.
log
(
'barHeight='
,
barHeight
);
localStorage
.
setItem
(
'barHeight'
,
barHeight
);
}
}
);
});
}
catch
(
err
)
{
console
.
log
(
"main setPageNavState is error,err="
,
err
);
...
...
src/views/Bill/index.vue
View file @
61d4dfe0
...
...
@@ -419,16 +419,31 @@ export default {
}
},
setBarHeight
()
{
const
barHeight
=
localStorage
.
getItem
(
"barHeight"
);
const
conHeight
=
46
+
barHeight
;
console
.
log
(
"mixins barHeight="
,
barHeight
);
document
.
getElementsByClassName
(
"iosStyle"
)[
0
]
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
window
.
WebViewJavascriptBridge
.
callHandler
(
"getBarHeight"
,
null
,
function
(
response
)
{
console
.
log
(
"billindex getBarHeight来自 ios/android的回传数据: "
,
response
);
if
(
response
)
{
response
=
JSON
.
parse
(
response
);
const
barHeight
=
response
.
statusBarHeight
;
localStorage
.
setItem
(
"barHeight"
,
barHeight
);
const
conHeight
=
46
+
barHeight
;
console
.
log
(
"billindex barHeight="
,
barHeight
);
document
.
getElementsByClassName
(
"iosStyle"
)[
0
]
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
document
.
getElementsByClassName
(
"container"
)[
0
]
.
setAttribute
(
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
);
document
.
getElementsByClassName
(
"container"
)[
0
]
.
setAttribute
(
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
);
}
});
},
closeWebView
()
{
try
{
...
...
@@ -453,7 +468,6 @@ export default {
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
await
this
.
loadPeriodData
();
this
.
payUrl
=
await
this
.
loadPayUrl
();
console
.
log
(
"mounted barHeight="
,
barHeight
);
}
};
</
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