fix: 代客下单优化店铺信息为空时就餐类型联动效果
This commit is contained in:
parent
75378c9371
commit
2de28da055
|
|
@ -238,6 +238,7 @@ export interface UserInfo {
|
||||||
|
|
||||||
/** 店铺logo */
|
/** 店铺logo */
|
||||||
logo: string;
|
logo: string;
|
||||||
|
eatModel: string;
|
||||||
[property: string]: any
|
[property: string]: any
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -595,6 +595,9 @@ watch(
|
||||||
);
|
);
|
||||||
|
|
||||||
function dinerDisabled(item, index) {
|
function dinerDisabled(item, index) {
|
||||||
|
if (!shopUser.userInfo.eatModel) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
return !shopUser.userInfo.eatModel.includes("dine-in");
|
return !shopUser.userInfo.eatModel.includes("dine-in");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue