<view>
<!-- 一般广告 -->
<ad wx:if="{{config.type === 'ad'}}" unit-id="{{config.unitId}}" ad-intervals="{{config.adIntervals}}"
  ad-type="{{config.adType || 'banner'}}" ad-theme="{{config.adTheme || 'white'}}" bindload="loadSuccess"
  binderror="loadError" bindclose="close"></ad>
<!-- 模板广告 -->
<ad-custom wx:if="{{config.type === 'ad-custom'}}" unit-id="{{config.unitId}}" ad-intervals="{{config.adIntervals}}"
  bindload="loadSuccess" binderror="loadError"></ad-custom>
</view>