Commit 8f1e5590 by 展昭

tj

parent eb15652f
Showing with 15 additions and 3 deletions
...@@ -160,7 +160,6 @@ import { TabHeader } from "@/components"; ...@@ -160,7 +160,6 @@ import { TabHeader } from "@/components";
import * as utils from "../../utils/common"; import * as utils from "../../utils/common";
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from "vuex";
import initJsBridge from "../../assets/js/JsBridge"; import initJsBridge from "../../assets/js/JsBridge";
import setBarHeight from "../../assets/js/setBarHeight.js";
import dayjs from "dayjs"; import dayjs from "dayjs";
export default { export default {
...@@ -168,7 +167,6 @@ export default { ...@@ -168,7 +167,6 @@ export default {
[Icon.name]: Icon, [Icon.name]: Icon,
TabHeader TabHeader
}, },
mixins: [setBarHeight],
data() { data() {
return { return {
title: "人事服务", title: "人事服务",
...@@ -419,6 +417,20 @@ export default { ...@@ -419,6 +417,20 @@ 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");
}
const dom2 = document.getElementsByClassName("container")[0];
if (dom2) {
dom2.setAttribute("style","padding-top:" + conHeight + "px !important");
}
},
closeWebView() { closeWebView() {
try { try {
window.WebViewJavascriptBridge.callHandler( window.WebViewJavascriptBridge.callHandler(
...@@ -438,7 +450,7 @@ export default { ...@@ -438,7 +450,7 @@ export default {
}, },
async mounted() { async mounted() {
this.setPageNavState(); this.setPageNavState();
this.setBarHeight();
this.globalNavLeftArrowClick(this.navLeftArrowClick); this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.loadPeriodData(); await this.loadPeriodData();
this.payUrl = await this.loadPayUrl(); this.payUrl = await this.loadPayUrl();
......
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