!97 【功能优化】支付方式默认选中首个可用方式

Merge pull request !97 from Lcp/pr
This commit is contained in:
芋道源码
2024-09-09 14:58:32 +00:00
committed by Gitee
+6
View File
@@ -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) => {