Browse Source

!97 【功能优化】支付方式默认选中首个可用方式
Merge pull request !97 from Lcp/pr

芋道源码 11 months ago
parent
commit
55131bf0c3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      pages/pay/index.vue

+ 6 - 0
pages/pay/index.vue

@@ -174,6 +174,12 @@
       return
     }
     state.payMethods = getPayMethods(data)
+    state.payMethods.find(item => {
+      if (item.value && !item.disabled) {
+        state.payment = item.value;
+        return true;
+      }
+    });
   }
 
   onLoad((options) => {