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

修改赏枫页面样式

parent eb65cf34
...@@ -99,7 +99,7 @@ height: 100%; ...@@ -99,7 +99,7 @@ height: 100%;
</el-col> </el-col>
<el-col :span="10" style="text-align:right;font-size:12px;">出团日期:8月</el-col> <el-col :span="10" style="text-align:right;font-size:12px;">出团日期:8月</el-col>
</el-row> </el-row>
<div style="text-align:center;width:100%;margin:30px 0"> <div style="text-align:center;width:100%;margin=-top:30px">
<img style="width:150px;height:150px;position:relative;" src="../../assets/img/juan/twoCode.png" alt=""/> <img style="width:150px;height:150px;position:relative;" src="../../assets/img/juan/twoCode.png" alt=""/>
</div> </div>
</div> </div>
...@@ -181,14 +181,26 @@ export default { ...@@ -181,14 +181,26 @@ export default {
// this.getFirstImg(); // this.getFirstImg();
this.AutoExchange(); this.AutoExchange();
}) })
  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;
}
} }
}, },
......
...@@ -160,14 +160,26 @@ export default { ...@@ -160,14 +160,26 @@ export default {
// this.getFirstImg(); // this.getFirstImg();
this.AutoExchange(); this.AutoExchange();
}) })
  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;
}
} }
}, },
......
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