完善超级签支付业务

master
zhengchanglong 5 years ago
parent fb7a8f809c
commit 9fd85bb4b5

@ -171,9 +171,11 @@ class Ipa365Controller extends BaseController{
$weixn = new Weixin();
$wx_pay = json_decode($weixn->weixin_pay('超级签消费', $orderId, $price, 'MWEB', 4), true);
$this->assign("wxurl", $wx_pay['mweb_url']);
$this->assign("price", self::signprice);
$this->assign("order_id", $orderId);
$this->assign("game_name",$gameInfo['game_name']);
$this->assign("callback",$param['callback']);
$this->display();
}

@ -40,7 +40,7 @@ body{
</div>
</div> -->
<div class="title" >
<img class="gologin" src="__IMG__/ssg/alipay/back.png" style="margin-left:.24rem;">
<img class="gologin" src="__IMG__/ssg/alipay/back.png" style="margin-left:.24rem;" onclick="javascript:history.go(-1)">
<div style="font-size: .32rem;color: #fff;">{$game_name}</div>
<div class="titleright" style="margin-right:.24rem;"></div>
</div>
@ -74,22 +74,22 @@ body{
</div>
</div>
<!-- 微信回调弹框 -->
<div id="alert_box" style="height: 100vh;background:rgba(41,41,41,.8);position:fixed;z-index:9999;top: 0px;width: 100%;">
<div id="alert_box" style="height: 100vh;background:rgba(41,41,41,.8);position:fixed;z-index:9999;top: 0px;width: 100%;" hidden>
<div style="top:50%;margin-top: -1.5rem;position: fixed;width: 6.3rem;left: 50%;margin-left: -3.2rem;background-color: #fff;border-radius:.3rem;">
<img onclick="closeAlert()" src="__IMG__/ssg/alipay/close.png" style="width: .3rem;height: .3rem;position: absolute;left: .3rem;top: .3rem;">
<div style="line-height:1.4rem;font-size:.32rem;text-align: center;">
请确认微信支付是否已完成
</div>
<a href="javascript:" style="line-height:1rem;font-size:.28rem;text-align: center;color: red;width: 100%;display: block;border-top: 1px solid #f5f5f5;border-bottom: 1px solid #f5f5f5;">
<a href="{$callback}" style="line-height:1rem;font-size:.28rem;text-align: center;color: red;width: 100%;display: block;border-top: 1px solid #f5f5f5;border-bottom: 1px solid #f5f5f5;">
已完成支付
</a>
<a href="javascript:" style="line-height:1rem;font-size:.28rem;text-align: center;color: #A9A9A9;width: 100%;display: block;">
<a href="javascript:" style="line-height:1rem;font-size:.28rem;text-align: center;color: #A9A9A9;width: 100%;display: block;" onclick="javascript;location.reload();">
支付遇到问题,重新支付
</a>
</div>
</div>
<!-- 触屏订单通道 -->
<div class="m-order hidden">
<div class="m-order">
<div style="padding: .3rem;">
<div style="width: 6.9rem;height: 1.7rem;background-color: #fff;border-radius:10px;margin: auto;font-size: .28rem;color:#292929;">
<div style="display: flex;height: .8rem; justify-content: space-between;align-items:center;padding: 0 .3rem;">
@ -108,7 +108,7 @@ body{
<span>{$price}</span>
</div>
<a class="order-payinfo-item"
href="#;" onclick="jump('{$url}', '{$order_id}')"
href="#;" onclick="jump('{$url}', '{$order_id}','alipay')"
title="支付宝" style="padding: .3rem 0;width: 6.3rem;margin-left: .3rem;">
<div class="order-payinfo-icon" style="width: .7rem;height: .7rem;">
<img src="__IMG__/ssg/alipay/zfb-pic.jpg" style="width: 100%;height: 100%;border: 0px;" alt="支付宝">
@ -118,8 +118,9 @@ body{
<div class="pay-meta">推荐支付宝用户使用</div>
</div>
</a>
<if condition="$wxurl neq ''">
<a class="order-payinfo-item"
href="#;" onclick="jump('{$xwurl}', '{$order_id}')"
href="#;" onclick="jump('{$wxurl}', '{$order_id}','wxpay')"
title="微信支付" style="padding: .3rem 0;width: 6.3rem;margin-left: .3rem;">
<div class="order-payinfo-icon" style="width: .7rem;height: .7rem;">
<img src="__IMG__/ssg/alipay/wxpay.png" style="width: 100%;height: 100%;border: 0px;" alt="微信支付">
@ -129,30 +130,26 @@ body{
<div class="pay-meta">推荐微信用户使用</div>
</div>
</a>
<!--<a class="order-payinfo-item"
href="#;" onclick="jump('{$wxurl}', '{$order_id}')"
title="支付宝">
<div class="order-payinfo-icon">
<img src="__IMG__/ssg/alipay/zfb-pic.jpg" alt="微信支付">
</div>
<div class="order-payinfo-con">
<div class="pay-title">微信支付</div>
<div class="pay-meta">支持微信支付</div>
</div>
</a>-->
</if>
</div>
</div>
<!-- <div class="footer-pay">
<!--<div class="footer-pay">
<p>海南万盟天下科技有限公司 版权所有 ©2019 支付中心</p>
</div> -->
</div>-->
</body>
<script>
function jump(pay_url, order_id) {
if(isWeiXin()){
function jump(pay_url, order_id,paytype='alipay') {
if(paytype=='alipay'){
window.location.href = pay_url;
}else{
showAlert();
window.open(pay_url,"_blank");
}
/*if(isWeiXin()){
window.location.href = "/sdk.php/Ipa365/paytip/order_id/"+order_id;
}else{
window.location.href=pay_url;
}
}*/
}
//判断是否是微信浏览器的函数
function isWeiXin(){

Loading…
Cancel
Save