Explorar el Código

支付的0元页面跳转

秦鹏 hace 3 años
padre
commit
0521499e61
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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: "支付成功",