index.html 6.65 KB
{#_theme}
<div class="banner ">
    <div class="slider" style="height: 396px;" config-data={ "direction": "left"} >
        <ul class="cycle-slideshow">
            {query:name=ad where=number eq 'qgiowmka-us4k-p0up-vs3c-blkqmtb7'} {set:$lists = unserialize($item['content']);} {list:items=$lists item=$ad}
            <li style="background-image:url({url:@$ad[path]}) ">
                <a href="{url:$ad[url]}" target="_blank"></a>
            </li>
            {/list} {/query}
        </ul>
    </div>
</div>
{!$theme_indexFineIds=trim($theme_indexFineIds,',')}
{if:isset($theme_indexFineShow) && $theme_indexFineShow==1}
{if:isset($theme_indexFineIds) && $theme_indexFineIds!=''}
<div class="container">
<div class="clearfix">
    <div class="title-nav">
        <span class="floor-tag">精品推荐 </span>
    </div>
       <ul class="row clearfix">
       {query:name=goods where= id in ($theme_indexFineIds) order=sort desc limit=5}
            <li class="col-{!=($key+1)}">
                <dl class="product">
                    <dt class="img"><a href="{url:/index/product/id/$item[id]}"><img src="{echo:Common::thumb($item['img'],220,220)}" width=220></a></dt>
                    <dd class="title"><a href="{url:/index/product/id/$item[id]}">{echo:TString::msubstr($item['name'],0,12)}</a></dd>
                    <dd><span class="price">{$currency_symbol}{$item['sell_price']}</span></dd>
                </dl>
            </li>
            {/query}
        </ul>
</div>
</div>
{/if}
{/if}

{if:isset($theme_indexRecommend) && $theme_indexRecommend!=''}
{!$theme_recommendInfo = explode("::",$theme_indexRecommend);}
<div class="container">
<div class="clearfix">
    <div class="row mt20" style="overflow: hidden;">
        <a href="{$theme_recommendInfo[1]}"><img src="{$theme_recommendInfo[0]}" alt=""></a>
    </div>
</div>
</div>
{/if}
<div class="top-show container">
    <div class="sub-1">
        <div class="tab ">
            <ul class="tab-head">
                <li><div>抢购活动</div><i></i></li>
                <li><div>疯狂团</div><i></i></li>
            </ul>
            <div class="tab-body">
                <ul class="row clearfix">
                    {query:name=flash_sale as gb fields=*,gb.id as id join=left join goods as go on gb.goods_id eq go.id order=is_end , goods_num desc limit=4 id=$groupbuy}
                    <li class="col-{echo:$key+1}">
                        <dl class="product">
                            <dt class="img">
                                <a href="{url:/index/flashbuy/id/$item[id]}"><img src="{echo:Common::thumb($item['img'],220,220);}" width=220></a>
                            </dt>
                            <dd class="title"><a href="{url:/index/flashbuy/id/$item[id]}">{echo:TString::msubstr($item['title'],0,15)}</a></dd>
                            <dd class="price"><i>{$currency_symbol}</i>{$item['price']}</dd>
                        </dl>
                    </li>
                    {/list}
                </ul>
                <ul class="row clearfix">
                    {query:name=groupbuy as gb fields=*,gb.id as id join=left join goods as go on gb.goods_id eq go.id order=is_end , goods_num desc limit=4 id=$groupbuy}
                    <li class="col-{echo:$key+1}">
                        <dl class="product">
                            <dt class="img">
                                <a href="{url:/index/groupbuy/id/$item[id]}"><img src="{echo:Common::thumb($item['img'],220,220);}" width="220"></a>
                            </dt>
                            <dd class="title"><a href="{url:/index/groupbuy/id/$item[id]}">{echo:TString::msubstr($item['title'],0,15)}</a></dd>
                            <dd class="price"><i>{$currency_symbol}</i>{$item['price']}</dd>
                        </dl>
                    </li>
                    {/list}
                </ul>
            </div>
        </div>
    </div>
    <div class="sub-2">
        <div class="news-list">
            <div class="header">商城动态</div>
            <ul class="body">
                {query:name=article order=id desc limit=14}
                <li><a href="{url:/index/article/id/$item[id]}" target="_blank">{echo:TString::msubstr($item['title'],0,15)}</a></li>
                {/query}
            </ul>
        </div>
    </div>
</div>

<!-- S 商品展示 -->
<div class="lists container">
    {set:$cate_index=0;} {list:items=$category item=$categ}
    {if:$categ['list_show']==1}
    {set:$cate_index++;}
    <div>
        <div class="title-nav">
            <span class="floor-tag">{$cate_index}F / </span>
            <span class="title"><a href="{url:/index/category/cid/$categ[id]}">{$categ['title']}</a></span>
        </div>
        <div class="item">
            <div class="sub-1">
                <div class="slider clearfix" style="height: 360px;" config-data={ "direction": "left"}>
                    {if:$categ['imgs']}
                    <ul class="cycle-slideshow">
                        {set:$images = unserialize($categ['imgs']);} {list:items=$images item=$img}
                        <li style="background-image:url({echo:Common::thumb($img['img'],190,190);}) "><a href="{url:$img[link]}" target="_blank"></a></li>
                        {/list}
                    </ul>
                    {/if}
                </div>
                <div>
                    <ul class="category-tags">
                        {list:items=$categ['child'] item=$child}
                        <li><a href="{url:/index/category/cid/$child[id]}">{$child['title']}</a></li>
                        {/list}
                    </ul>
                </div>
            </div>
            <div class="sub-2">
                <ul class="index-products">
                    {set:$path_like = "like '$categ[path]%'";} {query:name=goods where= is_online eq 0 and category_id in (select id from tiny_goods_category where path $path_like) order=sort desc limit=6}
                    <li>
                        <dl class="product">
                           <dt class="img">
                               <a href="{url:/index/product/id/$item[id]}"><img src="{echo:Common::thumb($item['img'],220,220);}" width="220"></a>
                           </dt>
                           <dd class="title"><a href="{url:/index/product/id/$item[id]}">{$item['name']}</a></dd>
                           <dd class="price">{$item['sell_price']}{$currency_unit}</dd>
                       </dl>
                   </li>
                   {/list}
               </ul>
           </div>
       </div>
   </div>
   {/if}
   {/list}
   <!-- E 商品展示 -->