|
|
<!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> -->
|
|
|
<form action="" method="get">
|
|
|
<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">
|
|
|
<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">
|
|
|
<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">
|
|
|
<button id="pay" class="ptbbtn" type="button">去支付</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
|
|
|
</body>
|
|
|
<script src="__JS__/jquery.min.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
$(".paymoneyinput").bind("input propertychange",function(event){
|
|
|
$(".paymoneyinfo").text('可获得'+event.target.value+'平台币(1平台币=1人民币)')
|
|
|
});
|
|
|
|
|
|
$(function() {
|
|
|
$("#pay").click(function() {
|
|
|
if (!$("#money").val()) {
|
|
|
alert('金额不能为空')
|
|
|
}
|
|
|
if (!$("#money").val() < 0) {
|
|
|
alert('金额有误')
|
|
|
}
|
|
|
var money = $("#money").val();
|
|
|
|
|
|
window.location.href = "/sdk.php/userH/platform_pay/account/{$account}/user_token/{$user_token}/money/"+money+"?action=pay"
|
|
|
});
|
|
|
});
|
|
|
</script>
|
|
|
</html> |