guanchunjie преди 3 години
родител
ревизия
be1a77f11e
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/components/common/Payment.vue

+ 4 - 2
src/components/common/Payment.vue

@@ -89,6 +89,8 @@ export default {
   methods: {
     // 购买
     buy(item) {
+      console.log("应付金额");
+      console.log(this.data.receivables_money);
       this.loading = true;
       // 首先添加订单
       let Mnam = "order-order_manager-PayMyOrder";
@@ -101,8 +103,8 @@ export default {
           //this.loading = false;
           this.judgePayResult(true);
           // 调取支付接口
-          if (!res.pay_page_url && item.price == 0) {
-            window.location.href = "/GCLS-Personal/#/OrderPaySuccess";
+          if (!res.pay_page_url) {
+            this.$router.push("/OrderPaySuccess");
           } else {
             window.location.href = res.pay_page_url;
           }