Commit f157e3a7e9142179c1f085975b4673ba91d6093a

Authored by yvan.ni
1 parent ad5e352d

首页的bug修复

Showing 1 changed file with 2 additions and 4 deletions
pages/index/index/index.js
... ... @@ -992,13 +992,11 @@ Page({
992 992  
993 993 for(var i in swiperimage){
994 994 var item=swiperimage[i];
995   - if(item.id ==img.id && type==img.type){
  995 + if(item.id ==img.id && item.type==img.type){
996 996 return false;
997 997 }
998 998 }
999   -
1000   -
1001   -
  999 +
1002 1000 swiperimage.unshift(img);
1003 1001 th.setData({
1004 1002 swiperimage: swiperimage,
... ...