|
@@ -20,7 +20,7 @@ const CreativeConversionAssistant: React.FC<{ automaticSiteEnabled?: boolean, pu
|
|
|
|
|
|
|
|
/**************************************/
|
|
/**************************************/
|
|
|
const { creativeComponents, form, isUpdate, setIsUpdate, adgroups } = useContext(DispatchDynamic)!;
|
|
const { creativeComponents, form, isUpdate, setIsUpdate, adgroups } = useContext(DispatchDynamic)!;
|
|
|
- const { siteSet } = adgroups
|
|
|
|
|
|
|
+ const { siteSet, deliveryMethod } = adgroups
|
|
|
const textLinkShow = Form.useWatch('textLinkShow', form)
|
|
const textLinkShow = Form.useWatch('textLinkShow', form)
|
|
|
const actionButtonShow = Form.useWatch('actionButtonShow', form)
|
|
const actionButtonShow = Form.useWatch('actionButtonShow', form)
|
|
|
const showDataShow = Form.useWatch('showDataShow', form)
|
|
const showDataShow = Form.useWatch('showDataShow', form)
|
|
@@ -129,7 +129,7 @@ const CreativeConversionAssistant: React.FC<{ automaticSiteEnabled?: boolean, pu
|
|
|
/** 微信文字链 */
|
|
/** 微信文字链 */
|
|
|
const textLinkContent = useMemo(() => {
|
|
const textLinkContent = useMemo(() => {
|
|
|
let textLink = creativeComponents?.text_link
|
|
let textLink = creativeComponents?.text_link
|
|
|
- if (textLink && ![1707, 1708].includes(creativeTemplateId) && !automaticSiteEnabled) {
|
|
|
|
|
|
|
+ if (textLink && ![1707, 1708].includes(creativeTemplateId) && deliveryMethod === 'SMART' ? true : !automaticSiteEnabled) {
|
|
|
let pageSpecPageType = pageSpec?.[0]?.pageType || 'PAGE_TYPE_WECHAT_CANVAS'
|
|
let pageSpecPageType = pageSpec?.[0]?.pageType || 'PAGE_TYPE_WECHAT_CANVAS'
|
|
|
let textLinkRequired, linkNameEnumeration: { label: string, value: string }[] = [];
|
|
let textLinkRequired, linkNameEnumeration: { label: string, value: string }[] = [];
|
|
|
let linkNamePageType, linkNamePageTypeEnumeration: PULLIN.DataType[] = [];
|
|
let linkNamePageType, linkNamePageTypeEnumeration: PULLIN.DataType[] = [];
|