修复第一次进入结算页面支付方式按钮未显示文字问题

This commit is contained in:
2025-12-15 16:09:54 +08:00
parent 75f16170dd
commit eae0dd75f1
2 changed files with 6 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ const radiovalue = defineModel({
watch( watch(
() => props.disablePayType, () => props.disablePayType,
(newval) => { (newval) => {
console.log('props.disablePayType',newval)
const canUsePayType = paymentMethodList.value.filter((item) => { const canUsePayType = paymentMethodList.value.filter((item) => {
return !newval.includes(item.name); return !newval.includes(item.name);
}); });
@@ -195,9 +195,12 @@ const groupChanges = (type) => {
// return; // return;
// } // }
radiovalue.value = item; radiovalue.value = item;
emits("groupChange", paymentMethodName.value[type - 1]);
}; };
watch(()=> radiovalue.value.type,(newval)=>{
emits("groupChange", radiovalue.value);
})
// 去充值 // 去充值
const goRecharge = () => { const goRecharge = () => {
if (props.disablePayType.includes("余额支付")) { if (props.disablePayType.includes("余额支付")) {

View File

@@ -155,7 +155,7 @@
size: formData.form.size, size: formData.form.size,
// status: formData.form.status, // status: formData.form.status,
shopId: formData.shopId, shopId: formData.shopId,
id: formData.id id: formData.id||''
}) })
} }
if (res.totalPage == 0 || res.totalPage == 1 && res.totalRow <= 10) { if (res.totalPage == 0 || res.totalPage == 1 && res.totalRow <= 10) {