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