Authored by 郭成尧

'compare-with-phpwap'

1 {{# shopIndex}} 1 {{# shopIndex}}
2 - <div class="shop-index yoho-page" id="wrapper"> 2 + <div class="shop-index yoho-page scroll-wrapper" id="wrapper">
  3 +
3 <div id="scroller"> 4 <div id="scroller">
4 <div id="nav-top"> 5 <div id="nav-top">
5 {{> header}} 6 {{> header}}
6 - {{#if appVersion}} 7 + <!-- tar modifield 160826 -->
7 <input type="hidden" name="app_version" value="{{appVersion}}"> 8 <input type="hidden" name="app_version" value="{{appVersion}}">
8 <input type="hidden" name="shop_id" value="{{shopId}}"> 9 <input type="hidden" name="shop_id" value="{{shopId}}">
9 <input type="hidden" name="brand" value="{{brand}}"> 10 <input type="hidden" name="brand" value="{{brand}}">
10 <input type="hidden" name="favId" value="{{favId}}"> 11 <input type="hidden" name="favId" value="{{favId}}">
11 - {{else}} 12 + <input type="hidden" name="coverChannel" value="{{coverChannel}}">
  13 +
  14 + {{#unless appVersion}}
12 <div class="search-area"> 15 <div class="search-area">
13 <div id="search-input" class="search-input"> 16 <div id="search-input" class="search-input">
14 <form id="search-form" action={{url}} method="get"> 17 <form id="search-form" action={{url}} method="get">
15 <i class="search-icon iconfont">&#xe60f;</i> 18 <i class="search-icon iconfont">&#xe60f;</i>
16 <input type="text" placeholder="搜索店铺内潮品" name="query" class="buriedpoint"> 19 <input type="text" placeholder="搜索店铺内潮品" name="query" class="buriedpoint">
17 <input type="hidden" name="shop_id" value="{{shopId}}"> 20 <input type="hidden" name="shop_id" value="{{shopId}}">
18 - <input type="hidden" name="app_version" value="{{appVersion}}">  
19 - <input type="hidden" name="brand" value="{{brand}}">  
20 - <input type="hidden" name="favId" value="{{favId}}"> 21 + <input type="hidden" name="coverChannel" value="{{coverChannel}}">
21 <i class="clear-input iconfont hide">&#xe626;</i> 22 <i class="clear-input iconfont hide">&#xe626;</i>
22 <button id="search" class="search buriedpoint" type="submit" data-bp-id="shop_search_btn_0">搜索</button> 23 <button id="search" class="search buriedpoint" type="submit" data-bp-id="shop_search_btn_0">搜索</button>
23 </form> 24 </form>
24 </div> 25 </div>
25 </div> 26 </div>
26 - {{/if}} 27 + {{/unless}}
  28 +
  29 + <!-- /tar modifield 160826 -->
27 <div class="branner-top"> 30 <div class="branner-top">
28 <img class="shop-back-img" src="{{image branerImg 640 200 1}}"> 31 <img class="shop-back-img" src="{{image branerImg 640 200 1}}">
29 <img class="logo" src="{{image logoImg 500 500}}"> 32 <img class="logo" src="{{image logoImg 500 500}}">
@@ -48,9 +51,10 @@ @@ -48,9 +51,10 @@
48 </ul> 51 </ul>
49 52
50 <div id="home-page" class="main"> 53 <div id="home-page" class="main">
51 - <div id="nav-main" > 54 + <div id="nav-main" class="nav-main">
  55 + <!-- 大导航 -->
52 {{#if brandList}} 56 {{#if brandList}}
53 - <div class="multi-brands"> 57 + <div class="multi-brands first">
54 <p>品牌一览</p> 58 <p>品牌一览</p>
55 <div class="multi-browse"> 59 <div class="multi-browse">
56 <ul class="swiper-wrapper"> 60 <ul class="swiper-wrapper">
@@ -67,7 +71,7 @@ @@ -67,7 +71,7 @@
67 </div> 71 </div>
68 {{/if}} 72 {{/if}}
69 73
70 - <div class="banner-area"> 74 + <div class="banner-area first">
71 {{# bannerTop}} 75 {{# bannerTop}}
72 {{> resources/banner-top}} 76 {{> resources/banner-top}}
73 {{/ bannerTop}} 77 {{/ bannerTop}}
@@ -84,16 +88,18 @@ @@ -84,16 +88,18 @@
84 </ul> 88 </ul>
85 89
86 {{! 热门品类}} 90 {{! 热门品类}}
  91 + <div class="first">
87 {{# hotCategory}} 92 {{# hotCategory}}
88 {{> resources/hot-category}} 93 {{> resources/hot-category}}
89 {{/ hotCategory}} 94 {{/ hotCategory}}
  95 + </div>
90 96
91 <div class="popularity-title"> 97 <div class="popularity-title">
92 人气单品 98 人气单品
93 <a class="more buriedpoint" href="{{more_url}}" data-bp-id="shop_popularity_{{more_url}}">&#xe618;</a> 99 <a class="more buriedpoint" href="{{more_url}}" data-bp-id="shop_popularity_{{more_url}}">&#xe618;</a>
94 </div> 100 </div>
95 -  
96 - <ul class="product-list"> 101 + <div class="product-warp">
  102 + <ul class="product-list first">
97 {{#each hotList}} 103 {{#each hotList}}
98 <li class="buriedpoint" data-bp-id="shop_hotList_{{url}}"> 104 <li class="buriedpoint" data-bp-id="shop_hotList_{{url}}">
99 <a href="{{url}}"> 105 <a href="{{url}}">
@@ -109,9 +115,55 @@ @@ -109,9 +115,55 @@
109 {{/each}} 115 {{/each}}
110 </ul> 116 </ul>
111 </div> 117 </div>
  118 + </div>
  119 +
  120 + <div class="discount-area first" id="navlist2">
  121 + <ul id="list-nav" class="home-sub-nav list-nav clearfix">
  122 + <li data-bp-id="shop_listnav_new_1" class="new active buriedpoint">
  123 + <a href="javascript:void(0);">
  124 + <span class="spanTest">最新</span>
  125 + <span class="iconfont cur">&#xe616;</span>
  126 + </a>
  127 + </li>
  128 + <li class="price buriedpoint" data-bp-id="shop_listnav_price_1">
  129 + <a href="javascript:void(0);">
  130 + <span class="spanTest">价格</span>
  131 + <span class="icon">
  132 + <i class="iconfont up cur">&#xe615;</i>
  133 + <i class="iconfont down">&#xe616;</i>
  134 + </span>
  135 + </a>
  136 + </li>
  137 + <li class="discount buriedpoint" data-bp-id="shop_listnav_discount_1">
  138 + <a href="javascript:void(0);">
  139 + <span class="spanTest">折扣</span>
  140 + <span class="icon">
  141 + <i class="iconfont up cur">&#xe615;</i>
  142 + <i class="iconfont down">&#xe616;</i>
  143 + </span>
  144 + </a>
  145 + </li>
  146 + <li class="filter buriedpoint" data-bp-id="shop_listnav_filter_1">
  147 + <a href="javascript:void(0);">
  148 + <span class="spanTest">筛选</span>
  149 + <span class="iconfont cur">&#xe613;</span>
  150 + </a>
  151 + </li>
  152 + </ul>
  153 + </div>
  154 +
  155 + <div class="discount-area first">
  156 + <div id="goods-container" class="goods-container">
  157 + <div class="new-goods container clearfix">
  158 + {{# goods}}
  159 + {{> good}}
  160 + {{/ goods}}
  161 + </div>
  162 + <div class="price-goods container hide clearfix"></div>
  163 + <div class="discount-goods container hide clearfix"></div>
112 164
113 - <div class="discount-area">  
114 - {{> shop/goods-nav-top}} 165 +
  166 + </div>
115 </div> 167 </div>
116 </div> 168 </div>
117 <div id="new-arrival" class="new-arrival main hide"></div> 169 <div id="new-arrival" class="new-arrival main hide"></div>
@@ -165,5 +217,6 @@ @@ -165,5 +217,6 @@
165 </li> 217 </li>
166 </ul> 218 </ul>
167 </div> 219 </div>
  220 +{{> common/filter}}
168 {{/ shopIndex}} 221 {{/ shopIndex}}
169 {{> common/query-param}} 222 {{> common/query-param}}
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 <img class="lazy" data-original={{banner}}> 30 <img class="lazy" data-original={{banner}}>
31 </div> 31 </div>
32 {{/ shopBanner}} 32 {{/ shopBanner}}
33 - 33 + <!-- 品牌页面 -->
34 {{# brandHome}} 34 {{# brandHome}}
35 <div id="brand-header" class="brand-header" data-id={{id}}> 35 <div id="brand-header" class="brand-header" data-id={{id}}>
36 <img class="lazy" data-original={{banner}}> 36 <img class="lazy" data-original={{banner}}>
@@ -56,6 +56,7 @@ @@ -56,6 +56,7 @@
56 </div> 56 </div>
57 </div> 57 </div>
58 {{/ brandHome}} 58 {{/ brandHome}}
  59 + <!-- /品牌页面 -->
59 60
60 <!-- 基础店铺页面 --> 61 <!-- 基础店铺页面 -->
61 {{# baseShopHome}} 62 {{# baseShopHome}}