guanchunjie 3 yıl önce
ebeveyn
işleme
be1a77f11e
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      src/components/common/Payment.vue

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

@@ -89,6 +89,8 @@ export default {
   methods: {
   methods: {
     // 购买
     // 购买
     buy(item) {
     buy(item) {
+      console.log("应付金额");
+      console.log(this.data.receivables_money);
       this.loading = true;
       this.loading = true;
       // 首先添加订单
       // 首先添加订单
       let Mnam = "order-order_manager-PayMyOrder";
       let Mnam = "order-order_manager-PayMyOrder";
@@ -101,8 +103,8 @@ export default {
           //this.loading = false;
           //this.loading = false;
           this.judgePayResult(true);
           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 {
           } else {
             window.location.href = res.pay_page_url;
             window.location.href = res.pay_page_url;
           }
           }