...
|
...
|
@@ -77,13 +77,14 @@ try { |
|
|
<script type="text/javascript">
|
|
|
//调用微信JS api 支付
|
|
|
function jsApiCall() {
|
|
|
alert('11111');
|
|
|
WeixinJSBridge.invoke(
|
|
|
'getBrandWCPayRequest',
|
|
|
<?php echo $jsApiParameters; ?>,
|
|
|
function (res) {
|
|
|
WeixinJSBridge.log(res.err_msg);
|
|
|
alert(res.err_code);
|
|
|
alert('11111');
|
|
|
|
|
|
if (res.err_msg == 'get_brand_wcpay_request:ok') {
|
|
|
window.location.href = 'http://wx.youlj.cn/portal/index/pay_success.html';
|
|
|
} else if (res.err_msg == 'get_brand_wcpay_request:cancel') {
|
...
|
...
|
|