Commit 6ed27f32 authored by 黄媛媛's avatar 黄媛媛

update

parent a82945db
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
.videoBox{ .videoBox{
position: absolute; position: absolute;
width: 100%; width: 100%;
height:290px; /* height:290px; */
top:0; top:0;
margin:auto; margin:auto;
z-index:200; z-index:200;
...@@ -85,9 +85,9 @@ ...@@ -85,9 +85,9 @@
.iphoneVideo{ .iphoneVideo{
background: url('../../assets/img/juan/sp.png') no-repeat; background: url('../../assets/img/juan/sp.png') no-repeat;
background-size:100% 100%; background-size:100% 100%;
padding: 15px 29px 41px 28px; padding: 3% 5% 6% 5%;
margin: 0 auto; margin: 0 auto;
width:490px; /* width:490px; */
} }
.TwoCode{ .TwoCode{
width: 100%; width: 100%;
...@@ -113,8 +113,8 @@ ...@@ -113,8 +113,8 @@
<div class="FM_div" ref="div3" :style="{height: height3}"> <div class="FM_div" ref="div3" :style="{height: height3}">
<img class="img" src="../../assets/img/juan/fire1.jpg" alt=""/> <img class="img" src="../../assets/img/juan/fire1.jpg" alt=""/>
<img class="img" src="../../assets/img/juan/fire2.jpg" alt=""/> <img class="img" src="../../assets/img/juan/fire2.jpg" alt=""/>
<div class="videoBox" :style="{zoom: zoom,top:topDiv}"> <div class="videoBox" :style="{top:topDiv,height:phoneHeight}">
<div class="iphoneVideo"> <div class="iphoneVideo" :style="{width:phoneWidth}">
<video style="width:100%;height:100%;border:none" loop="loop" controls="controls" autoplay="autoplay"> <video style="width:100%;height:100%;border:none" loop="loop" controls="controls" autoplay="autoplay">
<source src="../../assets/media/fire.mp4" type="video/mp4"> <source src="../../assets/media/fire.mp4" type="video/mp4">
<source src="../../assets/media/fire.mp4" type="video/ogg"> <source src="../../assets/media/fire.mp4" type="video/ogg">
...@@ -179,6 +179,9 @@ export default { ...@@ -179,6 +179,9 @@ export default {
isPhone:false, isPhone:false,
timer:'', timer:'',
topDiv:'', topDiv:'',
zoomph:0,
phoneWidth:0,
phoneHeight:0,
}; };
}, },
mounted() { mounted() {
...@@ -189,15 +192,7 @@ export default { ...@@ -189,15 +192,7 @@ export default {
this.AutoExchange2(); this.AutoExchange2();
}) })
//   var ua = navigator.userAgent.toLowerCase();//获取判断用的对象
//   if (ua.match(/MicroMessenger/i) == "micromessenger") {
//     //在微信中打开
// this.isPhone=true;
// this.AutoExchange3();
//   } else {
//   //否则就是PC浏览器打开
// this.isPhone=false;
// }
let userAgentInfo = navigator.userAgent; let userAgentInfo = navigator.userAgent;
let Agents = ["Android", "iPhone", let Agents = ["Android", "iPhone",
"SymbianOS", "Windows Phone", "SymbianOS", "Windows Phone",
...@@ -232,10 +227,13 @@ export default { ...@@ -232,10 +227,13 @@ export default {
this.height2=(4427/1920)*oWidth+'px'; this.height2=(4427/1920)*oWidth+'px';
this.loadTiaoshui(); this.loadTiaoshui();
let oWidth2 = window.screen.width; let oWidth2 = window.screen.width;
console.log("let oWidth2",oWidth2)
this.height3=(5451/750)*oWidth2+'px'; this.height3=(5451/750)*oWidth2+'px';
this.topDiv=(1850/750)*oWidth2+'px'; this.topDiv=(1350/750)*oWidth2+'px';
console.log("this.topDiv",this.topDiv) // this.zoomph= Math.round((Height/1080) * 100) / 100;
this.phoneWidth=(310/375)*oWidth2+'px';
let aa=(310/375)*oWidth2;
this.phoneHeight=(290/310)*aa+'px';
}, },
methods: { methods: {
......
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 to comment