2018-08-09 10:42:34 +00:00
< include file = "Public/Header" / >
2018-10-11 02:52:34 +00:00
<!-- nav start -->
< include file = "Public/Nav" / >
<!-- nav end -->
2018-08-21 08:47:02 +00:00
<!-- header top nav -->
< include file = "Public/HeaderTopNav" / >
2018-08-09 10:42:34 +00:00
2018-08-21 08:47:02 +00:00
<!-- search -->
< include file = "Public/NavSearch" / >
2018-08-09 10:42:34 +00:00
2018-08-21 08:47:02 +00:00
<!-- header nav -->
< include file = "Public/HeaderNav" / >
2018-08-09 10:42:34 +00:00
2018-08-21 08:47:02 +00:00
<!-- banner -->
< include file = "Public/HomeBanner" / >
2018-08-09 10:42:34 +00:00
2018-08-21 08:47:02 +00:00
<!-- goods category -->
< include file = "Public/GoodsCategory" / >
2018-08-09 10:42:34 +00:00
2018-08-21 08:47:02 +00:00
< div class = "am-container slideall" >
<!-- 轮播右侧 - 内容1 -->
2018-08-29 10:12:20 +00:00
< div class = "am-g am-g-fixed small-nav" >
2018-08-21 08:47:02 +00:00
< div class = "am-u-sm-3" >
2018-09-14 10:06:53 +00:00
< a href = "{{:U('Home/Category/Index')}}" >
2018-08-29 10:12:20 +00:00
< div class = "nav-icon mini-nav-goods-category" >
< img src = "__PUBLIC__/Home/{{$default_theme}}/Images/home-mini-nav-category-icon.png" / >
< / div >
< div class = "mini-nav-title" > 分类< / div >
2018-08-21 08:47:02 +00:00
< / a >
< / div >
< div class = "am-u-sm-3" >
2018-09-14 10:06:53 +00:00
< a < if condition = "empty($user)" > href="javascript:;" class="login-event"< else / > href="{{:U('Home/Cart/Index')}}"< / if > >
2018-08-29 10:12:20 +00:00
< div class = "nav-icon mini-nav-cart" >
< img src = "__PUBLIC__/Home/{{$default_theme}}/Images/home-mini-nav-cart-icon.png" / >
< / div >
< div class = "mini-nav-title" > 购物车< / div >
2018-08-21 08:47:02 +00:00
< / a >
< / div >
< div class = "am-u-sm-3" >
2018-08-29 10:12:20 +00:00
< a href = "#" >
2018-09-10 05:45:40 +00:00
< div class = "nav-icon mini-nav-seconds" >
< img src = "__PUBLIC__/Home/{{$default_theme}}/Images/home-mini-nav-seconds-icon.png" / >
2018-08-29 10:12:20 +00:00
< / div >
2018-09-10 05:45:40 +00:00
< div class = "mini-nav-title" > 秒杀< / div >
2018-08-21 08:47:02 +00:00
< / a >
< / div >
< div class = "am-u-sm-3" >
2018-09-14 10:06:53 +00:00
< a < if condition = "empty($user)" > href="javascript:;" class="login-event"< else / > href="{{:U('Home/User/Index')}}"< / if > >
2018-09-10 05:45:40 +00:00
< div class = "nav-icon mini-nav-user" >
< img src = "__PUBLIC__/Home/{{$default_theme}}/Images/home-mini-nav-user-icon.png" / >
2018-08-29 10:12:20 +00:00
< / div >
2018-09-10 05:45:40 +00:00
< div class = "mini-nav-title" > 我的< / div >
2018-08-21 08:47:02 +00:00
< / a >
< / div >
< / div >
2018-08-09 10:42:34 +00:00
2018-08-21 08:47:02 +00:00
<!-- 轮播右侧 - 内容2 -->
< div class = "marqueen" >
< div class = "mod-vip" >
< div class = "m-baseinfo" >
2018-09-11 10:34:45 +00:00
< a href = "<if condition=" ! empty ( $ user ) " > {{:u('Home/User/Index')}}< else / > javascript:;< / if > ">
< img src = "<if condition=" ! empty ( $ user [ ' avatar ' ] ) " > {{$user.avatar}}< else / > __PUBLIC__/Home/{{$default_theme}}/Images/default-user-avatar.jpg< / if > " class="user-avatar" />
2018-08-21 08:47:02 +00:00
< / a >
< em >
2018-09-11 10:34:45 +00:00
< span class = "s-name" >
< if condition = "!empty($user)" >
Hi, {{$user.user_name_view}}
< else / >
2018-09-12 03:39:55 +00:00
您好,欢迎来到 {{:MyC('home_site_name')}}
2018-09-11 10:34:45 +00:00
< / if >
< / span >
2018-08-21 08:47:02 +00:00
< / em >
2018-09-11 10:34:45 +00:00
< if condition = "!empty($user)" >
< a href = "{{:U('Home/User/Logout')}}" class = "member-logout" > 退出< / a >
< / if >
2018-08-21 08:47:02 +00:00
< / div >
2018-09-12 03:39:55 +00:00
< if condition = "empty($user) and (MyC('home_user_login_state') eq 1 or in_array('sms', MyC('home_user_reg_state')) or in_array('email', MyC('home_user_reg_state')))" >
2018-09-11 10:34:45 +00:00
< div class = "member-login" >
2018-09-12 03:39:55 +00:00
< if condition = "MyC('home_user_login_state') eq 1" >
2018-10-06 09:40:12 +00:00
< a class = "am-btn-primary btn" href = "{{:U('Home/User/LoginInfo')}}" > 登录< / a >
2018-09-12 03:39:55 +00:00
< / if >
< if condition = "in_array('sms', MyC('home_user_reg_state')) or in_array('email', MyC('home_user_reg_state'))" >
2018-10-06 09:40:12 +00:00
< a class = "am-btn-primary btn" href = "{{:U('Home/User/RegInfo')}}" > 注册< / a >
2018-09-12 03:39:55 +00:00
< / if >
2018-09-11 10:34:45 +00:00
< / div >
2018-09-12 03:39:55 +00:00
< / if >
< if condition = "!empty($user)" >
2018-09-11 10:34:45 +00:00
< div class = "member-center" >
2018-10-10 10:18:05 +00:00
< foreach name = "user_order_status" item = "v" >
< if condition = "in_array($v['status'], [1,2,3])" >
< a href = "{{:U('Home/Order/Index', ['is_more'=>1, 'status'=>$v['status']])}}" > < strong > {{$v.count}}< / strong > {{$v.name}}< / a >
< elseif condition = "in_array($v['status'], [100])" / >
< a href = "{{:U('Home/Order/Index', ['is_more'=>1, 'is_comments'=>0, 'status'=>4])}}" > < strong > {{$v.count}}< / strong > {{$v.name}}< / a >
< / if >
< / foreach >
2018-09-11 10:34:45 +00:00
< / div >
< / if >
2018-08-21 08:47:02 +00:00
< / div >
< span class = "marqueen-title" > 新闻头条< / span >
< div class = "banner-news" >
< ul >
< if condition = "!empty($article_list)" >
< foreach name = "article_list" item = "article" >
< li >
< a target = "_blank" href = "#" >
< span > [{{$article.category_name}}]< / span >
2018-10-06 09:40:12 +00:00
< span < notempty name = "article.title_color" > style="color:{{$article.title_color}};"< / notempty > >{{$article.title}}< / span >
2018-08-21 08:47:02 +00:00
< / a >
< / li >
< / foreach >
< / if >
< / ul >
2018-08-09 10:42:34 +00:00
< / div >
< / div >
2018-08-21 08:47:02 +00:00
< / div >
2018-08-09 10:42:34 +00:00
2018-08-21 08:47:02 +00:00
<!-- 主内容 -->
2018-10-10 17:41:55 +00:00
< div class = "home-floor" >
<!-- 楼层 -->
< if condition = "!empty($goods_floor_list)" >
< foreach name = "goods_floor_list" item = "floor" >
< if condition = "isset($floor['is_home_recommended']) and $floor['is_home_recommended'] eq 1" >
< div id = "floor{{$key+1}}" >
< div class = "am-container" >
< div class = "items-nav-title" >
< h4 > {{$floor.name}}< / h4 >
< h3 > {{$floor.vice_name}}< / h3 >
< div class = "today-brands " >
< if condition = "!empty($floor['items'])" >
< foreach name = "floor.items" key = "key" item = "category" >
< if condition = "!empty($category['items'])" >
< foreach name = "category.items" key = "keys" item = "categorys" >
< if condition = "$key lt 6 and $keys eq 0 and isset($categorys['is_home_recommended']) and $categorys['is_home_recommended'] eq 1" >
< a href = "{{:U('Home/Search/Index', ['category_id'=>$categorys['id']])}}" > {{$categorys.name}}< / a >
< / if >
< / foreach >
< / if >
< / foreach >
< / if >
2018-08-09 10:42:34 +00:00
< / div >
2018-10-10 17:41:55 +00:00
< span class = "more" >
< a href = "{{:U('Home/Search/Index', ['category_id'=>$floor['id']])}}" > 更多< i class = "am-icon-angle-right" style = "padding-left:10px ;" > < / i > < / a >
< / span >
2018-08-21 08:47:02 +00:00
< / div >
2018-10-10 17:41:55 +00:00
< / div >
< div class = "am-g am-g-fixed flood" < if condition = "!empty($floor['bg_color'])" > style="background-color:{{$floor.bg_color}};"< else / > style="background-color:#eaeaea;"< / if > >
< div class = "am-u-sm-5 am-u-md-4 text-one list" >
< div class = "word" >
< if condition = "!empty($floor['items'])" >
< foreach name = "floor.items" item = "category" >
< if condition = "$key lt 6 and isset($category['is_home_recommended']) and $category['is_home_recommended'] eq 1" >
< a href = "{{:U('Home/Search/Index', ['category_id'=>$category['id']])}}" class = "outer" >
< span class = "inner" >
< b class = "text" > {{:mb_substr($category['name'], 0, 4, 'utf-8')}}< / b >
< / span >
< / a >
< / if >
< / foreach >
< / if >
2018-08-21 08:47:02 +00:00
< / div >
2018-10-10 17:41:55 +00:00
< a href = "{{:U('Home/Search/Index', ['category_id'=>$floor['id']])}}" >
< div class = "outer-con" >
< div class = "describe" > {{$floor.describe}}< / div >
< / div >
< if condition = "!empty($floor['big_images'])" >
< img src = "{{$floor.big_images}}" / >
< / if >
< / a >
< div class = "triangle-topright" > < / div >
< / div >
2018-08-14 10:47:56 +00:00
2018-10-10 17:41:55 +00:00
< if condition = "!empty($floor.goods)" >
< foreach name = "floor.goods" item = "goods" >
< div class = "goods-items <if condition=" in_array ( $ key , [ 0 , 1 ] ) " > am-u-sm-7 am-u-md-4 text-two< else / > am-u-sm-6 am-u-md-2 text-three< / if > < if condition = "in_array($key, [0,3])" > sug< / if > < if condition = "in_array($key, [2,5])" > big< / if > < if condition = "$key eq 5" > last< / if > ">
< div class = "outer-con" >
< div class = "goods-title ellipsis" >
< a href = "{{$goods['goods_url']}}" < notempty name = "goods.title_color" > style="color:{{$goods.title_color}};"< / notempty > >{{$goods.title}}< / a >
2018-08-10 10:50:34 +00:00
< / div >
2018-10-10 17:41:55 +00:00
< div class = "price" > ¥{{$goods.price}}< / div >
2018-08-21 08:47:02 +00:00
< / div >
2018-10-10 17:41:55 +00:00
< a href = "{{$goods['goods_url']}}" >
< img src = "{{$goods.home_recommended_images}}" / >
< / a >
< / div >
< / foreach >
< / if >
2018-08-21 08:47:02 +00:00
< / div >
2018-10-10 17:41:55 +00:00
< / div >
< / if >
< / foreach >
< / if >
2018-08-09 10:42:34 +00:00
< / div >
2018-10-10 17:41:55 +00:00
<!-- footer start -->
< include file = "Public/Footer" / >
<!-- footer end -->