Commit af812148 by 展昭

update

parent 2e2fbe21
...@@ -8,14 +8,14 @@ i { ...@@ -8,14 +8,14 @@ i {
font-style: normal; font-style: normal;
} }
.iosStyle { .iosStyle {
background-color: #077AEC; background-color: #0978e7;
} }
.container { .container {
padding-top: 46px; padding-top: 46px;
} }
/*未扣费*/ /*未扣费*/
.no_bill { .no_bill {
color: #077AEC; color: #0978e7;
} }
.mt0 { .mt0 {
margin-top: 0 !important; margin-top: 0 !important;
......
...@@ -66,7 +66,7 @@ Vue.prototype.setPageNavState = function () { ...@@ -66,7 +66,7 @@ Vue.prototype.setPageNavState = function () {
window.WebViewJavascriptBridge.callHandler( window.WebViewJavascriptBridge.callHandler(
"setBarColor", "setBarColor",
{ "barColor": "#077aec" }, { "barColor": "#0978e7" },
function (response) { function (response) {
console.log("main setBarColor的回传数据:", response); console.log("main setBarColor的回传数据:", response);
} }
......
...@@ -418,18 +418,27 @@ export default { ...@@ -418,18 +418,27 @@ export default {
} }
}, },
setBarHeight() { setBarHeight() {
setTimeout(() => {
const barHeight = localStorage.getItem("barHeight"); const barHeight = localStorage.getItem("barHeight");
console.log("bill barHeight=", barHeight);
const conHeight = 46 + parseInt(barHeight); const conHeight = 46 + parseInt(barHeight);
console.log("bill conHeight=", conHeight); console.log("bill conHeight=", conHeight);
const dom = document.getElementsByClassName("iosStyle")[0]; const dom = document.getElementsByClassName("iosStyle")[0];
if (dom) { if (dom) {
dom.setAttribute("style", "padding-top:" + barHeight + "px !important"); dom.setAttribute(
"style",
"padding-top:" + barHeight + "px !important"
);
} }
const dom2 = document.getElementsByClassName("container")[0]; const dom2 = document.getElementsByClassName("container")[0];
if (dom2) { if (dom2) {
dom2.setAttribute("style","padding-top:" + conHeight + "px !important"); dom2.setAttribute(
"style",
"padding-top:" + conHeight + "px !important"
);
} }
}, 200);
}, },
closeWebView() { closeWebView() {
try { try {
......
...@@ -46,6 +46,7 @@ export default { ...@@ -46,6 +46,7 @@ export default {
res => { res => {
console.log("res=", res); console.log("res=", res);
if (res.status == 200) { if (res.status == 200) {
const accessToken = res.data.access_token; const accessToken = res.data.access_token;
//store.dispatch("changeToken", accessToken); //store.dispatch("changeToken", accessToken);
localStorage.setItem("token", accessToken); localStorage.setItem("token", accessToken);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment