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
af812148
authored
May 09, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
2e2fbe21
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
14 deletions
src/assets/css/index.css
src/main.js
src/views/Bill/index.vue
src/views/OidcCallback.vue
src/assets/css/index.css
View file @
af812148
...
...
@@ -8,14 +8,14 @@ i {
font-style
:
normal
;
}
.iosStyle
{
background-color
:
#0
77AEC
;
background-color
:
#0
978e7
;
}
.container
{
padding-top
:
46px
;
}
/*未扣费*/
.no_bill
{
color
:
#0
77AEC
;
color
:
#0
978e7
;
}
.mt0
{
margin-top
:
0
!important
;
...
...
src/main.js
View file @
af812148
...
...
@@ -66,7 +66,7 @@ Vue.prototype.setPageNavState = function () {
window
.
WebViewJavascriptBridge
.
callHandler
(
"setBarColor"
,
{
"barColor"
:
"#0
77aec
"
},
{
"barColor"
:
"#0
978e7
"
},
function
(
response
)
{
console
.
log
(
"main setBarColor的回传数据:"
,
response
);
}
...
...
src/views/Bill/index.vue
View file @
af812148
...
...
@@ -418,18 +418,27 @@ export default {
}
},
setBarHeight
()
{
const
barHeight
=
localStorage
.
getItem
(
"barHeight"
);
const
conHeight
=
46
+
parseInt
(
barHeight
);
console
.
log
(
"bill conHeight="
,
conHeight
);
const
dom
=
document
.
getElementsByClassName
(
"iosStyle"
)[
0
];
if
(
dom
)
{
dom
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
}
setTimeout
(()
=>
{
const
barHeight
=
localStorage
.
getItem
(
"barHeight"
);
console
.
log
(
"bill barHeight="
,
barHeight
);
const
conHeight
=
46
+
parseInt
(
barHeight
);
console
.
log
(
"bill conHeight="
,
conHeight
);
const
dom
=
document
.
getElementsByClassName
(
"iosStyle"
)[
0
];
if
(
dom
)
{
dom
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
}
const
dom2
=
document
.
getElementsByClassName
(
"container"
)[
0
];
if
(
dom2
)
{
dom2
.
setAttribute
(
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
);
}
const
dom2
=
document
.
getElementsByClassName
(
"container"
)[
0
];
if
(
dom2
)
{
dom2
.
setAttribute
(
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
);
}
},
200
);
},
closeWebView
()
{
try
{
...
...
src/views/OidcCallback.vue
View file @
af812148
...
...
@@ -46,6 +46,7 @@ export default {
res
=>
{
console
.
log
(
"res="
,
res
);
if
(
res
.
status
==
200
)
{
const
accessToken
=
res
.
data
.
access_token
;
//store.dispatch("changeToken", accessToken);
localStorage
.
setItem
(
"token"
,
accessToken
);
...
...
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