Commit 9603dc2e by 刘海龙

no message

parent d157455a
......@@ -79,7 +79,7 @@
</div>
<div class="foot_right">
<img src="__PUBLIC__/appapi/pay/img/wx-icon.png" >
<span @click="wx">微信支付</span>
<span>微信支付</span>
</div>
</div>
</div>
......@@ -99,35 +99,19 @@
sel_money(index){
this.sel_num = index
},
wx() {
let _this = this;
$.ajax({
url:"/index.php?g=Appapi&m=rechange&a=wx",
dataType:"json",
data: {
},
type:"POST",
success:function(data){
console.log(data);
if(data.ret==200){
let d = data.data;
window.location.href = d.ulr;
}else{
layer.msg(data.msg);
}
},
error:function(e){
layer.msg(e.msg);
}
})
}
},
watch: {
//数据监测函数
},
created: function() {
//加载触发函数
  var ua = navigator.userAgent.toLowerCase();
console.log(ua)
  if(ua.match(/MicroMessenger/i)=='micromessenger') {
    alert('在微信里打开');
  } else {
     alert('不在微信里打开');
  }
}
});
</script>
......
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