Browse Source

支付0元跳转问题

秦鹏 3 years ago
parent
commit
242fcf04dd
2 changed files with 7 additions and 3 deletions
  1. 1 1
      package.json
  2. 6 2
      src/components/pyment/Payment.vue

+ 1 - 1
package.json

@@ -18,7 +18,7 @@
     "@ztree/ztree_v3": "^3.5.46",
     "awe-dnd": "^0.3.4",
     "axios": "0.18.1",
-    "book-ui": "file:../GCLS-Book-question-ui/book-ui-0.1.6.tgz",
+    "book-ui": "file:../book-ui-0.1.6.tgz",
     "cnchar": "^3.0.1",
     "cnchar-all": "^3.0.1",
     "cnchar-order": "^3.0.1",

+ 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 && item.price == 0) {
+            window.location.href = "/GCLS-Personal/#/OrderPaySuccess";
+          } else {
+            window.location.href = res.pay_page_url;
+          }
           // this.$message({
           //   type: "success",
           //   message: "支付成功",