Sfoglia il codice sorgente

支付的0元页面跳转

秦鹏 3 anni fa
parent
commit
0521499e61
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      src/components/payment/Payment.vue

+ 5 - 1
src/components/payment/Payment.vue

@@ -147,7 +147,11 @@ export default {
       })
         .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/#/EnterSys/OrderPaySuccess";
+          } else {
+            window.location.href = res.pay_page_url;
+          }
           // this.$message({
           //   type: "success",
           //   message: "支付成功",