guanchunjie 3 lat temu
rodzic
commit
375f44bc6a
2 zmienionych plików z 7 dodań i 3 usunięć
  1. 1 1
      package.json
  2. 6 2
      src/components/pyment/Payment.vue

+ 1 - 1
package.json

@@ -84,4 +84,4 @@
     "npm": ">= 3.0.0"
   },
   "license": "MIT"
-}
+}

+ 6 - 2
src/components/pyment/Payment.vue

@@ -92,12 +92,16 @@ export default {
       let Mnam = "order-order_manager-PayMyOrder";
       LearnWebSI(Mnam, {
         id: this.orderNumber, //订单id
-        pay_money: item.price, //支付金额
+        pay_money: this.data.receivables_money, //支付金额
         bank_transaction_sn: "", //银行交易流水号
       })
         .then((res) => {
           console.log(res);
-          window.location.href = res.pay_page_url;
+          if (!res.pay_page_url) {
+            window.location.href = "/GCLS-Personal/#/OrderPaySuccess";
+          } else {
+            window.location.href = res.pay_page_url;
+          }
           // this.$message({
           //   type: "success",
           //   message: "支付成功",