Commit a82945db authored by 黄媛媛's avatar 黄媛媛

update

parent 20f68902
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -75,12 +75,19 @@ ...@@ -75,12 +75,19 @@
} }
.videoBox{ .videoBox{
position: absolute; position: absolute;
width:490px; width: 100%;
height:290px; height:290px;
top:1245px; top:0;
margin:auto; margin:auto;
left:90px;
z-index:200; z-index:200;
box-sizing: border-box;
}
.iphoneVideo{
background: url('../../assets/img/juan/sp.png') no-repeat;
background-size:100% 100%;
padding: 15px 29px 41px 28px;
margin: 0 auto;
width:490px;
} }
.TwoCode{ .TwoCode{
width: 100%; width: 100%;
...@@ -104,14 +111,17 @@ ...@@ -104,14 +111,17 @@
<div> <div>
<div v-show="isPhone"> <div v-show="isPhone">
<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.png" alt=""/> <img class="img" src="../../assets/img/juan/fire1.jpg" alt=""/>
<img class="img" src="../../assets/img/juan/fire2.png" alt=""/> <img class="img" src="../../assets/img/juan/fire2.jpg" alt=""/>
<div class="videoBox" :style="{zoom: zoom}"> <div class="videoBox" :style="{zoom: zoom,top:topDiv}">
<video style="width:100%;height:100%;border:none" loop="loop" controls="controls" autoplay="autoplay"> <div class="iphoneVideo">
<source src="../../assets/media/fire.mp4" type="viedo/mp4"> <video style="width:100%;height:100%;border:none" loop="loop" controls="controls" autoplay="autoplay">
<source src="../../assets/media/fire.mp4" type="viedo/ogg"> <source src="../../assets/media/fire.mp4" type="video/mp4">
<source src="../../assets/media/fire.mp4" type="viedo/webm"> <source src="../../assets/media/fire.mp4" type="video/ogg">
</video> <source src="../../assets/media/fire.mp4" type="video/webm">
</video>
</div>
</div> </div>
<div class="TwoCode"> <div class="TwoCode">
<img src="../../assets/img/juan/twoCode.png" alt=""/> <img src="../../assets/img/juan/twoCode.png" alt=""/>
...@@ -168,6 +178,7 @@ export default { ...@@ -168,6 +178,7 @@ export default {
tiaoshui:[], tiaoshui:[],
isPhone:false, isPhone:false,
timer:'', timer:'',
topDiv:'',
}; };
}, },
mounted() { mounted() {
...@@ -178,15 +189,27 @@ export default { ...@@ -178,15 +189,27 @@ export default {
this.AutoExchange2(); this.AutoExchange2();
}) })
  var ua = navigator.userAgent.toLowerCase();//获取判断用的对象 //   var ua = navigator.userAgent.toLowerCase();//获取判断用的对象
  if (ua.match(/MicroMessenger/i) == "micromessenger") { //   if (ua.match(/MicroMessenger/i) == "micromessenger") {
    //在微信中打开 //     //在微信中打开
this.isPhone=true; // this.isPhone=true;
this.AutoExchange3(); // this.AutoExchange3();
  } else { //   } else {
  //否则就是PC浏览器打开 //   //否则就是PC浏览器打开
this.isPhone=false; // this.isPhone=false;
} // }
let userAgentInfo = navigator.userAgent;
let Agents = ["Android", "iPhone",
"SymbianOS", "Windows Phone",
"iPad", "iPod"];
for (let v = 0; v < Agents.length; v++) {
if (userAgentInfo.indexOf(Agents[v]) > 0) {
this.isPhone = true;
this.AutoExchange3();
break;
}
}
}, },
created() { created() {
this.cityId=localStorage.cityId; this.cityId=localStorage.cityId;
...@@ -202,14 +225,17 @@ export default { ...@@ -202,14 +225,17 @@ export default {
this.Calculation = Width/Height - 1.77 > 0.02 ? true : false this.Calculation = Width/Height - 1.77 > 0.02 ? true : false
// console.log(Height, Width, oHeight, oWidth,Width/Height, this.Calculation, Width/Height - 1.77) // console.log(Height, Width, oHeight, oWidth,Width/Height, this.Calculation, Width/Height - 1.77)
if (oWidth < 1920) { if (oWidth < 1920) {
this.smallWindow = true this.smallWindow = true
} }
this.zoom = Math.round((Height/1080) * 100) / 100; this.zoom = Math.round((Height/1080) * 100) / 100;
this.height1=(2465/1920)*oWidth+'px'; this.height1=(2465/1920)*oWidth+'px';
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';
console.log("this.topDiv",this.topDiv)
}, },
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