视频中加视频广告,每5个视频加一个广告,滑动页面小程序会崩溃,这是怎么回事?
发布于 7 年前 作者 zye 9632 次浏览 来自 官方Issues
<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 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部