<!-- 整体左右滚动 -->
{{if !empty($module_data['goods_list']) and is_array($module_data['goods_list'])}}
    <div class="module-goods-container module-goods-slider-container module-goods-slider-binding {{if isset($goods_cover_type)}}{{$goods_cover_type}}{{/if}}">
        <!-- 基础导航 -->
        {{if !empty($module_data['base_nav'])}}
            <div class="am-container">
                <div class="base-nav am-nbfc">
                    {{if !empty($module_data['base_nav']['title'])}}
                        <p class="base-nav-title am-title-left-border">{{$module_data.base_nav.title}}</p>
                    {{/if}}
                    {{if !empty($module_data['base_nav']['vice_title'])}}
                        <p class="base-nav-desc">{{$module_data.base_nav.vice_title}}</p>
                    {{/if}}
                    {{if !empty($module_data['base_nav']['keywords_arr'])}}
                        <div class="base-nav-keywords">
                            {{foreach $module_data.base_nav.keywords_arr as $kdv}}
                                <a href="{{:MyUrl('index/search/index', ['wd'=>StrToAscii($kdv)])}}" target="_blank" rel="noopener noreferrer">{{$kdv}}</a>
                            {{/foreach}}
                        </div>
                    {{/if}}
                    {{if !empty($module_data['base_nav']['url'])}}
                        <span class="base-nav-more">
                            <a href="{{$module_data.base_nav.url}}" target="_blank" rel="noopener noreferrer">{{:MyLang('more_title')}} <i class="iconfont icon-angle-right"></i></a>
                        </span>
                    {{/if}}
                </div>
            </div>
        {{/if}}
        <!-- 列表 -->

        <div class="am-container">
            <div class="am-slider am-slider-default" data-am-flexslider='{"animation":"slide","controlNav":{{if !isset($module_data['is_control_nav']) or $module_data['is_control_nav'] eq 1}}true{{else /}}false{{/if}},"slideshow":{{if isset($module_data['is_auto_play']) and $module_data['is_auto_play'] eq 1}}true{{else /}}false{{/if}},"slideshowSpeed":4000,"animationSpeed":2000,itemWidth: {{if empty($module_data['item_width'])}}200{{else /}}{{$module_data.item_width}}{{/if}}, 
            itemMargin: {{if !empty($module_data['item_margin'])}}{{$module_data.item_margin}}{{/if}}}'>
                <ul class="am-slides am-gallery-overlay multigraph-discolour">
                    {{foreach $module_data.goods_list as $v}}
                        <li class="am-padding-0">
                            {{if isset($module_data['is_connect']) and $module_data['is_connect'] eq 1}}
                                <i class="join iconfont icon-add"></i>
                            {{/if}}
                            <div class="content-item am-radius {{if isset($module_data['is_border']) and $module_data['is_border'] eq 1}}am-padding-sm{{else /}}am-border-0{{/if}} theme-data-edit-event" data-id="{{$v.id}}" data-module="goods">
                                <!-- 商品信息顶部钩子 -->
                                {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                                    <div class="plugins-tag">
                                        <span>plugins_view_module_goods_inside_top</span>
                                    </div>
                                {{/if}}
                                {{php}}
                                    $hook_name = 'plugins_view_module_goods_inside_top';
                                    $hook_data = MyEventTrigger($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'goods_id'=>$v['id'], 'goods'=>$v, 'module'=>'slider-binding', 'type'=>empty($module_data['type']) ? '' : $module_data['type']]);
                                    if(!empty($hook_data) && is_array($hook_data))
                                    {
                                        foreach($hook_data as $hook)
                                        {
                                            if(is_string($hook) || is_int($hook))
                                            {
                                                echo htmlspecialchars_decode($hook);
                                            }
                                        }
                                    }
                                {{/php}}

                                <a href="{{$v.goods_url}}" target="_blank" rel="noopener noreferrer">
                                    <img src="{{$v.images}}" class="am-radius" width="100" />
                                </a>
                                <a href="{{$v.goods_url}}" target="_blank" rel="noopener noreferrer" class="am-block content-item-title">
                                    <p class="am-text-truncate-2">{{$v.title|raw}}</p>
                                </a>

                                <!-- 商品信息售价顶部钩子 -->
                                {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                                    <div class="plugins-tag">
                                        <span>plugins_view_module_goods_inside_price_top</span>
                                    </div>
                                {{/if}}
                                {{php}}
                                    $hook_name = 'plugins_view_module_goods_inside_price_top';
                                    $hook_data = MyEventTrigger($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'goods_id'=>$v['id'], 'goods'=>$v, 'module'=>'slider-binding', 'type'=>empty($module_data['type']) ? '' : $module_data['type']]);
                                    if(!empty($hook_data) && is_array($hook_data))
                                    {
                                        foreach($hook_data as $hook)
                                        {
                                            if(is_string($hook) || is_int($hook))
                                            {
                                                echo htmlspecialchars_decode($hook);
                                            }
                                        }
                                    }
                                {{/php}}

                                {{if isset($v['show_field_price_status']) and $v['show_field_price_status'] eq 1}}
                                    <div class="content-item-bottom am-nbfc">
                                        {{if $v['is_error'] eq 0}}
                                            <a href="javascript:;" data-gid="{{$v.id}}" data-is-many-spec="{{$v.is_exist_many_spec}}" class="item-cart-submit am-fl common-goods-cart-submit-event">
                                                <i class="iconfont icon-shopping-cart"></i>
                                            </a>
                                        {{/if}}
                                        <p class="price am-text-truncate am-fl">
                                            {{if isset($module_data['price_key'])}}
                                                {{if isset($v[$module_data['price_key']])}}
                                                    <strong class="price">{{$v.show_price_symbol}}{{$v[$module_data['price_key']]}}</strong>
                                                {{/if}}
                                            {{else/}}
                                                <strong class="price">{{$v.show_price_symbol}}{{$v.price}}</strong>
                                            {{/if}}
                                            <span class="am-text-grey unit">{{$v.show_price_unit}}</span>
                                        </p>
                                    </div>
                                {{/if}}

                                <!-- 商品信息底部钩子 -->
                                {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                                    <div class="plugins-tag">
                                        <span>plugins_view_module_goods_inside_bottom</span>
                                    </div>
                                {{/if}}
                                {{php}}
                                    $hook_name = 'plugins_view_module_goods_inside_bottom';
                                    $hook_data = MyEventTrigger($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'goods_id'=>$v['id'], 'goods'=>$v, 'module'=>'slider-binding', 'type'=>empty($module_data['type']) ? '' : $module_data['type']]);
                                    if(!empty($hook_data) && is_array($hook_data))
                                    {
                                        foreach($hook_data as $hook)
                                        {
                                            if(is_string($hook) || is_int($hook))
                                            {
                                                echo htmlspecialchars_decode($hook);
                                            }
                                        }
                                    }
                                {{/php}}
                            </div>
                        </li>
                    {{/foreach}}
                </ul>
            </div>
        </div>
    </div>
{{/if}}