-
Notifications
You must be signed in to change notification settings - Fork 0
/
category_list.dwt.php
131 lines (125 loc) · 5.74 KB
/
category_list.dwt.php
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
<?php defined('IN_ECJIA') or header("HTTP/1.0 404 Not Found");exit('404 Not Found');?>
<!-- {extends file="ecjia-pc.dwt.php"} -->
<!-- {block name="footer"} -->
<script type="text/javascript">
sessionStorage.removeItem('merchant_swiper');
ecjia.pc.init();
</script>
<!-- {/block} -->
<!-- {block name="main-content"} -->
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
<div class="category {if !$has_store}m_b0{/if}">
<div class="ecjia-content">
<div class="category-cycleimage {if $count eq 0}category-cycleimage-default{/if}">
<div id="swiper-merchant-cycleimage" class="swiper-container">
<div class="swiper-wrapper">
<!-- {foreach from=$cycleimage item=val} -->
<div class="swiper-slide" style="background:url('{$val.image}') center center no-repeat;">
<a target="_blank" href="{$val.url}"></a>
</div>
<!-- {/foreach} -->
</div>
{if $count gt 1}
<div class="swiper-pagination swiper-merchant-pagination"></div>
{/if}
</div>
</div>
{if $has_store}
<div class="category_list">
<div class="ecjia-category-swiper">
<div id="category-swiper-web" class="swiper-container" data-url='{RC_Uri::url("merchant/store/category")}'>
<div class="swiper-wrapper">
<div class="category_name category_all swiper-slide {if !$cat_id}my-active{/if}">
<p class="text {if !$cat_id}green{/if}"><a href='{RC_Uri::url("merchant/store/category")}'>{t domain="ecjia-pc"}全部分类{/t}</a></p>
</div>
<!--{foreach from=$category_list item=val key=key}-->
<div class="category_name swiper-slide {if $cat_id eq $key}my-active{/if}" id="{$key}">
<p class="text {if $cat_id eq $key}green{/if}"><a href='{RC_Uri::url("merchant/store/category", "cat_id={$key}")}'>{$val.cat_name}</a></p>
</div>
<!-- {/foreach} -->
</div>
</div>
<div class="swiper-button-prev swiper-button-white"></div>
<div class="swiper-button-next swiper-button-white"></div>
</div>
</div>
{/if}
</div>
{if $has_store}
<div class="store_list">
<div class="store_list_title">
<img src="{$theme_url}images/default/store_list_line.png"/>
<img src="{if $store_list.cat_img}{$store_list.cat_img}{else}{$theme_url}images/category/category_all_on.png{/if}"/>
<span>{$store_list.cat_name}</span>
<img src="{$theme_url}images/default/store_list_line.png"/>
</span>
</div>
{if $store_list.item}
<!--{foreach from=$store_list.item item=val key=key}-->
<a href="{RC_Uri::url('merchant/goods/init')}&store_id={$val.store_id}">
<div class="category_store">
{if $val.banner_pic}
<div class="shop_banner"><img src="{$val.banner_pic}"/></div>
{else}
<div class="shop_banner"><img src="{$theme_url}images/default/default800.png"/></div>
{/if}
<div class="store_info">
{if $val.shop_logo}
<img class="store_info_img" src="{RC_Upload::upload_url($val.shop_logo)}">
{else}
<img class="store_info_img" src="{$theme_url}images/default255.png">
{/if}
<div class="store_msg">
<div class="store_name">{$val.merchants_name}</div>
{if $val.manage_mode == 'self'}
<p class="self">{t domain="ecjia-pc"}自营{/t}</p>
{/if}
<br/>
<div class="store-range">
<div class="score-val" data-val="{$val.comment_rank}"></div>
</div>
</div>
<div class="panel_sao">
<div class="panel_sao_pa">
<img src="{$val.store_qrcode}">
<p><span>{t domain="ecjia-pc"}扫一次{/t}</span><span>{t domain="ecjia-pc"}立即购买{/t}</span></p>
</div>
</div>
</div>
<div class="announcement">
{if $val.shop_trade_time}
<div class="business_time">
<img src="{$theme_url}images/clock_50.png"/>
<span>{$val.shop_trade_time}</span>
</div>
{/if}
{if $val.shop_notice}
<div class="advertisement">
<img src="{$theme_url}images/bugle_50.png"/>
<div class="goods-price">{$val.shop_notice}</div>
</div>
{/if}
{if $val.activity}
<!--{foreach from=$val.activity item=v key=k}-->
{if $k < 2}
<div class="favorable"><span>{if $v.act_type == '1'}{t domain="ecjia-pc"}满{/t}{else if $v.act_type =='2'}{t domain="ecjia-pc"}折{/t}{/if}</span><span>{$v.act_name}</span></div>
{/if}
<!-- {/foreach} -->
{/if}
</div>
</div>
</a>
<!-- {/foreach} -->
{else}
<div class="no_store_desc">{t domain="ecjia-pc"}很抱歉,没有找到相关的商家{/t}</div>
{/if}
{$store_list.page}
</div>
{else}
<!-- #BeginLibraryItem "/library/no_content.lbi" --><!-- #EndLibraryItem -->
{/if}
</div>
<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
<!-- #BeginLibraryItem "/library/choose_city.lbi" --><!-- #EndLibraryItem -->
<!-- #BeginLibraryItem "/library/nav.lbi" --><!-- #EndLibraryItem -->
<!-- {/block} -->