zhengjinyi 2 éve
szülő
commit
e79ac42995
1 módosított fájl, 5 hozzáadás és 3 törlés
  1. 5 3
      src/main/resources/static/js/pay/caimei-hlbpay.js

+ 5 - 3
src/main/resources/static/js/pay/caimei-hlbpay.js

@@ -60,7 +60,8 @@ var payContainer = new Vue({
         vipRecordId: undefined,
         couponRecordId:undefined,
         couponId:undefined,
-        userId:0
+        userId:0,
+        orderId:0
     },
     filters: {
         NumFormat:function(value) {
@@ -106,6 +107,7 @@ var payContainer = new Vue({
                     _self.payInfo.payAmount = (data.shopOrder.realPay - data.shopOrder.receiptAmount).toFixed(2);
                     _self.discernReceiptList = data.discernReceipt;// 支付记录
                     _self.payInfo.obligation = data.shopOrder.obligation;
+                    _self.orderId =  data.shopOrder.orderId;// 主订单Id
                     _self.obligation =  data.shopOrder.obligation;// 待付金额
                     _self.payableAmount =  data.shopOrder.realPay;
                     _self.receiptAmount =  data.shopOrder.receiptAmount;
@@ -142,8 +144,8 @@ var payContainer = new Vue({
                             CAIMEI.dialog('支付系统遇到点小问题,请稍后重试', false);
                             return;
                         }
-                        CAIMEI.Alert('线上支付功能正在维护中,请前往订单详情页面查看线下转账方式进行付款','确定',true,function(){
-                            window.location.href='/user/order/detail.html?orderId='+_self.payInfo.shopOrderId;
+                        CAIMEI.Alert('线上支付功能正在维护中,请前往查看线下转账方式进行付款','确定',true,function(){
+                            window.location.href= '/pay/caimei-payunder.html?orderId='+_self.orderId;
                         });
                     }
                 }else{