You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="__CSS__/weui.min.css">
<link rel="stylesheet" href="__CSS__/sdkptbpay.css">
<script src="__JS__/resize.js" type=""></script>
<title>平台币充值</title>
</head>
<body class="form-box">
<!-- <div class="ptbnav" style="background:url('__IMG__/navbg.png') no-repeat bottom center/100% 100%;">
<img src="__IMG__/back.png">
<p>平台币充值</p>
<div></div>
</div> -->
5 years ago
<form action="" method="get">
5 years ago
<input type="hidden" name="user_token" value="{$user_token}">
<div class="ptbboxpad pay-form-info">
<div class="ptbbox">
<p class="title">订单填写</p>
<div class="weui-cell borderitem formitem">
<div class="weui-cell__hd"><label class="weui-label">充值账号</label></div>
<div class="weui-cell__bd">
5 years ago
<input class="weui-input" type="text" readonly value="{$account}" name="account">
</div>
</div>
<div class="weui-cell formitem">
<div class="weui-cell__hd"><label class="weui-label">充值金额</label></div>
<div class="weui-cell__bd">
5 years ago
<input id="money" class="weui-input paymoneyinput" type="number" value="" name="money" placeholder="充值金额需要正整数">
</div>
</div>
<p class="paymoneyinfo">
可获得0平台币1平台币=1人民币
</p>
</div>
</div>
<div class="btnbox">
5 years ago
<button id="pay" class="ptbbtn" type="button">去支付</button>
</div>
</form>
</body>
<script src="__JS__/jquery.min.js"></script>
5 years ago
<script type="text/javascript">
$(".paymoneyinput").bind("input propertychange",function(event){
$(".paymoneyinfo").text('可获得'+event.target.value+'平台币1平台币=1人民币')
5 years ago
});
$(function() {
$("#pay").click(function() {
if (!$("#money").val()) {
alert('金额不能为空')
}
if (!$("#money").val() < 0) {
alert('金额有误')
}
5 years ago
var money = $("#money").val();
5 years ago
5 years ago
window.location.href = "/sdk.php/userH/platform_pay/account/{$account}/user_token/game_id/{$game_id}/{$user_token}/money/"+money+"?action=pay"
5 years ago
});
});
5 years ago
</script>
</html>