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

Merge pull request !97 from Lcp/pr
pull/99/head
芋道源码 2024-09-09 14:58:32 +00:00 committed by Gitee
commit 55131bf0c3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 6 additions and 0 deletions

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) => {