fix: 代客下单优化店铺信息为空时就餐类型联动效果
This commit is contained in:
@@ -238,6 +238,7 @@ export interface UserInfo {
|
||||
|
||||
/** 店铺logo */
|
||||
logo: string;
|
||||
eatModel: string;
|
||||
[property: string]: any
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user