8627bf65 by simon

默认提交

1 parent e01783e1
...@@ -6,7 +6,7 @@ node_modules ...@@ -6,7 +6,7 @@ node_modules
6 .DS_Store 6 .DS_Store
7 sync.sh 7 sync.sh
8 git.sh 8 git.sh
9 /sandbox 9 # /sandbox
10 10
11 # local env files 11 # local env files
12 .env.local 12 .env.local
......
...@@ -67,13 +67,13 @@ export default { ...@@ -67,13 +67,13 @@ export default {
67 } 67 }
68 } catch (e) {} 68 } catch (e) {}
69 } 69 }
70 }, 70 },
71 initData(){ 71 initData() {
72 this.lang = this.$i18n.locale == "en" ? "en" : "zh"; 72 this.lang = this.$i18n.locale == "en" ? "en" : "zh";
73 } 73 }
74 }, 74 },
75 created() { 75 created() {
76 this.initData(); 76 this.initData();
77 this.refreshUA(); 77 this.refreshUA();
78 this.refreshProfile(); 78 this.refreshProfile();
79 this.$root.eventBus.$on("langChange", () => { 79 this.$root.eventBus.$on("langChange", () => {
...@@ -311,9 +311,13 @@ input::-webkit-search-cancel-button { ...@@ -311,9 +311,13 @@ input::-webkit-search-cancel-button {
311 opacity: 1; 311 opacity: 1;
312 } 312 }
313 313
314 ::-webkit-scrollbar { 314 // ::-webkit-scrollbar {
315 width: 0px; 315 // width: 0px;
316 height: 0px; 316 // height: 0px;
317 // display: none;
318 // }
319
320 .hide-scrollbar::-webkit-scrollbar {
317 display: none; 321 display: none;
318 } 322 }
319 323
......
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
94 try { 94 try {
95 iframe.height = 0; 95 iframe.height = 0;
96 iframe.style.height = "0px"; 96 iframe.style.height = "0px";
97 } catch (ex) { } 97 } catch (ex) {}
98 98
99 let _this = this; 99 let _this = this;
100 setTimeout(function () { 100 setTimeout(function () {
...@@ -125,7 +125,10 @@ export default { ...@@ -125,7 +125,10 @@ export default {
125 // }, 500); 125 // }, 500);
126 // } 126 // }
127 127
128 window.removeEventListener("message", function () { }); 128 // 隐藏滚动条
129 // document.getElementsByTagName("body")[0].className = "hide-scrollbar";
130
131 window.removeEventListener("message", function () {});
129 window.addEventListener('message', function (e) { 132 window.addEventListener('message', function (e) {
130 let height = e.data ? e.data.height : null; 133 let height = e.data ? e.data.height : null;
131 if (height) { 134 if (height) {
...@@ -133,9 +136,15 @@ export default { ...@@ -133,9 +136,15 @@ export default {
133 try { 136 try {
134 iframe.height = height; 137 iframe.height = height;
135 iframe.style.height = height + "px"; 138 iframe.style.height = height + "px";
136 } catch (ex) { } 139 } catch (ex) {}
137 } 140 }
138 }); 141 });
139 }, 142 },
140 created() { } 143 beforeDestroy() {
144 // 移除隐藏滚动条样式
145 // document.body.removeAttribute("class", "hide-scrollbar");
146 },
147 created() {
148
149 }
141 } 150 }
......