收藏
回答

视频中加视频广告,每5个视频加一个广告,滑动页面小程序会崩溃,这是怎么回事?

<view class="ad_area" wx:if="{{(index+1)%5==0&&!((oldscrollTop[father_index]+900)>=((ad[index]+1)*1500+adheight*ad[index]-300)&&((ad[index]+1)*1500+adheight*ad[index]-300)>=(oldscrollTop[father_index]-600)&&(currentTab-1)<=father_index&&(currentTab+1)>=father_index)}}" style="position:relative;width:100%;background: rgba(102, 102, 102, 0.06666666666666667);height:{{adheight-25}}px;margin-top: 25px;display: none;">
    <ad wx:if="{{!adflag[father_index+'_'+index]}}" unit-id="adunit-205234fa40910d11" ad-type="video" ad-theme="white" style="zoom:{{((adheight-25)/0.72)/((adheight-25)/0.72+30)}};" data-index="{{father_index+'_'+index}}" binderror="adError"></ad>
    <view wx:if="{{adflag[father_index+'_'+index]}}" style="width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;">
        <image src="../../static/images/aderror.png" style="width: 100%;height: 100%;"></image>
    </view>
</view>

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签