Commit f1f818db by 展昭

tj

parent 87661af2
Showing with 2 additions and 4 deletions
...@@ -53,13 +53,11 @@ ...@@ -53,13 +53,11 @@
import { NavBar, Icon } from "vant"; import { NavBar, Icon } from "vant";
import { TabHeader } from "@/components"; import { TabHeader } from "@/components";
import { mapActions } from "vuex"; import { mapActions } from "vuex";
//import setBarHeight from "../../assets/js/setBarHeight.js";
export default { export default {
components: { components: {
[Icon.name]: Icon, [Icon.name]: Icon,
TabHeader TabHeader
}, },
//mixins: [setBarHeight],
data() { data() {
return { return {
title: "", title: "",
...@@ -118,7 +116,7 @@ export default { ...@@ -118,7 +116,7 @@ export default {
setBarHeight() { setBarHeight() {
const barHeight = localStorage.getItem("barHeight"); const barHeight = localStorage.getItem("barHeight");
const conHeight = 46 + barHeight; const conHeight = 46 + barHeight;
console.log("mixins barHeight=", barHeight); console.log("setBarHeight barHeight=", barHeight);
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");
...@@ -140,7 +138,7 @@ export default { ...@@ -140,7 +138,7 @@ export default {
this.setPageNavState(); this.setPageNavState();
this.setBarHeight(); this.setBarHeight();
this.globalNavLeftArrowClick(this.navLeftArrowClick); this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.getData(); //await this.getData();
//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