Browse Source

支付的0元页面跳转

秦鹏 3 years ago
parent
commit
0521499e61
1 changed files with 5 additions and 1 deletions
  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: "支付成功",