提交 ec2acb20 authored 作者: huaxinzhu's avatar huaxinzhu

冗余代码删除

上级 05934abe
...@@ -415,9 +415,6 @@ ...@@ -415,9 +415,6 @@
// htmlNode.style.fontSize = 32 + 'px' // htmlNode.style.fontSize = 32 + 'px'
// } // }
htmlNode.style.fontSize = w / 750 * 50 * 2 + 'px' htmlNode.style.fontSize = w / 750 * 50 * 2 + 'px'
console.log("根html字体大小:", w, htmlNode.style.fontSize);
} else {
console.log("说明当前屏幕宽度大于960", w);
} }
})(); })();
...@@ -438,6 +435,7 @@ ...@@ -438,6 +435,7 @@
] ]
} }
}, },
watch: {},
data() { data() {
let _this = this; let _this = this;
return { return {
...@@ -634,13 +632,11 @@ ...@@ -634,13 +632,11 @@
let isPc = this.IsPc() let isPc = this.IsPc()
/** 动态获取 sso配置域名 */ /** 动态获取 sso配置域名 */
this.getssourl(); this.getssourl();
// console.log(111,isPc);
// console.log(222,navigator.userAgent); // console.log(222,navigator.userAgent);
}, },
mounted() { mounted() {
this.getIndexInfo() this.getIndexInfo()
window.addEventListener('scroll', this.handleScroll, true); window.addEventListener('scroll', this.handleScroll, true);
// console.log(333,window.devicePixelRatio);
}, },
destroyed() { destroyed() {
window.removeEventListener('scroll', this.handleScroll); window.removeEventListener('scroll', this.handleScroll);
...@@ -663,7 +659,6 @@ ...@@ -663,7 +659,6 @@
IsPc() { IsPc() {
let userAgent = navigator.userAgent let userAgent = navigator.userAgent
let Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; let Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
console.log('userAgent:', userAgent)
return Agents.some((i) => { return Agents.some((i) => {
return userAgent.includes(i) return userAgent.includes(i)
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论