|
@@ -1,5 +1,5 @@
|
|
|
import React, { useCallback, useEffect, useMemo, useState } from 'react'
|
|
|
-import { Modal, Form, Input, Divider, Select, Radio, DatePicker, Switch, Spin } from 'antd'
|
|
|
+import { Modal, Form, Input, Divider, Select, Radio, Switch, Spin } from 'antd'
|
|
|
import { SiteSetEnum, PromotedObjectType } from '@/services/launchAdq/enum'
|
|
|
import { ModalConfig } from '.'
|
|
|
import styles from './index.less'
|
|
@@ -8,6 +8,7 @@ import { useAjax } from '@/Hook/useAjax'
|
|
|
import { get_adcreative_template, get_adcreative_template_list } from '@/services/launchAdq/global'
|
|
|
import { AdcreativeTemplate, AdcreativeTemplateList } from '@/services/launchAdq'
|
|
|
import { mySet } from '@/utils/arrFn'
|
|
|
+import SelectCloud from '@/pages/launchSystemNew/components/selectCloud'
|
|
|
interface Props {
|
|
|
title?: string,
|
|
|
visible: boolean,
|
|
@@ -24,7 +25,7 @@ function CreativeModal(props: Props) {
|
|
|
// 变量
|
|
|
const [adcreative_template, set_adcreative_template] = useState<AdcreativeTemplate>()
|
|
|
const [adcreative_template_list, set_adcreative_template_list] = useState<AdcreativeTemplateList[]>([])
|
|
|
-
|
|
|
+ const [selectImgVisible,set_selectImgVisible] = useState(true)
|
|
|
const [form] = Form.useForm();
|
|
|
const [pupState, setPupState] = useState({
|
|
|
kp_show: false,
|
|
@@ -421,6 +422,11 @@ function CreativeModal(props: Props) {
|
|
|
</>
|
|
|
}
|
|
|
</Form>
|
|
|
+ {/* //sliderImgContent={sliderImgContent} */}
|
|
|
+ {/* 选择素材 */}
|
|
|
+ {selectImgVisible && <SelectCloud visible={selectImgVisible} onClose={() => set_selectImgVisible(false)} onChange={(content)=>{
|
|
|
+ console.log(content)
|
|
|
+ }} />}
|
|
|
</Modal >
|
|
|
}
|
|
|
export default CreativeModal
|