[更新]修改微信支付demo

This commit is contained in:
邹景立 2017-04-14 17:05:23 +08:00
parent 7da35de2c0
commit d8fd41de51

View File

@ -7,18 +7,13 @@
</head>
<body style="text-align:center">
<h3>扫码支付DEMO</h3>
<div id="showbox">
<div class="contrainer">
<h3>扫码支付DEMO</h3>
<div id="showbox"></div>
<p id="orderno bg-success"></p>
<button data-reset class="btn btn-default">重置订单号</button>
</div>
<p id="orderno">
</p>
<button data-reset class="btn btn-default">重置订单号</button>
</body>
<script src="//cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
@ -34,7 +29,7 @@
ret.url = '__STATIC__/theme/default/img/wechat/qrc_payed.jpg';
}
console.log(ret);
$('#showbox').html('<img src="' + ret.url + '"/>');
$('#showbox').html('<img class="img-thumbnail" src="' + ret.url + '"/>');
$('#orderno').html('订单号:' + ret.order_no);
});
}