{{if !empty($banner_list)}}
    <div class="banner theme-data-edit-event" data-module="slide_list">
        <div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{&quot;directionNav&quot;:false}'>
            <ul class="am-slides">
                {{foreach $banner_list as $banner}}
                    {{if !empty($banner['images_url'])}}
                        <li {{if !empty($banner['bg_color'])}}style="background: {{$banner.bg_color}};"{{/if}}>
                            {{switch banner.event_type}}
                                {{case 3}}
                                    <!-- 地图 -->
                                    <a href="javascript:;" {{if !empty($banner['event_value_data']) and isset($banner['event_value_data'][2]) and isset($banner['event_value_data'][3]) and $banner['event_value_data'][2] neq 0 and $banner['event_value_data'][3] neq 0}}class="submit-map-popup" data-lng="{{$banner['event_value_data'][2]}}" data-lat="{{$banner['event_value_data'][3]}}"{{/if}}><img src="{{$banner.images_url}}" alt="{{$banner.name}}" /></a>
                                {{/case}}
                                {{case 4}}
                                    <!-- 电话 -->
                                    <a {{if !empty($banner['event_value'])}}href="tel:{{$banner.event_value}}"{{else /}}href="javascript:;"{{/if}}><img src="{{$banner.images_url}}" alt="{{$banner.name}}" /></a>
                                {{/case}}
                                {{default /}}
                                    <!-- 默认url地址 -->
                                    <a {{if !empty($banner['event_value'])}}href="{{$banner.event_value}}" target="_blank"{{else /}}href="javascript:;"{{/if}}><img src="{{$banner.images_url}}" alt="{{$banner.name}}" /></a>
                            {{/switch}}
                        </li>
                    {{/if}}
                {{/foreach}}
            </ul>
        </div>
    </div>
{{/if}}