微信平台币 跳转

master
tpingzhang 5 years ago
parent be6572c0b9
commit 37ab17b414

@ -152,9 +152,23 @@ $(function() {
if (r.payStatus == '1') {
// 提示支付成功
$("#paytype").html("支付成功");
if (!isAndroid) {
try {
window.webkit.messageHandlers.exchangeResult.postMessage(1);
} catch(err) {
window.location.href = Scheme+"://1&back";
}
}
} else {
// 提示支付失败
$("#paytype").html("支付失败");
if (!isAndroid) {
try {
window.webkit.messageHandlers.exchangeResult.postMessage(0);
} catch(err) {
window.location.href = Scheme+"://0&back";
}
}
}
$("#toast").show();
setTimeout(function(){

@ -70,14 +70,14 @@
</p>
</a>
<a id="shorcut" href="javascript:;" data-url="{:U('WapPay/wap_shortcut_pay', array('user_id'=>I('user_id'),'game_id'=>I('game_id'),'user_token'=>I('user_token'),'code'=>0,'type'=>'platform'))}" class="weui-grid js_grid">
<!-- <a id="shorcut" href="javascript:;" data-url="{:U('WapPay/wap_shortcut_pay', array('user_id'=>I('user_id'),'game_id'=>I('game_id'),'user_token'=>I('user_token'),'code'=>0,'type'=>'platform'))}" class="weui-grid js_grid">
<div class="weui-grid__icon">
<img src="__IMG__/onlinepay.png" alt="">
</div>
<p class="weui-grid__label">
快捷支付
</p>
</a>
</a> -->
</div>
</div>

Loading…
Cancel
Save