Authored by ZhongW

考虑封面图为空的情况

@@ -282,6 +282,7 @@ renderGoodList(); @@ -282,6 +282,7 @@ renderGoodList();
282 282
283 function changeImgQuality(flag){ 283 function changeImgQuality(flag){
284 $.each(goodsList,function (index,item){ 284 $.each(goodsList,function (index,item){
  285 + if(!item.goodsImagesList){return true;}
285 $.each(item.goodsImagesList, function (_index, _item) { 286 $.each(item.goodsImagesList, function (_index, _item) {
286 if(flag && _item.imageUrl.indexOf('?') == -1){ 287 if(flag && _item.imageUrl.indexOf('?') == -1){
287 _item.imageUrl = _item.imageUrl + '?imageView2/0/q/75'; 288 _item.imageUrl = _item.imageUrl + '?imageView2/0/q/75';