双乾支付js弹窗错误修正

master
zhengyongxing 5 years ago
parent 82c1ca6a68
commit 180d69689d

@ -671,7 +671,7 @@
<div><input type="text" placeholder="请输入验证码" id="smsCode_heng" name="smsCode" > <img src="__IMG__/shortcut/dacha.png" alt=""> </div> <div><input type="text" placeholder="请输入验证码" id="smsCode_heng" name="smsCode" > <img src="__IMG__/shortcut/dacha.png" alt=""> </div>
<div id="sms_heng" onclick="getSms_heng()" >获取验证码</div> <div id="sms_heng" onclick="getSms_heng()" >获取验证码</div>
</div> </div>
<div class="payment_input_phone" style="display: none">验证码已发送至:<span>18000000000</span></div> <div class="payment_input_phone" >验证码已发送至:<span></span></div>
<div class="payment_input_phone_btn_heng">确认</div> <div class="payment_input_phone_btn_heng">确认</div>
</div> </div>
</div> </div>
@ -922,12 +922,12 @@ $(function (){
$("#phoneNo").blur(function(){ $("#phoneNo").blur(function(){
$(".phone").children().text($(this).val()); $(".phone").children().text($(this).val());
// $('.payment_input_phone').children().text($("#phoneNo").val()); $('.payment_input_phone').children().text($("#phoneNo").val());
}); });
$("#phoneNo_heng").blur(function(){ $("#phoneNo_heng").blur(function(){
$(".phone_heng").children().text($(this).val()); $(".phone_heng").children().text($(this).val());
// $('.payment_input_phone').children().text($("#phoneNo_heng").val()); $('.payment_input_phone').children().text($("#phoneNo_heng").val());
}); });
$(".bank_order_heng input").focus(function () { $(".bank_order_heng input").focus(function () {
@ -1031,25 +1031,26 @@ $(function (){
$('.forbid_model').hide(); $('.forbid_model').hide();
$('.forbid_window').hide(); $('.forbid_window').hide();
$('.bank_mode').hide(); $('.bank_mode').hide();
show_payment_code();
}); });
$('.forbid_confirm').click(function() { $('.forbid_confirm').click(function() {
$('.bank_mode').hide(); $('.bank_mode').hide();
$('.forbid_model').hide(); $('.forbid_model').hide();
$('.forbid_window').hide(); $('.forbid_window').hide();
show_payment_code();
}); });
$('.forbid_close').click(function() { $('.forbid_close').click(function() {
$('.bank_mode').hide(); $('.bank_mode').hide();
$('.forbid_model').hide(); $('.forbid_model').hide();
$('.forbid_window').hide(); $('.forbid_window').hide();
show_payment_code();
}); });
$(".pay_submit").click(function() { $(".pay_submit").click(function() {
var url = $(this).data('url'); var url = $(this).data('url');
}); });
}); });
@ -1285,6 +1286,18 @@ function forbit(text) {
} }
function show_payment_code() {
var text = $('.forbid_pay').children().next().text();
console.log(text);
if (text == '验证码有误,请重填验证码有误,请重填') {
$('.bank_mode').show();
$('.payment_code').show();
}
}
var btnpay = false; var btnpay = false;
$(".payment_input_phone_btn").click(function(){ $(".payment_input_phone_btn").click(function(){
if (btnpay == true) return ; if (btnpay == true) return ;

Loading…
Cancel
Save