官网充值页面弹窗提示修改:alert改为popmsg.msg

master
liuweiwen 5 years ago
parent 50dbc200e5
commit c6ffac041f

@ -10,6 +10,33 @@
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
<link rel="stylesheet" type="text/css" href="__CSS__/foot_tabbar.css">
<link rel="stylesheet" type="text/css" href="__CSS__/recharge.css">
<style>
.pop-dialog {
display: none;
position: fixed;
z-index: 1999;
top: 0;
left: 0;
right: 0;
text-align: center;
width: 100vw;
height: 100vh;
}
.pop-dialog span {
background: rgba(0,0,0,.6);
top: 50%;
color: #FFF;
display: inline-block;
line-height: 2;
position: relative;
word-break: break-all;
max-width: 2rem;
font-size: 0.32rem;
border-radius: 5px;
display: block;
margin: auto;
}
</style>
</head>
<body>
<div class="recharge">
@ -175,20 +202,20 @@
</div>
<!--<div class="popmsg pop-dialog"></div>-->
<div class="popmsg pop-dialog"></div>
</body>
<script type="text/javascript" src="__JS__/recharge.js"></script>
<script src="__JS__/pop.lwx.min.js"></script>
<script>
$(function() {
//var popmsg = $('.popmsg').pop();
var popmsg = $('.popmsg').pop();
if (isWeiXin() || !is_mobile()) {
$('#ch_weixin').hide();
$("#recharge_weixin").hide();
}
if(isWeiXin()){
//popmsg.msg('请点击右上角按钮,选择在浏览器中打开去充值');
alert('请点击右上角按钮,选择在浏览器中打开去充值');
popmsg.msg('请点击右上角按钮,选择在浏览器中打开去充值');
// alert('请点击右上角按钮,选择在浏览器中打开去充值');
}
$('.jstab .btn').click(function() {
var that = $(this),parent = that.closest('.jstab'),sib=parent.siblings('.jslist');
@ -319,11 +346,11 @@
}*/
if(obj.attr('id') == 'form2' && $.trim(game_id) == ''){
//popmsg.msg('请选择充值游戏');
alert("请选择充值游戏");
popmsg.msg("请选择充值游戏");
return false;
}
if($.trim(pay_amount) == ''){
alert("请输入充值金额");
popmsg.msg("请输入充值金额");
//popmsg.msg('请输入充值金额');
return false;
}
@ -370,7 +397,7 @@
},
error:function(res){
console.log(res)
alert("服务端异常");
popmsg.msg("服务端异常");
}
})
}else{

Loading…
Cancel
Save