Commit 82b912ec authored by 前端-黄佳鑫's avatar 前端-黄佳鑫
parents 5e87c1a7 b50a824d
.mobileSettingPanel { .mobileSettingPanel {
height: 100%;
overflow-y: auto; overflow-y: auto;
background-color: #FFF; background-color: #FFF;
transition: width .25s; transition: width .25s;
......
...@@ -14,6 +14,8 @@ import ActivityImage from '@/asserts/activity/ActivityImage.svg'; ...@@ -14,6 +14,8 @@ import ActivityImage from '@/asserts/activity/ActivityImage.svg';
import { priceFormat } from '@/utils/numberFomat'; import { priceFormat } from '@/utils/numberFomat';
import useSamLevelProps from '../../../common/hooks/useSameLevelProps';
interface MarketingCardGoodProps { interface MarketingCardGoodProps {
...@@ -26,12 +28,13 @@ interface MarketingCardGoodProps { ...@@ -26,12 +28,13 @@ interface MarketingCardGoodProps {
} }
const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCardGoodProps) => { const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCardGoodProps) => {
const { id, actType, exType, pageConfig } = props; const { id, actType, exType, pageConfig, selectedKey } = props;
const { query: { shopId } }: any = history.location; const { query: { shopId } }: any = history.location;
const [record, setRecord] = useState<any>([]); const [record, setRecord] = useState<any>([]);
const [actVisible, setActVisible] = useState(false); const [actVisible, setActVisible] = useState(false);
const [ignoresfilters] = useState(['activityType']); const [ignoresfilters] = useState(['activityType']);
const sameLevelPropsList = useSamLevelProps({ key: selectedKey })
useEffect(() => { useEffect(() => {
if (id && id != record[0]?.id) { if (id && id != record[0]?.id) {
...@@ -251,6 +254,7 @@ const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCar ...@@ -251,6 +254,7 @@ const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCar
onCancel={() => setActVisible(false)} onCancel={() => setActVisible(false)}
mode='radio' mode='radio'
ignoresFilters={ignoresfilters} ignoresFilters={ignoresfilters}
disabledList={sameLevelPropsList ? sameLevelPropsList.map((item) => `${item.id}_${item.activityId}`) : []}
/> />
</div> </div>
); );
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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