From 401db7d5ed2d1edc70b6c2edf271bce63e2c9dff Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 13 Mar 2020 16:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E6=94=AF=E4=BB=98bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/ShortcutController.class.php | 11 +++ .../Sdk/View/default/Shortcut/yee_step1.html | 24 +++--- .../Sdk/View/default/Shortcut/yee_step2.html | 77 +++++++++++++------ Public/Sdk/css/shortcut/bank_order.css | 58 ++++++++++++++ 4 files changed, 134 insertions(+), 36 deletions(-) diff --git a/Application/Sdk/Controller/ShortcutController.class.php b/Application/Sdk/Controller/ShortcutController.class.php index 8494c336..1337cc79 100644 --- a/Application/Sdk/Controller/ShortcutController.class.php +++ b/Application/Sdk/Controller/ShortcutController.class.php @@ -723,6 +723,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']); diff --git a/Application/Sdk/View/default/Shortcut/yee_step1.html b/Application/Sdk/View/default/Shortcut/yee_step1.html index 2b910a83..3f96fa2a 100644 --- a/Application/Sdk/View/default/Shortcut/yee_step1.html +++ b/Application/Sdk/View/default/Shortcut/yee_step1.html @@ -11,12 +11,12 @@
-
-
- - 银行卡快捷支付 -
-
+ + + + + +
@@ -70,12 +70,12 @@
-
-
- - 银行卡快捷支付 -
-
+ + + + + +
diff --git a/Application/Sdk/View/default/Shortcut/yee_step2.html b/Application/Sdk/View/default/Shortcut/yee_step2.html index 0468ed61..6718d258 100644 --- a/Application/Sdk/View/default/Shortcut/yee_step2.html +++ b/Application/Sdk/View/default/Shortcut/yee_step2.html @@ -43,12 +43,12 @@
-
-
- - 银行卡快捷支付 -
-
+ + + + + +
@@ -347,6 +347,13 @@
+ +
@@ -369,7 +376,7 @@
银行卡签约
该银行卡未签约,无法进行充值,请获取短信验证进行签约
-
手机号:18000000000
+
获取验证码
@@ -381,12 +388,12 @@
-
-
- - 银行卡快捷支付 -
-
+ + + + + +
@@ -663,7 +670,7 @@
获取验证码
-
验证码已发送至:18000000000
+
确认
@@ -680,6 +687,13 @@
+ +
@@ -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(); diff --git a/Public/Sdk/css/shortcut/bank_order.css b/Public/Sdk/css/shortcut/bank_order.css index 468e6285..bb4b9df3 100644 --- a/Public/Sdk/css/shortcut/bank_order.css +++ b/Public/Sdk/css/shortcut/bank_order.css @@ -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%; } \ No newline at end of file