|
@@ -15,8 +15,6 @@ import AES from 'crypto-js/aes.js'
|
|
|
let loadedMetaFiredInOnce = 0
|
|
|
let pqtId
|
|
|
|
|
|
-console.log('YLQCustom', Taro.$global)
|
|
|
-
|
|
|
function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
let {
|
|
|
adpId,
|
|
@@ -30,6 +28,7 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
const [adData, setAdData] = useState<any>({})
|
|
|
|
|
|
useReady(() => {
|
|
|
+ console.log('YLQCustom init', Taro.$global)
|
|
|
init()
|
|
|
pqtId = generateUUID()
|
|
|
getAdConfig()
|
|
@@ -204,7 +203,7 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
|
|
|
return (
|
|
|
<>
|
|
|
- {show && <View className='pq-custom' onClick={clickMask}>
|
|
|
+ {show && <View className='pq-custom' onClick={clickMask} style={{width: `${width}px`}}>
|
|
|
<View className='custom-container'>
|
|
|
{/* 广告icon */}
|
|
|
<View className='icon'>
|
|
@@ -267,7 +266,7 @@ function Custom({
|
|
|
style={style}
|
|
|
objectFit='fill'
|
|
|
controls={false}
|
|
|
- autoplay
|
|
|
+ autoplay={false}
|
|
|
loop
|
|
|
src={adData.materialAddress}
|
|
|
poster={adData.materialCoverPic}
|
|
@@ -277,7 +276,7 @@ function Custom({
|
|
|
onClick={onClick}
|
|
|
onLoadedMetaData={onLoadedMetaData}
|
|
|
/>
|
|
|
- <View className='custom-bottom'>
|
|
|
+ <View className='custom-bottom' style={{width: `${width}px`}}>
|
|
|
<Image src={adData.creativeLogoAddress} className='logo' />
|
|
|
<View className='title'>{adData.creativeTitle}</View>
|
|
|
<View className='button'>{adData.clickButtonText}</View>
|