Authored by xuqi

ajax load init data in parodct list page

@@ -40,8 +40,8 @@ var $listNav = $('#list-nav'), @@ -40,8 +40,8 @@ var $listNav = $('#list-nav'),
40 navInfo = { 40 navInfo = {
41 newest: { 41 newest: {
42 order: 1, 42 order: 1,
43 - reload: false,  
44 - page: 1, 43 + reload: true,
  44 + page: 0,
45 end: false 45 end: false
46 }, 46 },
47 price: { 47 price: {
@@ -355,4 +355,7 @@ $brandHeader.children('.btn-col').bind('tap', function() { @@ -355,4 +355,7 @@ $brandHeader.children('.btn-col').bind('tap', function() {
355 tip.show('网络断开连接了~'); 355 tip.show('网络断开连接了~');
356 } 356 }
357 }); 357 });
358 -});  
  358 +});
  359 +
  360 +//初始请求最新第一页数据
  361 +search();
@@ -82,11 +82,7 @@ @@ -82,11 +82,7 @@
82 </li> 82 </li>
83 </ul> 83 </ul>
84 <div id="goods-container" class="goods-container"> 84 <div id="goods-container" class="goods-container">
85 - <div class="new-goods container clearfix">  
86 - {{# new}}  
87 - {{> good}}  
88 - {{/ new}}  
89 - </div> 85 + <div class="new-goods container clearfix"></div>
90 <div class="price-goods container clearfix hide"></div> 86 <div class="price-goods container clearfix hide"></div>
91 <div class="discount-goods container clearfix hide"></div> 87 <div class="discount-goods container clearfix hide"></div>
92 88