Commit 14dfd764 by 刘海龙

111

parent a2743535
...@@ -85,6 +85,8 @@ ...@@ -85,6 +85,8 @@
/* 充值 */ /* 充值 */
.Recharge .header { width: 100%; padding: 0 0.6rem; background: #fff; overflow: hidden; position: relative; } .Recharge .header { width: 100%; padding: 0 0.6rem; background: #fff; overflow: hidden; position: relative; }
.Recharge .wx_mengcheng { position: fixed; top: 0; left: 0; width: 100%; height: 100; }
.Recharge .wx_mengcheng img { width: 100%; height: 100%; }
.Recharge .zhanghu { margin-top: 0.6rem; font-size: 0.7rem; color: #333; } .Recharge .zhanghu { margin-top: 0.6rem; font-size: 0.7rem; color: #333; }
.Recharge .inputBox { width: 100%; height: 2.7rem; border-bottom: 1px solid #F5F5F5; display: flex; align-items: center; } .Recharge .inputBox { width: 100%; height: 2.7rem; border-bottom: 1px solid #F5F5F5; display: flex; align-items: center; }
.Recharge .input_id { font-size: 1.2rem; color: #333; width: 100%; } .Recharge .input_id { font-size: 1.2rem; color: #333; width: 100%; }
......
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
<div class="app" id="app" style="padding-top: 0;"> <div class="app" id="app" style="padding-top: 0;">
<div class="Recharge"> <div class="Recharge">
<!-- 微信浏览器蒙层 -->
<div class="wx_mengcheng" v-if="bstype==1">
<img src="__PUBLIC__/appapi/pay/img/zhiyin.png" >
</div>
<div class="header"> <div class="header">
<div class="zhanghu">账户ID</div> <div class="zhanghu">账户ID</div>
<div class="inputBox"> <div class="inputBox">
...@@ -93,6 +98,7 @@ ...@@ -93,6 +98,7 @@
userId:'', // 用户id userId:'', // 用户id
sel_num:1 , // 充值类型/数量 sel_num:1 , // 充值类型/数量
zuanNum: 0, // 钻石数量 zuanNum: 0, // 钻石数量
bstype: 0, // 0不在微信浏览器打开 1在微信浏览器打开
}, },
methods: { methods: {
//事件 //事件
...@@ -158,9 +164,11 @@ ...@@ -158,9 +164,11 @@
var ua = navigator.userAgent.toLowerCase(); var ua = navigator.userAgent.toLowerCase();
console.log(ua) console.log(ua)
  if(ua.match(/MicroMessenger/i)=='micromessenger') {   if(ua.match(/MicroMessenger/i)=='micromessenger') {
    alert('在微信里打开');     console.log("在微信里打开")
this.bstype = 1
  } else {   } else {
     alert('不在微信里打开');      console.log('不在微信里打开');
this.bstype = 0
  }   }
} }
}); });
......
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