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

pull/97/head
Lcp 2024-09-09 12:17:12 +08:00
parent 29584a108b
commit 97711bad3e
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) => {