Merge branch 'dev' of 47.111.118.107:wmtx/sdk into dev

master
tping 5 years ago
commit ae07e2e182

@ -725,6 +725,17 @@ class ShortcutController extends BaseController{
}
}
//0 官方 1双乾
// if (get_shortcut_pay_type() == 0) {
// // 暂时只有双乾
// }elseif(get_shortcut_pay_type() == 1){
// if($request['code']==1){
// $this->add_spend($request,1);
// }else{
// $this->add_deposit($request,1);
// }
// }
$this->assign("pay_amount", $request['actual_amount']?$request['actual_amount']:$request['price']);
$this->assign("user_id", $request['user_id']);
$this->assign("game_id", $request['game_id']);

@ -11,12 +11,12 @@
</head>
<body>
<div class="bank_short ">
<div class="heard">
<div class="heard_box">
<a href=""></a>
银行卡快捷支付
</div>
</div>
<!-- <div class="heard">-->
<!-- <div class="heard_box">-->
<!-- <a href=""></a>-->
<!-- 银行卡快捷支付-->
<!-- </div>-->
<!-- </div>-->
<form class="wfform" name="wfform" method="post" action="{:U('Shortcut/yee_step2')}" target="_parent" >
<div class="containner">
<div class="containner_box">
@ -70,12 +70,12 @@
<!-- 横屏 -->
<div class="bank_short_heng ">
<div class="heard">
<div class="heard_box">
<a href=""></a>
银行卡快捷支付
</div>
</div>
<!-- <div class="heard">-->
<!-- <div class="heard_box">-->
<!-- <a href=""></a>-->
<!-- 银行卡快捷支付-->
<!-- </div>-->
<!-- </div>-->
<form class="wfform_heng" name="wfform_heng" method="post" action="{:U('Shortcut/yee_step2')}" target="_parent" >
<div class="containner">
<div class="containner_box">

@ -43,12 +43,12 @@
</div>
</div>
<div class="heard">
<div class="heard_box">
<a onclick="history.back(-1);"></a>
银行卡快捷支付
</div>
</div>
<!-- <div class="heard">-->
<!-- <div class="heard_box">-->
<!-- <a onclick="history.back(-1);"></a>-->
<!-- 银行卡快捷支付-->
<!-- </div>-->
<!-- </div>-->
<form id="wfform" name="wfform" method="post" action="{:U('Shortcut/shortcut_pay')}" target="_parent" >
<div class="containner">
<div class="bank_select">
@ -347,6 +347,13 @@
<div class="forbid_close"><img src="img/close2.png" alt=""></div>
</div>
<div class="loading" style="width: 3.5rem;height: 3.36rem;margin-left: -1.78rem;display: none">
<div class="forbid_pay">
<img src="__IMG__/load.gif" alt="">
<div>加载中...</div>
</div>
</div>
</div>
<!-- 横屏 -->
@ -369,7 +376,7 @@
<div class="order_windowbox">
<div class="title">银行卡签约</div>
<div class="del">该银行卡未签约,无法进行充值,请获取短信验证进行签约</div>
<div class="phone phone_heng">手机号:<span>18000000000 </span></div>
<div class="phone phone_heng" style="display: none">手机号:<span>18000000000 </span></div>
<div class="code">
<input type="text" placeholder="请输入验证码" id="sign_code_heng">
<div onclick="getSignSms_heng()" id="sign_sms_heng">获取验证码</div>
@ -381,12 +388,12 @@
</div>
<div class="heard">
<div class="heard_box">
<a onclick="history.back(-1);"></a>
银行卡快捷支付
</div>
</div>
<!-- <div class="heard">-->
<!-- <div class="heard_box">-->
<!-- <a onclick="history.back(-1);"></a>-->
<!-- 银行卡快捷支付-->
<!-- </div>-->
<!-- </div>-->
<form id="wfform_heng" name="wfform_heng" method="post" action="{:U('Shortcut/shortcut_pay')}" target="_parent" >
<div class="containner">
<div class="bank_select">
@ -663,7 +670,7 @@
<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>
<div class="payment_input_phone">验证码已发送至:<span>18000000000</span></div>
<div class="payment_input_phone" style="display: none">验证码已发送至:<span>18000000000</span></div>
<div class="payment_input_phone_btn_heng">确认</div>
</div>
</div>
@ -680,6 +687,13 @@
<div class="forbid_close"><img src="img/close2.png" alt=""></div>
</div>
<div class="loading" style="display: none;height: 2.36rem;margin-top: -1.18rem;">
<div class="forbid_pay ">
<img src="__IMG__/load.gif" alt="" style="margin-bottom: 0">
<div>加载中...</div>
</div>
</div>
</div>
</body>
</html>
@ -906,15 +920,15 @@ $(function (){
$(".bank_mode").hide();
});
$("#phoneNo").blur(function(){
$(".phone").children().text($(this).val());
$('.payment_input_phone').children().text($("#phoneNo").val());
});
$("#phoneNo_heng").blur(function(){
$(".phone_heng").children().text($(this).val());
$('.payment_input_phone').children().text($("#phoneNo_heng").val());
});
// $("#phoneNo").blur(function(){
// $(".phone").children().text($(this).val());
// $('.payment_input_phone').children().text($("#phoneNo").val());
// });
//
// $("#phoneNo_heng").blur(function(){
// $(".phone_heng").children().text($(this).val());
// $('.payment_input_phone').children().text($("#phoneNo_heng").val());
// });
$(".bank_select_box").click(function(){
@ -1135,6 +1149,10 @@ function getSms() {
var time=60;
if (validCode) {
validCode=false;
$(".phone").children().text($("#phoneNo").val());
$('.payment_input_phone').children().text($("#phoneNo").val());
var t=setInterval(function () {
time--;
sms.innerText=time+"秒"
@ -1209,6 +1227,10 @@ function getSms_heng() {
var time=60;
if (validCode) {
validCode=false;
$(".phone_heng").children().text($("#phoneNo_heng").val());
$('.payment_input_phone').children().text($("#phoneNo_heng").val());
var t=setInterval(function () {
time--;
sms.innerText=time+"秒"
@ -1278,6 +1300,7 @@ $(".payment_input_phone_btn").click(function(){
}
if(isok){
btnpay = true;
$(".loading").show();
// Tip.loadShow();
$.ajax({
type: "POST",
@ -1301,13 +1324,16 @@ $(".payment_input_phone_btn").click(function(){
}else{
Tip.msgShow('未知信息');
}
$(".loading").hide();
},
error: function() {
btnpay = false;
Tip.msgShow('网络请求异常,请稍后再试');
$(".loading").hide();
}
});
$("#wfform").submit();
// $("#wfform").submit();
}
});
@ -1341,6 +1367,7 @@ $(".payment_input_phone_btn_heng").click(function(){
isok = false;
return;
}
$(".loading").show();
if(isok){
btnpay = true;
// Tip.loadShow();
@ -1367,10 +1394,12 @@ $(".payment_input_phone_btn_heng").click(function(){
}else{
Tip.msgShow('未知信息');
}
$(".loading").hide();
},
error: function() {
btnpay = false;
Tip.msgShow('网络请求异常,请稍后再试');
$(".loading").hide();
}
});
// $("#wfform").submit();

@ -938,4 +938,62 @@ body{
.bank_order_heng .forbid_close>img{
width: 100%;
height: 100%;
}
.loading {
position: fixed;
width: 4.5rem;
height: 4.36rem;
top: 50%;
margin-top: -2.18rem;
left: 50%;
margin-left: -2.25rem;
background-color: #fff;
z-index: 3;
border-radius: 0.3rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.loading .forbid_pay{
font-size:0.24rem;
font-family:PingFang SC;
font-weight:500;
color:rgba(41,41,41,1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.loading .forbid_pay>img{
width: 1.7rem;
height: 1.7rem;
margin-bottom: 0.25rem;
}
.loading .forbid_confirm{
width:3.3rem;
height:0.6rem;
background:rgba(33,177,235,1);
border-radius:0.3rem;
font-size:0.28rem;
font-family:PingFang SC;
font-weight:500;
color:rgba(255,255,255,1);
text-align: center;
line-height: 0.6rem;
margin-top: 0.45rem;
}
.loading .forbid_close{
position: absolute;
width: 0.3rem;
height: 0.3rem;
top: 0.3rem;
left: 0.3rem;
font-size: 0.2rem;
}
.loading .forbid_close>img{
width: 100%;
height: 100%;
}
Loading…
Cancel
Save