<?php /*a:1:{s:70:"D:\phpstudy\WWW\12xz\app\index\view/default\public\goods_category.html";i:1782629701;}*/ ?>
<!-- 商品分类  -->
<div id="goods-category" class="am-container am-hide-sm-only am-hide-md-only" data-controller-name="<?php echo htmlentities((string) $controller_name); ?>">
    <div class="goods-category-s">
        <?php if(MyC('home_main_header_status', 1) == 1): ?>
            <a href="<?php echo MyUrl('index/category/index'); ?>">
                <div class="goods-category-title">
                    <span class="all-goods"><?php echo MyLang('common.all_category_text'); ?></span>
                </div>
            </a>
        <?php endif; ?>
        <div class="category-content theme-data-edit-event" data-module="goods_category" <?php if((isset($common_goods_category_hidden) and $common_goods_category_hidden == 1)): ?>style="display:none;"<?php endif; ?>>
            <div class="category">
                <ul class="category-list category-row-<?php if(!empty($goods_category_list) and is_array($goods_category_list)): ?><?php echo count($goods_category_list); ?><?php endif; ?>">
                    <?php if(!empty($goods_category_list) and is_array($goods_category_list)): foreach($goods_category_list as $k=>$v): ?>
                            <li class="first" data-index="<?php echo htmlentities((string) $k); ?>">
                                <?php if($category_show_level != 1): ?>
                                    <img class="category-fillet-top am-hide" src="<?php echo StaticAttachmentUrl('corner_round_top.png'); ?>" />
                                    <img class="category-fillet-bottom am-hide" src="<?php echo StaticAttachmentUrl('corner_round_bottom.png'); ?>" />
                                <?php endif; ?>
                                <a href="<?php echo MyUrl('index/search/index', ['cid'=>$v['id']]); ?>" class="am-block">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name am-text-truncate">
                                        <?php if(!empty($v['icon'])): ?>
                                            <img class="category-menu-img" src="<?php echo htmlentities((string) $v['icon']); ?>" />
                                            <img class="category-menu-img-active" src="<?php if(empty($v['icon_active'])): ?><?php echo htmlentities((string) $v['icon']); else: ?><?php echo htmlentities((string) $v['icon_active']); ?><?php endif; ?>" />
                                        <?php endif; ?>
                                        <span class="bd-name"><?php echo htmlentities((string) $v['name']); ?></span>
                                    </h3>
                                    <i class="iconfont icon-angle-right"></i>
                                </div>
                                </a>
                                <?php if($category_show_level != 1): ?>
                                    <div class="menu-item menu-in top">
                                        <?php if(!empty($v['items'])): ?>
                                            <div class="area-in">
                                                <div class="area-bg">
                                                    <div class="menu-srot">
                                                        <div class="sort-side <?php if($category_show_level == 2): ?>am-flex-row<?php elseif(in_array($category_show_level, [0,3])): ?>am-flex-col<?php endif; ?>">
                                                            <?php foreach($v['items'] as $vs): if($category_show_level == 2): ?>
                                                                    <dl class="dl-sort <?php if($category_show_level == 2): ?>dl-sort-two<?php endif; ?>">
                                                                        <dd >
                                                                            <a href="<?php echo MyUrl('index/search/index', ['cid'=>$vs['id']]); ?>">
                                                                                <?php if(!empty($vs['icon'])): ?>
                                                                                    <img src="<?php echo htmlentities((string) $vs['icon']); ?>" width="50" />
                                                                                <?php endif; ?>
                                                                                <span><?php echo htmlentities((string) $vs['name']); ?></span>
                                                                            </a>
                                                                        </dd>
                                                                    </dl>
                                                                <?php elseif(in_array($category_show_level, [0,3])): ?>
                                                                    <div class="category-show-level3">
                                                                        <div class="category-show-level3-title">
                                                                            <a href="<?php echo MyUrl('index/search/index', ['cid'=>$vs['id']]); ?>">
                                                                                <span><?php echo htmlentities((string) $vs['name']); ?></span>
                                                                            </a>
                                                                        </div>
                                                                        <?php if(!empty($vs['items'])): ?>
                                                                            <div class="category-show-level3-child">
                                                                                <?php foreach($vs['items'] as $vss): ?>
                                                                                    <div>
                                                                                        <a href="<?php echo MyUrl('index/search/index', ['cid'=>$vss['id']]); ?>">
                                                                                            <span><?php echo htmlentities((string) $vss['name']); ?></span>
                                                                                        </a>
                                                                                    </div>
                                                                                <?php endforeach; ?>
                                                                            </div>
                                                                        <?php endif; ?>
                                                                    </div>
                                                                <?php endif; ?>
                                                            <?php endforeach; ?>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        <?php else: ?>
                                            <?php echo ModuleInclude('public/not_data'); ?>
                                        <?php endif; ?>
                                    </div>
                                <?php endif; ?>
                            </li>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
    </div>
</div>