|
|
@@ -49,7 +49,7 @@ class PayHandler extends BasePayHandler
|
|
|
$result_account = $result['account']; // 卡号
|
|
|
$result_name = $result['name']; // 收款姓名
|
|
|
$result_bank = $result['bank']; // 收款开户行
|
|
|
- return PayHandler::createGetHtml($money,$result_account,$result_name,$result_bank);
|
|
|
+ return PayHandler::createGetHtml($money,$result_account,$result_name,$result_bank,$deposit['amount']);
|
|
|
}else{
|
|
|
return '该通道已关闭';
|
|
|
}
|
|
|
@@ -132,16 +132,30 @@ class PayHandler extends BasePayHandler
|
|
|
|
|
|
|
|
|
// 生成html模板文件
|
|
|
- public static function createGetHtml($money,$result_account,$result_name,$result_bank)
|
|
|
+ public static function createGetHtml($money,$result_account,$result_name,$result_bank,$amount)
|
|
|
{
|
|
|
$html = <<<eot
|
|
|
- <div style="border: 1px solid green;width:500px;height: 200px;margin:10% auto;text-align:left;border-radius:30px;padding:70px; ">
|
|
|
- <h4 style="text-align: center;">请转账到如下账户:</h4>
|
|
|
- <p>订单金额为:<span style="color:red;">{$money}元</span></p>
|
|
|
- <p>收款账号为:{$result_account}</p>
|
|
|
- <p>收款姓名为:$result_name</p>
|
|
|
- <p>收款开户行为:{$result_bank}</p>
|
|
|
+ <div id="box" style="width:500px;height: 200px;margin:10% auto;text-align:center;border-radius:30px;padding:70px;">
|
|
|
+ <p>你正在购买USTD(泰达币)</p>
|
|
|
+ <div style="background: #7b6e6e;padding: 20px;">
|
|
|
+ <p>购买的数量为:<input type="text" name="lname" value="{$amount}个" readonly style="border: none;border-bottom: 1px solid;font-size: 20px;text-align: center;"></p>
|
|
|
+ <p>合计购买金额:<input type="text" name="lname" value="{$money}元" readonly style="border: none;border-bottom: 1px solid;font-size: 20px;text-align: center;"></p>
|
|
|
+ </div>
|
|
|
+ <p id="btn" style="width: 500px;height: 50px;background: #0072ff;line-height: 50px;border-radius: 10px;color: white;cursor: pointer">购买</p>
|
|
|
</div>
|
|
|
+ <form id="pay_form" name="pay_form" action="/account/rechage" method="post">
|
|
|
+ <input type="hidden" name="money" id="money" value="{$money}" />
|
|
|
+ <input type="hidden" name="result_account" id="result_account" value="{$result_account}" />
|
|
|
+ <input type="hidden" name="result_name" id="result_name" value="{$result_name}" />
|
|
|
+ <input type="hidden" name="result_bank" id="result_bank" value="{$result_bank}" />
|
|
|
+ </form>
|
|
|
+ <script src="/ui/js/jquery.1.9.1.min.js"></script>
|
|
|
+ <script>
|
|
|
+ $('#btn').click(function() {
|
|
|
+ $('#box').hide();
|
|
|
+ $('#pay_form').submit();
|
|
|
+ });
|
|
|
+ </script>
|
|
|
eot;
|
|
|
|
|
|
return $html;
|