<adbright-ad mode="{{mode}}" placementId="{{placementId}}" size="{{size}}" data="{{data}}" scrollTop="{{scrollTop}}"
  hasTabbar="{{hasTabbar}}" bind:trriggerevent="eventHandle">
  <!-- 开屏/插屏/激励视频 -->
  <slot></slot>
  <!-- 信息流 -->
  <slot wx:for="{{size}}" wx:key="index" name="list-{{index}}" slot="list-{{index}}"></slot>
  <!-- 自渲染广告位 -->
  <slot wx:for="{{placementIds}}" wx:key="item" name="ad-{{item}}" slot="ad-{{item}}"></slot>
  <view wx:for="{{weixinUnitIds}}" wx:key="index"
    wx:if="{{mode === 'list' && data[item[1]].isFailed && data[item[1]].weixin}}" slot="weixin-{{item[1]}}-{{item[0]}}">
    <weixin-ad config="{{data[item[1]].weixin}}" placementId="{{item[1]}}" bind:trriggerevent="eventHandle"></weixin-ad>
  </view>
  <view wx:if="{{mode === 'banner'}}">
    <weixin-ad wx:if="{{data[placementId].isFailed && data[placementId].weixin}}" config="{{data[placementId].weixin}}"
      placementId="{{placementId}}" bind:trriggerevent="eventHandle"
      slot="weixin-{{placementId}}-{{data[placementId].weixin.unitId}}"></weixin-ad>
  </view>
</adbright-ad>