Browse Source

支付的链接跳转

秦鹏 3 years ago
parent
commit
48f46db217
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/components/payment/Payment.vue

+ 7 - 7
src/components/payment/Payment.vue

@@ -138,7 +138,6 @@ export default {
     // 购买
     buy(item) {
       this.loading = true;
-
       // 首先添加订单
       let Mnam = "order-order_manager-PayMyOrder";
       LearnWebSI(Mnam, {
@@ -148,12 +147,13 @@ export default {
       })
         .then((res) => {
           console.log(res);
-          this.$message({
-            type: "success",
-            message: "支付成功",
-          });
-          this.closePyment("支付成功");
-          this.loading = false;
+          window.location.href = res.pay_page_url;
+          // this.$message({
+          //   type: "success",
+          //   message: "支付成功",
+          // });
+          // this.closePyment("支付成功");
+          // this.loading = false;
           // 调取支付接口
         })
         .catch((res) => {