|
@@ -140,28 +140,28 @@ function AddLandingPage(props: Props) {
|
|
|
setIsFootlock(() => false)
|
|
|
if (selectData?.adLocation === 'sns') { // 朋友圈信息流
|
|
|
if (selectData?.outerStyle === 0) { // 常规广告
|
|
|
- init({ mediaType: 'IMG', cloudSize: [[{ relation: '=', width: 800, height: 800 }]] })
|
|
|
+ init({ mediaType: 'IMG', cloudSize: [[{ relation: '=', width: 800, height: 800 }]],maxSize:300*1024 })
|
|
|
} else { // 卡片广告
|
|
|
- init({ mediaType: 'IMG', cloudSize: [[{ relation: '=', width: 800, height: 450 }]] })
|
|
|
+ init({ mediaType: 'IMG', cloudSize: [[{ relation: '=', width: 800, height: 450 }]],maxSize:300*1024})
|
|
|
}
|
|
|
} else { // 公众号及其他
|
|
|
- init({ mediaType: 'IMG', cloudSize: [[{ relation: '=', width: 800, height: 800 }], [{ relation: '=', width: 800, height: 450 }], [{ relation: '=', width: 800, height: 640 }], [{ relation: '=', width: 640, height: 800 }]] })
|
|
|
+ init({ mediaType: 'IMG', cloudSize: [[{ relation: '=', width: 800, height: 800 }], [{ relation: '=', width: 800, height: 450 }], [{ relation: '=', width: 800, height: 640 }], [{ relation: '=', width: 640, height: 800 }]] ,maxSize:300*1024})
|
|
|
}
|
|
|
} else if (selectData?.elementType === 'IMAGE') { // 内容图片
|
|
|
setIsFootlock(() => false)
|
|
|
- init({ mediaType: 'IMG', cloudSize: [[{ relation: '=', width: 750, height: null }, { relation: '<=', width: null, height: 1536 }]] })
|
|
|
+ init({ mediaType: 'IMG', cloudSize: [[{ relation: '=', width: 750, height: null }, { relation: '<=', width: null, height: 1536 }]],maxSize:300*1024 })
|
|
|
} else if (selectData?.elementType === 'TOP_SLIDER') { // 轮播图
|
|
|
- init({ mediaType: 'IMG', num: selectData?.imageUrlList?.length || 3, cloudSize: [[{ relation: '=', width: 800, height: 800 }]] })
|
|
|
+ init({ mediaType: 'IMG', num: selectData?.imageUrlList?.length || 3, cloudSize: [[{ relation: '=', width: 800, height: 800 }]],maxSize:300*1024 })
|
|
|
setIsFootlock(() => false)
|
|
|
} else if (selectData?.elementType === 'TOP_VIDEO') { // 视频
|
|
|
if (selectData?.adLocation === 'sns') { // 朋友圈信息流
|
|
|
if (selectData?.outerStyle === 0) { // 常规广告
|
|
|
- init({ mediaType: 'VIDEO', cloudSize: [[{ relation: '=', width: 640, height: 480 }], [{ relation: '=', width: 640, height: 360 }], [{ relation: '=', width: 750, height: 1334 }], [{ relation: '=', width: 720, height: 1280 }] ] })
|
|
|
+ init({ mediaType: 'VIDEO', cloudSize: [[{ relation: '=', width: 640, height: 480 }], [{ relation: '=', width: 640, height: 360 }], [{ relation: '=', width: 750, height: 1334 }], [{ relation: '=', width: 720, height: 1280 }] ],maxSize:20*1024*1024 })
|
|
|
} else { // 卡片广告
|
|
|
- init({ mediaType: 'VIDEO', cloudSize: [[{ relation: '=', width: 750, height: null }, { relation: '<=', width: null, height: 1536 }]] })
|
|
|
+ init({ mediaType: 'VIDEO', cloudSize: [[{ relation: '=', width: 750, height: null }, { relation: '<=', width: null, height: 1536 }]],maxSize:20*1024*1024 })
|
|
|
}
|
|
|
} else { // 公众号及其它
|
|
|
- init({ mediaType: 'VIDEO', cloudSize: [[{ relation: '=', width: 750, height: null }, { relation: '<=', width: null, height: 1536 }]] })
|
|
|
+ init({ mediaType: 'VIDEO', cloudSize: [[{ relation: '=', width: 750, height: null }, { relation: '<=', width: null, height: 1536 }]],maxSize:20*1024*1024 })
|
|
|
setIsFootlock(() => false)
|
|
|
}
|
|
|
} else if (selectData?.elementType === 'shelfnew') { // 图文复合组件 1个
|