新品到着悬浮栏修改 reviewd by 朱傲哲
Showing
1 changed file
with
4 additions
and
0 deletions
@@ -275,11 +275,15 @@ export function getProductList(paramsDic) { | @@ -275,11 +275,15 @@ export function getProductList(paramsDic) { | ||
275 | } | 275 | } |
276 | 276 | ||
277 | function reShuffleJumpList(jumplist, pageindex, pagesize) { | 277 | function reShuffleJumpList(jumplist, pageindex, pagesize) { |
278 | + if (!jumplist || jumplist.length === 0) { | ||
279 | + return [] | ||
280 | + } else { | ||
278 | return jumplist && jumplist.map((item, index) => { | 281 | return jumplist && jumplist.map((item, index) => { |
279 | item.rowType = 1 | 282 | item.rowType = 1 |
280 | item.index = (pageindex -1)*pagesize + parseInt(item.index) | 283 | item.index = (pageindex -1)*pagesize + parseInt(item.index) |
281 | return item | 284 | return item |
282 | }) | 285 | }) |
286 | + } | ||
283 | } | 287 | } |
284 | 288 | ||
285 | function exposeProductListData(json, order, channel, pageSize, tabId, tabName, prdFloorId, prdFloorName, prdFloorIndex) { | 289 | function exposeProductListData(json, order, channel, pageSize, tabId, tabName, prdFloorId, prdFloorName, prdFloorIndex) { |
-
Please register or login to post a comment