|
@@ -226,11 +226,13 @@
|
|
//如果为Android
|
|
//如果为Android
|
|
const ch = (20 * clientWidth) / (clientheight + 122)
|
|
const ch = (20 * clientWidth) / (clientheight + 122)
|
|
console.log("长和宽", clientWidth, clientheight)
|
|
console.log("长和宽", clientWidth, clientheight)
|
|
|
|
+ $('.swiper-slide').css("padding", `20% ${ch}%`)
|
|
}
|
|
}
|
|
if (isiOS) {
|
|
if (isiOS) {
|
|
//如果为iOS
|
|
//如果为iOS
|
|
const ch = (20 * clientWidth) / (clientheight + 272)
|
|
const ch = (20 * clientWidth) / (clientheight + 272)
|
|
console.log("长和宽", clientWidth, clientheight)
|
|
console.log("长和宽", clientWidth, clientheight)
|
|
|
|
+ $('.swiper-slide').css("padding", `20% ${ch}%`)
|
|
}
|
|
}
|
|
var html = document.querySelector("html");
|
|
var html = document.querySelector("html");
|
|
var clientWidth = html.getBoundingClientRect().width;
|
|
var clientWidth = html.getBoundingClientRect().width;
|
|
@@ -238,7 +240,7 @@
|
|
html.style.fontSize = clientWidth / 23.4375 + "px";
|
|
html.style.fontSize = clientWidth / 23.4375 + "px";
|
|
// const ch = (20 * clientWidth) / clientheight
|
|
// const ch = (20 * clientWidth) / clientheight
|
|
// console.log("长和宽", clientWidth, clientheight)
|
|
// console.log("长和宽", clientWidth, clientheight)
|
|
- $('.swiper-slide').css("padding", `20% ${ch}%`)
|
|
|
|
|
|
+
|
|
var app = new Vue({
|
|
var app = new Vue({
|
|
el: '#homeapp',
|
|
el: '#homeapp',
|
|
data: {
|
|
data: {
|