优化支付提醒

master
chenzhi 5 years ago
parent e658ddbe02
commit 0b3b21750e

@ -44,10 +44,12 @@ class ChangyanController extends Controller {
}
public function test()
{
$this->assign('user_id',"1");
$this->assign('game_id',"1");
// $this->display("Spend/pay_way");
$this->display("WapPay/wap_shortcut_pay");
// $this->assign('user_id',"1");
// $this->assign('game_id',"1");
// $this->display("WapPay/wap_shortcut_pay");
$this->display("UserH/platform_pay");
# code...
}
}

@ -13,7 +13,26 @@
<img src="__IMG__/back.png">
<p>支付</p>
<div></div>
</div> -->
</div> -->
<div class="js_dialog" id="msgdialog" style="display: none">
<div class="weui-mask"></div>
<div class="weui-dialog" style="width: 4.5rem;max-width: 4.5rrem;display: flex;flex-direction:column;padding-bottom: .3rem;">
<div id="close_tip" style="width: 100%;text-align: left;height: .6rem;display: flex;">
<img src="__IMG__/close-black.png" style="width: .3rem;height: .3rem;margin: .3rem 0 0 .3rem;">
</div>
<div style="width: 100%;text-align: center;">
<img src="__IMG__/txicon.png" style="width: 2.44rem;height: 1.46rem;">
</div>
<p id="tipmsg" style="text-align: center;font-size: .24rem;margin: .35rem auto;">
提示内容提示内容
</p>
<div style="width: 100%;text-align: center;display: flex;justify-content:center;">
<div id="tipok" style="width: 3.3rem;height: .6rem;background-color: #21B1EB;color: #ffffff;font-size: .28rem;border-radius:30px;line-height: .6rem;">
确认
</div>
</div>
</div>
</div>
<div class="ptbboxpad">
<div class="ptbbox">
<div class="weui-cell payuser">
@ -61,6 +80,10 @@
<script>
$(function(){
var flag = false;
$("#close_tip").click(function(){
$("#msgdialog").hide();
flag = false;
})
$("#wxpay").on('click', function() {
if (flag) return ;
flag = true;
@ -75,7 +98,9 @@ $(function(){
if (r.status == 1) {
window.location.href = r.data;
} else {
alert(r.msg);
$("#tipmsg").html(r.msg);
$("#msgdialog").show();
// alert(r.msg);
}
}
@ -119,11 +144,8 @@ $(function(){
}
}
} else {
layer.open({
content: result.msg
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
$("#tipmsg").html(result.msg);
$("#msgdialog").show();
}
}
});

Loading…
Cancel
Save