ios 兼容旧包

master
tpingzhang 5 years ago
parent 2f37d71f37
commit 3837dd1e54

@ -78,7 +78,7 @@
<div class="recharge_way_wrap recharge_table"> <div class="recharge_way_wrap recharge_table">
<if condition="C('wei_xin.status') eq 1 or C('weixin_gf.status') eq 1 or (C('goldpig.status') eq 1 and C('goldpig.wx') eq 1) or (C('heepay.status') eq 1 and C('heepay.wxp') eq 1)"> <if condition="C('wei_xin.status') eq 1 or C('weixin_gf.status') eq 1 or (C('goldpig.status') eq 1 and C('goldpig.wx') eq 1) or (C('heepay.status') eq 1 and C('heepay.wxp') eq 1)">
<div class="recharge_cell"> <div class="recharge_cell">
<a href="{:U('Apple/apple_weixin_pay',array('user_id'=>I('user_id'),'game_id'=>I('game_id')))}" class="recharge_way_btn recharge_way_btn_wechat"><img src="__IMG__/btn_pay_wechat@3x.png"></a> <a id="wxpay" data-url="{:U('Apple/apple_weixin_pay',array('user_id'=>I('user_id'),'game_id'=>I('game_id')))}" class="recharge_way_btn recharge_way_btn_wechat"><img src="__IMG__/btn_pay_wechat@3x.png"></a>
</div> </div>
</if> </if>
<if condition="C('alipay.status') eq 1 or (C('goldpig.status') eq 1 and C('goldpig.zfb') eq 1) or (C('sqpay.status') eq 1 and C('sqpay.zfb') eq 1)"> <if condition="C('alipay.status') eq 1 or (C('goldpig.status') eq 1 and C('goldpig.zfb') eq 1) or (C('sqpay.status') eq 1 and C('sqpay.zfb') eq 1)">
@ -180,6 +180,13 @@
} }
$(function() { $(function() {
var flag = false;
$("#wxpay").on('click', function() {
if (flag) return ;
flag = true;
window.location.href = $(this).data('url');
});
$(".recharge_way_wrap a").one("click",function(){ $(".recharge_way_wrap a").one("click",function(){
$(this).click(function (){return false;}); $(this).click(function (){return false;});
}); });
@ -203,6 +210,8 @@
}); });
$('#alipaybtn').on('click',function() { $('#alipaybtn').on('click',function() {
if (flag) return ;
flag = true;
var that = $(this),url = $.trim(that.attr('data-url')); var that = $(this),url = $.trim(that.attr('data-url'));
if(that.hasClass('disabledbtn')){return false;} if(that.hasClass('disabledbtn')){return false;}
that.addClass('disabled'); that.addClass('disabled');

Loading…
Cancel
Save