Commit b3ce365cdcc42578c7337b9272c19954b1990d70
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
1 changed file
with
2 additions
and
4 deletions
pages/index/index/index.js
| @@ -992,13 +992,11 @@ Page({ | @@ -992,13 +992,11 @@ Page({ | ||
| 992 | 992 | ||
| 993 | for(var i in swiperimage){ | 993 | for(var i in swiperimage){ |
| 994 | var item=swiperimage[i]; | 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 | return false; | 996 | return false; |
| 997 | } | 997 | } |
| 998 | } | 998 | } |
| 999 | - | ||
| 1000 | - | ||
| 1001 | - | 999 | + |
| 1002 | swiperimage.unshift(img); | 1000 | swiperimage.unshift(img); |
| 1003 | th.setData({ | 1001 | th.setData({ |
| 1004 | swiperimage: swiperimage, | 1002 | swiperimage: swiperimage, |