Commit c8698137 authored by 武广's avatar 武广

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

parent cb57c3d6
...@@ -229,6 +229,7 @@ const BasicLayout = props => { ...@@ -229,6 +229,7 @@ const BasicLayout = props => {
} }
if (isTob && searchPrams.token) { if (isTob && searchPrams.token) {
console.log('window.parent :>> ', window.parent); console.log('window.parent :>> ', window.parent);
window.wp = window.parent;
return tobLayout(); return tobLayout();
} }
return merchantLayout(); return merchantLayout();
......
...@@ -159,7 +159,7 @@ const CustomerInfo = props => { ...@@ -159,7 +159,7 @@ const CustomerInfo = props => {
// 改变餐品类型 (选自助餐必选外卖) // 改变餐品类型 (选自助餐必选外卖)
const onChangeMealType = async ms => { const onChangeMealType = async ms => {
try { try {
if (props.info && props.info.id && ms.length < mealTypes.length) { if (props.id && ms.length < mealTypes.length) {
await checkConfirm(); await checkConfirm();
} }
// 添加餐段 // 添加餐段
......
...@@ -231,6 +231,7 @@ const SaleDateModal = props => { ...@@ -231,6 +231,7 @@ const SaleDateModal = props => {
useEffect(() => { useEffect(() => {
if (+props.productType === 5) { if (+props.productType === 5) {
setShopId(null);
getShopList(); getShopList();
} else { } else {
setShopId(props.shopID); 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