index.html
6.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{#_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 商品展示 -->