Commit c8698137 authored by 武广's avatar 武广

fix: 外卖选择商品弹窗 默认清空店铺

parent cb57c3d6
......@@ -229,6 +229,7 @@ const BasicLayout = props => {
}
if (isTob && searchPrams.token) {
console.log('window.parent :>> ', window.parent);
window.wp = window.parent;
return tobLayout();
}
return merchantLayout();
......
......@@ -159,7 +159,7 @@ const CustomerInfo = props => {
// 改变餐品类型 (选自助餐必选外卖)
const onChangeMealType = async ms => {
try {
if (props.info && props.info.id && ms.length < mealTypes.length) {
if (props.id && ms.length < mealTypes.length) {
await checkConfirm();
}
// 添加餐段
......
......@@ -231,6 +231,7 @@ const SaleDateModal = props => {
useEffect(() => {
if (+props.productType === 5) {
setShopId(null);
getShopList();
} else {
setShopId(props.shopID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment