<import-sjs from="./index.sjs" name="utils" />
<view
  class="advert-wheel"
  style="{{ utils.getStyle(componentData) }}"
  a:if="{{ utils.hasService(componentData) }}"
>
    <swiper
      circular="{{circular}}"
      class="advert-banner"
      autoplay="{{autoplay}}"
      indicator-dots="{{componentData.serviceList.length > 1}}"
      interval="{{utils.getInterval(componentData,interval)}}"
    >
      <block a:for="{{ utils.getServiceList(componentData) }}">
        <swiper-item class="swiperItem" key="{{index}}">
          <button-auth className="advert-img" item="{{item}}">
            <image
              class="advert-img"
              style="{{utils.getStyle(componentData)}}"
              src="{{ utils.getFullUrl(item.icon,imgSrcPrefix) }}"
            />
          </button-auth>
        </swiper-item>
      </block>
    </swiper>
</view>
