Commit aa38e79ec3c2093f451dd96efe49e359f84d8f03

Authored by wangfan
1 parent e917bb7a

cvlist 列表性能太差

@@ -26,7 +26,8 @@ @@ -26,7 +26,8 @@
26 "pages/manager-invitation/crm/index", 26 "pages/manager-invitation/crm/index",
27 "pages/manager-invitation/setting/history", 27 "pages/manager-invitation/setting/history",
28 "pages/reserve/activity", 28 "pages/reserve/activity",
29 - "pages/reserve/discount" 29 + "pages/reserve/discount",
  30 + "pages/reserve/indexList"
30 ], 31 ],
31 "subpackages": [ 32 "subpackages": [
32 { 33 {
@@ -94,10 +94,11 @@ Component({ @@ -94,10 +94,11 @@ Component({
94 }, 94 },
95 getListMore(){ 95 getListMore(){
96 this.param.offset+=1; 96 this.param.offset+=1;
  97 + let markers=this.data.markers;
97 App.Customer.SellerLists(this.param).then(res=>{ 98 App.Customer.SellerLists(this.param).then(res=>{
98 this.setData({ 99 this.setData({
99 hasMore:res.data.length==this.size, 100 hasMore:res.data.length==this.size,
100 - markers:this.data.markers.concat(res.data), 101 + markers:markers.concat(res.data),
101 }) 102 })
102 }) 103 })
103 }, 104 },
@@ -28,7 +28,8 @@ @@ -28,7 +28,8 @@
28 </block> 28 </block>
29 </cover-view> 29 </cover-view>
30 <cover-view class="list" catchtap="" style="top:{{statusBarHeight+titleBarHeight+30}}px;"> 30 <cover-view class="list" catchtap="" style="top:{{statusBarHeight+titleBarHeight+30}}px;">
31 - <cover-view class="seller" bindtap="gotoDetail" data-sid="{{item.id}}" wx:for="{{markers}}" wx:key="markers.key"> 31 + <cover-view class="seller" bindtap="gotoDetail" data-sid="{{item.id}}"
  32 + wx:for="{{markers}}" wx:key="markers.key">
32 <sb-tr seller="{{item}}" hasActivityTags="{{true}}"></sb-tr> 33 <sb-tr seller="{{item}}" hasActivityTags="{{true}}"></sb-tr>
33 </cover-view> 34 </cover-view>
34 <cover-view class="seller flex-vc" style="width: 100%; height: 60rpx;" bindtap="{{hasMore?'getListMore':''}}"> 35 <cover-view class="seller flex-vc" style="width: 100%; height: 60rpx;" bindtap="{{hasMore?'getListMore':''}}">