|
@@ -93,12 +93,16 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
|
|
|
function videoClick() {
|
|
|
adActionReport(reportBusinessType.adClick, 'adClick')
|
|
|
- videoOpenMiniProgram()
|
|
|
+ const { landingPageAddress, landingPageType, landingPageAppid } = adData
|
|
|
+ if (landingPageType === 1) { // 半屏小程序
|
|
|
+ openOriginMiniProgram(landingPageAddress, landingPageAppid)
|
|
|
+ } else if (landingPageType === 2) { // h5
|
|
|
+ openSelfMiniProgram(landingPageAddress)
|
|
|
+ }
|
|
|
closeCustom()
|
|
|
}
|
|
|
|
|
|
- function videoOpenMiniProgram() {
|
|
|
- const { landingPageAddress } = adData
|
|
|
+ function openSelfMiniProgram(landingPageAddress) {
|
|
|
const query = queryURLParams(createAdActionReportData())
|
|
|
|
|
|
adActionReport(reportBusinessType.adPlay, 'adOpen')
|
|
@@ -107,7 +111,16 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
|
|
|
onEmitOpenMiniProgram(
|
|
|
'wx5ef216d1caf4a0ea',
|
|
|
- `/pages/ad-launch-page/index?q=${path}`
|
|
|
+ `/pages/ad-launch-page/index?q=${path}`,
|
|
|
+ {}
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ function openOriginMiniProgram(landingPageAddress, landingPageAppid) {
|
|
|
+ onEmitOpenMiniProgram(
|
|
|
+ landingPageAppid,
|
|
|
+ landingPageAddress,
|
|
|
+ { pqtId }
|
|
|
)
|
|
|
}
|
|
|
|