Showing
4 changed files
with
5 additions
and
14 deletions
@@ -13,7 +13,7 @@ class ShopProcess | @@ -13,7 +13,7 @@ class ShopProcess | ||
13 | private static $shopData = array(); | 13 | private static $shopData = array(); |
14 | private static $shopId = 0; | 14 | private static $shopId = 0; |
15 | private static $appVersion = 0; | 15 | private static $appVersion = 0; |
16 | - private static $brandId; | 16 | +// private static $brandId; |
17 | 17 | ||
18 | /** | 18 | /** |
19 | * 组织店铺页面数据 | 19 | * 组织店铺页面数据 |
@@ -145,7 +145,7 @@ class ShopProcess | @@ -145,7 +145,7 @@ class ShopProcess | ||
145 | if ($brandNumber > 5) { | 145 | if ($brandNumber > 5) { |
146 | self::$shopData['brandList']['url'] = Helpers::url('/product/index/allBrand', array('shop_id' => self::$shopId)); | 146 | self::$shopData['brandList']['url'] = Helpers::url('/product/index/allBrand', array('shop_id' => self::$shopId)); |
147 | } | 147 | } |
148 | - self::$brandId = self::$shopData['brand'] = rtrim($brandId, ','); | 148 | +// self::$brandId = self::$shopData['brand'] = rtrim($brandId, ','); |
149 | } | 149 | } |
150 | 150 | ||
151 | /** | 151 | /** |
@@ -215,7 +215,8 @@ class ShopProcess | @@ -215,7 +215,8 @@ class ShopProcess | ||
215 | } | 215 | } |
216 | foreach ($data['data'] as $key => $val) { | 216 | foreach ($data['data'] as $key => $val) { |
217 | self::$shopData['shopCategory']['list'][] = array( | 217 | self::$shopData['shopCategory']['list'][] = array( |
218 | - 'url' => Helpers::url('', array('shop_id' => self::$shopId, 'brand' => self::$brandId, 'sort' => $val['relation_parameter']['sort']), 'search'), | 218 | +// 'url' => Helpers::url('', array('shop_id' => self::$shopId, 'brand' => self::$brandId, 'sort' => $val['relation_parameter']['sort']), 'search'), |
219 | + 'url' => Helpers::url('', array('shop_id' => self::$shopId, 'sort' => $val['relation_parameter']['sort']), 'search'), | ||
219 | 'categoryId' => $val['category_id'], | 220 | 'categoryId' => $val['category_id'], |
220 | 'name' => $val['category_name'] | 221 | 'name' => $val['category_name'] |
221 | ); | 222 | ); |
@@ -31,8 +31,7 @@ var $subNav = $('.home-sub-nav'), | @@ -31,8 +31,7 @@ var $subNav = $('.home-sub-nav'), | ||
31 | $pgc = $($goodsChildren.get(1)), | 31 | $pgc = $($goodsChildren.get(1)), |
32 | $dgc = $($goodsChildren.get(2)), | 32 | $dgc = $($goodsChildren.get(2)), |
33 | shopId = $('input[name="shop_id"]').val(), | 33 | shopId = $('input[name="shop_id"]').val(), |
34 | - appVersion = $('input[name="app_version"]').val(), | ||
35 | - brand = $('input[name="brand"]').val(); | 34 | + appVersion = $('input[name="app_version"]').val(); |
36 | 35 | ||
37 | var winH = $(window).height(), | 36 | var winH = $(window).height(), |
38 | noResult = '<p class="no-result">未找到相关搜索结果</p>'; | 37 | noResult = '<p class="no-result">未找到相关搜索结果</p>'; |
@@ -153,7 +152,6 @@ function newData(callback) { | @@ -153,7 +152,6 @@ function newData(callback) { | ||
153 | order: '1', | 152 | order: '1', |
154 | page: navInfo.new.page, | 153 | page: navInfo.new.page, |
155 | shop_id: shopId, | 154 | shop_id: shopId, |
156 | - brand: brand | ||
157 | }; | 155 | }; |
158 | req.callBack = function(data) { | 156 | req.callBack = function(data) { |
159 | $('#new-arrival').append(data); | 157 | $('#new-arrival').append(data); |
@@ -176,7 +174,6 @@ function hotData(callback) { | @@ -176,7 +174,6 @@ function hotData(callback) { | ||
176 | order: '1', | 174 | order: '1', |
177 | page: navInfo.hot.page, | 175 | page: navInfo.hot.page, |
178 | shop_id: shopId, | 176 | shop_id: shopId, |
179 | - brand: brand | ||
180 | }; | 177 | }; |
181 | req.callBack = function(data) { | 178 | req.callBack = function(data) { |
182 | $('#popularity').append(data); | 179 | $('#popularity').append(data); |
@@ -421,7 +418,6 @@ function search(opt) { | @@ -421,7 +418,6 @@ function search(opt) { | ||
421 | }; | 418 | }; |
422 | break; | 419 | break; |
423 | } | 420 | } |
424 | - ext.brand = opt.brand; | ||
425 | $.extend(defaultOpt, ext); //扩展筛选项 | 421 | $.extend(defaultOpt, ext); //扩展筛选项 |
426 | } | 422 | } |
427 | 423 | ||
@@ -517,7 +513,6 @@ $.ajax({ | @@ -517,7 +513,6 @@ $.ajax({ | ||
517 | url: '/search/filter', | 513 | url: '/search/filter', |
518 | data: { | 514 | data: { |
519 | shop_id: shopId, | 515 | shop_id: shopId, |
520 | - brand: brand | ||
521 | }, | 516 | }, |
522 | success: function(data) { | 517 | success: function(data) { |
523 | $goodsContainer.append(data); | 518 | $goodsContainer.append(data); |
@@ -646,7 +641,6 @@ $subNav.on('touchend touchcancel', function(e) { | @@ -646,7 +641,6 @@ $subNav.on('touchend touchcancel', function(e) { | ||
646 | search({ | 641 | search({ |
647 | type: 'shop_id', | 642 | type: 'shop_id', |
648 | id: shopId, | 643 | id: shopId, |
649 | - brand: brand, | ||
650 | url: '/index/search/search', | 644 | url: '/index/search/search', |
651 | nextPage: false | 645 | nextPage: false |
652 | }); | 646 | }); |
@@ -667,7 +661,6 @@ function scrollHandler() { | @@ -667,7 +661,6 @@ function scrollHandler() { | ||
667 | search({ | 661 | search({ |
668 | type: 'shop_id', | 662 | type: 'shop_id', |
669 | id: shopId, | 663 | id: shopId, |
670 | - brand: brand, | ||
671 | url: '/index/search/search', | 664 | url: '/index/search/search', |
672 | nextPage: true | 665 | nextPage: true |
673 | }); | 666 | }); |
@@ -685,7 +678,6 @@ $(window).scroll(function() { | @@ -685,7 +678,6 @@ $(window).scroll(function() { | ||
685 | search({ | 678 | search({ |
686 | type: 'shop_id', | 679 | type: 'shop_id', |
687 | id: shopId, | 680 | id: shopId, |
688 | - brand: brand, | ||
689 | url: '/index/search/search', | 681 | url: '/index/search/search', |
690 | nextPage: false | 682 | nextPage: false |
691 | }); | 683 | }); |
@@ -7,7 +7,6 @@ | @@ -7,7 +7,6 @@ | ||
7 | {{#if appVersion}} | 7 | {{#if appVersion}} |
8 | <input type="hidden" name="app_version" value="{{appVersion}}"> | 8 | <input type="hidden" name="app_version" value="{{appVersion}}"> |
9 | <input type="hidden" name="shop_id" value="{{shopId}}"> | 9 | <input type="hidden" name="shop_id" value="{{shopId}}"> |
10 | - <input type="hidden" name="brand" value="{{brand}}"> | ||
11 | {{else}} | 10 | {{else}} |
12 | <div class="search-area"> | 11 | <div class="search-area"> |
13 | <div id="search-input" class="search-input"> | 12 | <div id="search-input" class="search-input"> |
@@ -16,7 +15,6 @@ | @@ -16,7 +15,6 @@ | ||
16 | <input type="text" placeholder="搜索店铺内潮品" name="query" class="buriedpoint"> | 15 | <input type="text" placeholder="搜索店铺内潮品" name="query" class="buriedpoint"> |
17 | <input type="hidden" name="shop_id" value="{{shopId}}"> | 16 | <input type="hidden" name="shop_id" value="{{shopId}}"> |
18 | <input type="hidden" name="app_version" value="{{appVersion}}"> | 17 | <input type="hidden" name="app_version" value="{{appVersion}}"> |
19 | - <input type="hidden" name="brand" value="{{brand}}"> | ||
20 | <i class="clear-input iconfont hide"></i> | 18 | <i class="clear-input iconfont hide"></i> |
21 | <button id="search" class="search buriedpoint" type="submit">搜索</button> | 19 | <button id="search" class="search buriedpoint" type="submit">搜索</button> |
22 | </form> | 20 | </form> |
-
Please register or login to post a comment