Explorar o código

价格为0是减少判断

秦鹏 %!s(int64=3) %!d(string=hai) anos
pai
achega
4012ed1f8c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/components/pyment/Payment.vue

+ 3 - 1
src/components/pyment/Payment.vue

@@ -87,6 +87,8 @@ export default {
   methods: {
     // 购买
     buy(item) {
+      debugger;
+      console.log(this.data.receivables_money);
       this.loading = true;
       // 首先添加订单
       let Mnam = "order-order_manager-PayMyOrder";
@@ -97,7 +99,7 @@ export default {
       })
         .then((res) => {
           console.log(res);
-          if (!res.pay_page_url && item.price == 0) {
+          if (!res.pay_page_url) {
             window.location.href = "/GCLS-Personal/#/OrderPaySuccess";
           } else {
             window.location.href = res.pay_page_url;