no message

master
tping 5 years ago
commit fdfe5c9e33

@ -718,15 +718,15 @@ 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);
// }
// }
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']);
@ -784,13 +784,13 @@ class ShortcutController extends BaseController{
C(api('Config/lists'));
if (!$is_platform) {
$request['extend'] = I('request.extend');
$extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id']))->find();
if($extend_data){
redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'is_platform'=> $is_platform,'msg'=>$request['game_id'].'订单号重复,请关闭支付页面重新支付'.$request['extend'], 'user_token' => $userToken)));exit;
}
}
// if (!$is_platform) {
// $request['extend'] = I('request.extend');
// $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id']))->find();
// if($extend_data){
// redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'is_platform'=> $is_platform,'msg'=>$request['game_id'].'订单号重复,请关闭支付页面重新支付'.$request['extend'], 'user_token' => $userToken)));exit;
// }
// }
//折扣
$user = get_user_entity($request['user_id']);
@ -863,15 +863,15 @@ 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);
}
}
// 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);
// }
// }
// var_dump($request['goods_info']);die();
$this->assign("pay_amount", $request['actual_amount']?$request['actual_amount']:$request['price']);
$this->assign("user_id", $request['user_id']);

@ -350,7 +350,6 @@
<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>
@ -376,7 +375,7 @@
<div class="order_windowbox">
<div class="title">银行卡签约</div>
<div class="del">该银行卡未签约,无法进行充值,请获取短信验证进行签约</div>
<div class="phone phone_heng" style="display: none">手机号:<span>18000000000 </span></div>
<div class="phone phone_heng">手机号:<span>18000000000 </span></div>
<div class="code">
<input type="text" placeholder="请输入验证码" id="sign_code_heng">
<div onclick="getSignSms_heng()" id="sign_sms_heng">获取验证码</div>
@ -690,7 +689,6 @@
<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>
@ -920,15 +918,15 @@ $(function (){
$(".bank_mode").hide();
});
// $("#phoneNo").blur(function(){
// $(".phone").children().text($(this).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());
});
$("#phoneNo_heng").blur(function(){
$(".phone_heng").children().text($(this).val());
// $('.payment_input_phone').children().text($("#phoneNo_heng").val());
// });
});
$(".bank_select_box").click(function(){
@ -1027,6 +1025,7 @@ $(function (){
});
$('.forbid_confirm').click(function() {
$('.bank_mode').hide();
$('.forbid_model').hide();
$('.forbid_window').hide();
});
@ -1141,6 +1140,7 @@ function getSms() {
// $("#tipmsg").html(res.info);
// $("#msgdialog").show();
Tip.msgShow(res.info);
$('.payment_code').hide();
sms.innerText="获取验证码";
smsstatus = true;
return ;
@ -1221,6 +1221,7 @@ function getSms_heng() {
Tip.msgShow(res.info);
sms.innerText="获取验证码";
smsstatus = true;
$('.payment_code').hide();
return ;
}
if (res.status == 1) {
@ -1315,6 +1316,7 @@ $(".payment_input_phone_btn").click(function(){
//处理结果
if(result.status == 0){
Tip.msgShow(result.info);
$('.payment_code').hide();
}else if(result.status == 1){
Tip.tipShow("充值成功");
$("#tip_window").click(function(){
@ -1384,6 +1386,7 @@ $(".payment_input_phone_btn_heng").click(function(){
//处理结果
if(result.status == 0){
Tip.msgShow(result.info);
$('.payment_code').hide();
}else if(result.status == 1){
Tip.tipShowHeng("充值成功");
$("#tip_confirm_heng").click(function(){

Loading…
Cancel
Save