海涛 8 年 前
コミット
1940530ca5
2 ファイル変更3 行追加5 行削除
  1. 2 4
      www/webapp/o2o/js/page/pay.js
  2. 1 1
      www/webapp/o2o/module/pay/index.html

+ 2 - 4
www/webapp/o2o/js/page/pay.js

@@ -27,6 +27,8 @@ define(['$', 'template', 'api', 'native', 'config', 'user'], function ($, templa
 
             // 充值的回调
             function payResult(res) {
+                console.log(res);
+                return false;
                 $doc.trigger('spa:closeloader');
                 if (res.success) {
                     var orderInfo = user.getOrderInfo(orderID);
@@ -74,14 +76,10 @@ define(['$', 'template', 'api', 'native', 'config', 'user'], function ($, templa
                 };
                 if (isRecharge){
                     api.payRecharge(params, function (res) {
-                        console.log(res);
-                        return false;
                         payResult(res)
                     });
                 }else {
                     api.getPayCharge(params, function (res) {
-                        console.log(res);
-                        return false;
                         payResult(res)
                     });
                 }

+ 1 - 1
www/webapp/o2o/module/pay/index.html

@@ -170,7 +170,7 @@
                 // alert('取消支付');
             } else {
               alert('支付失败');
-              location.href = '/o2o/web/index';
+//              location.href = '/o2o/web/index';
             }
           }
         );