fix: 代客下单优化店铺信息为空时就餐类型联动效果

This commit is contained in:
YeMingfei666 2025-03-18 17:15:48 +08:00
parent 75378c9371
commit 2de28da055
2 changed files with 4 additions and 0 deletions

View File

@ -238,6 +238,7 @@ export interface UserInfo {
/** 店铺logo */
logo: string;
eatModel: string;
[property: string]: any
}

View File

@ -595,6 +595,9 @@ watch(
);
function dinerDisabled(item, index) {
if (!shopUser.userInfo.eatModel) {
return true;
}
if (index == 0) {
return !shopUser.userInfo.eatModel.includes("dine-in");
}