|
@@ -1,7 +1,7 @@
|
|
|
import React, { useEffect, useState } from "react"
|
|
|
import style from '../../tencentAdPutIn/create/index.less'
|
|
|
-import { AD_STATUS_ENUM, CONVERSION_DATA_ENUM, CONVERSION_TARGET_ENUM, DELIVERY_MODE_ENUM, PAGE_TYPE_ENUM, TEXT_LINK_TYPE_ENUM, pageSpecFieldConVertUn } from "../../tencentAdPutIn/const"
|
|
|
-import { Space } from "antd"
|
|
|
+import { AD_STATUS_ENUM, CONVERSION_DATA_ENUM, CONVERSION_TARGET_ENUM, DELIVERY_MODE_ENUM, FLOATING_ZONE_TYPE_ENUM, PAGE_TYPE_ENUM, TEXT_LINK_TYPE_ENUM } from "../../tencentAdPutIn/const"
|
|
|
+import { Space, Tag } from "antd"
|
|
|
import { getProfilesApi } from "@/services/adqV3/global"
|
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
|
|
|
@@ -19,7 +19,7 @@ const DynamicTooltip: React.FC<Props> = ({ data: dynamicData }) => {
|
|
|
|
|
|
/************************************/
|
|
|
const { deliveryMode, creativeTemplateId, dynamicCreativeName, creativeComponents, configuredStatus } = dynamicData
|
|
|
- const { textLink, actionButton, showData, brand, mainJumpInfo } = creativeComponents || {}
|
|
|
+ const { textLink, actionButton, showData, brand, mainJumpInfo, creativeLabelDTOS, creativeBarrageDTOS, floatingZoneComponent } = creativeComponents || {}
|
|
|
|
|
|
const [profileData, setprofileData] = useState<any>()
|
|
|
const getProfiles = useAjax((params) => getProfilesApi(params))
|
|
@@ -72,11 +72,28 @@ const DynamicTooltip: React.FC<Props> = ({ data: dynamicData }) => {
|
|
|
<p>按钮文案:{actionButton?.[0]?.value?.buttonText}</p>
|
|
|
{actionButton?.[0]?.value?.jumpInfo?.pageType && <p>跳转落地页:{PAGE_TYPE_ENUM[actionButton?.[0]?.value?.jumpInfo?.pageType as keyof typeof PAGE_TYPE_ENUM]}</p>}
|
|
|
</>}
|
|
|
+ {creativeLabelDTOS?.length > 0 && <>
|
|
|
+ <p style={{ fontWeight: 'bold', color: '#000' }}>标签:</p>
|
|
|
+ {creativeLabelDTOS.map((item: { content: string }, index: number) => <Tag key={index}>{item.content}</Tag>)}
|
|
|
+ </>}
|
|
|
+ {creativeBarrageDTOS?.length > 0 && <>
|
|
|
+ <p style={{ fontWeight: 'bold', color: '#000' }}>弹幕:</p>
|
|
|
+ {creativeBarrageDTOS.map((item: { text: string }, index: number) => <Tag key={index}>{item.text}</Tag>)}
|
|
|
+ </>}
|
|
|
{showData?.length > 0 && <>
|
|
|
<p style={{ fontWeight: 'bold', color: '#000' }}>数据外显:开启</p>
|
|
|
<p>数据类型:{CONVERSION_DATA_ENUM[showData?.[0]?.value?.conversionDataType as keyof typeof CONVERSION_DATA_ENUM]}</p>
|
|
|
<p>转化行为:{CONVERSION_TARGET_ENUM[showData?.[0]?.value?.conversionTargetType as keyof typeof CONVERSION_TARGET_ENUM]}</p>
|
|
|
</>}
|
|
|
+ {floatingZoneComponent && Object.keys(floatingZoneComponent).length > 0 && <>
|
|
|
+ <p style={{ fontWeight: 'bold', color: '#000' }}>浮层卡片:{floatingZoneComponent?.floatingZoneSwitch ? '开启' : '关闭'}</p>
|
|
|
+ {floatingZoneComponent?.floatingZoneType && <p>复层卡片类型:{FLOATING_ZONE_TYPE_ENUM[floatingZoneComponent.floatingZoneType as keyof typeof FLOATING_ZONE_TYPE_ENUM]}</p>}
|
|
|
+ {floatingZoneComponent?.floatingZoneImageUrl && <p style={{ display: 'flex', alignItems: 'flex-start' }}>创意图片:<img src={floatingZoneComponent?.floatingZoneImageUrl} width={40} /></p>}
|
|
|
+ {floatingZoneComponent?.floatingZoneSingleImageUrl && <p style={{ display: 'flex', alignItems: 'flex-start' }}>创意图片:<img src={floatingZoneComponent?.floatingZoneSingleImageUrl} width={40} /></p>}
|
|
|
+ {floatingZoneComponent?.floatingZoneName && <p>文案:{floatingZoneComponent.floatingZoneName}</p>}
|
|
|
+ {floatingZoneComponent?.floatingZoneDesc && <p>文案:{floatingZoneComponent.floatingZoneDesc}</p>}
|
|
|
+ {floatingZoneComponent?.floatingZoneButtonText && <p>按钮文案:{floatingZoneComponent.floatingZoneButtonText}</p>}
|
|
|
+ </>}
|
|
|
</>}
|
|
|
</div>
|
|
|
}
|