|
@@ -179,7 +179,7 @@ const AddMaterial: React.FC<Props> = ({ creativeTemplateId, materialData, delive
|
|
|
<strong style={{ fontSize: 20 }}>创意素材</strong>
|
|
|
{(deliveryMode === 'DELIVERY_MODE_CUSTOMIZE' || dynamicCreativeSwitch) ? <>
|
|
|
{videoUploads && Object.keys(videoUploads)?.length > 0 && <Button type="link" onClick={() => {
|
|
|
- setSelectCloudData({ defaultParams: { sizeQueries: creativeTemplateId === 1708 ? [{ relation: '>=', width: 1280, height: 720 }] : [{ relation: '>=', width: videoUploads.restriction.videoRestriction.minWidth, height: videoUploads.restriction.videoRestriction.minHeight }], fileSize: videoUploads.restriction.videoRestriction.fileSize * 1024, materialType: 'video' }, num: 100 })
|
|
|
+ setSelectCloudData({ defaultParams: { sizeQueries: creativeTemplateId === 1708 ? [{ relation: '>=', width: 1280, height: 720 }] : [{ relation: '>=', width: videoUploads.restriction.videoRestriction.minWidth, height: videoUploads.restriction.videoRestriction.minHeight }], fileSize: videoUploads.restriction.videoRestriction.fileSize * 1024, materialType: 'video' }, num: 500 })
|
|
|
setMaterialConfig({
|
|
|
...materialConfig,
|
|
|
type: videoUploads.name,
|
|
@@ -192,7 +192,7 @@ const AddMaterial: React.FC<Props> = ({ creativeTemplateId, materialData, delive
|
|
|
}, 100)
|
|
|
}}>批量添加视频素材</Button>}
|
|
|
{imgUploads && Object.keys(imgUploads)?.length > 0 && <Button type="link" onClick={() => {
|
|
|
- setSelectCloudData({ defaultParams: { sizeQueries: [{ relation: '=', width: imgUploads.restriction.imageRestriction.width, height: imgUploads.restriction.imageRestriction.height }], fileSize: imgUploads.restriction.imageRestriction.fileSize * 1024, materialType: 'image' }, num: 100 })
|
|
|
+ setSelectCloudData({ defaultParams: { sizeQueries: [{ relation: '=', width: imgUploads.restriction.imageRestriction.width, height: imgUploads.restriction.imageRestriction.height }], fileSize: imgUploads.restriction.imageRestriction.fileSize * 1024, materialType: 'image' }, num: 500 })
|
|
|
setMaterialConfig({
|
|
|
...materialConfig,
|
|
|
type: imgUploads.name,
|
|
@@ -210,7 +210,7 @@ const AddMaterial: React.FC<Props> = ({ creativeTemplateId, materialData, delive
|
|
|
type="link"
|
|
|
onClick={() => {
|
|
|
setSelectCloudData({
|
|
|
- num: 100,
|
|
|
+ num: 500,
|
|
|
defaultParams: {
|
|
|
materialType: 'image',
|
|
|
sizeQueries: [
|
|
@@ -227,7 +227,7 @@ const AddMaterial: React.FC<Props> = ({ creativeTemplateId, materialData, delive
|
|
|
setMaterialConfig({
|
|
|
...materialConfig,
|
|
|
type: 'image',
|
|
|
- max: 100,
|
|
|
+ max: 500,
|
|
|
index: 20000,
|
|
|
adcreativeTemplateId: creativeTemplateId,
|
|
|
isGroup: false
|
|
@@ -238,7 +238,7 @@ const AddMaterial: React.FC<Props> = ({ creativeTemplateId, materialData, delive
|
|
|
}}>批量添加图片素材</Button>
|
|
|
<Button type="link" onClick={() => {
|
|
|
setSelectCloudData({
|
|
|
- num: 100,
|
|
|
+ num: 500,
|
|
|
defaultParams: {
|
|
|
materialType: 'video',
|
|
|
sizeQueries: [
|
|
@@ -251,7 +251,7 @@ const AddMaterial: React.FC<Props> = ({ creativeTemplateId, materialData, delive
|
|
|
setMaterialConfig({
|
|
|
...materialConfig,
|
|
|
type: 'video',
|
|
|
- max: 100,
|
|
|
+ max: 500,
|
|
|
index: 20000,
|
|
|
adcreativeTemplateId: creativeTemplateId,
|
|
|
isGroup: false
|