swiper的一个可百分百复现 的bug
[图片] [图片] [图片] 第一张图是开发版的样子,后两张是真机调试的样子,开发工具上的样子和真机调试上一样,正常的就 swiper的样子,但是只要放到开发版或者正式版之后,这两个swiper就很奇怪的跑到一个视图里上下排列,不知道怎么回事,而且 我的小程序里不止这一处这样使用了,但是只有这一处是这样的,代码贴一下在这 [代码]<[代码][代码]swiper[代码] [代码]current-item-id[代码][代码]=[代码][代码]'{{friend_status}}'[代码] [代码]style[代码][代码]=[代码][代码]'width:100%;padding:20rpx 24rpx;box-sizing:border-box;'[代码] [代码]bindchange[代码][代码]=[代码][代码]'frswiperchange'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]swiper-item[代码] [代码]item-id[代码][代码]=[代码][代码]'0'[代码] [代码]style[代码][代码]=[代码][代码]'background-color:white;border-radius:8rpx'[代码][代码]>[代码][代码] [代码][代码]1[代码][代码] [代码][代码]</[代码][代码]swiper-item[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]swiper-item[代码] [代码]item-id[代码][代码]=[代码][代码]'1'[代码] [代码]style[代码][代码]=[代码][代码]'background-color:white;border-radius:8rpx'[代码][代码]>[代码][代码] [代码][代码]2[代码][代码] [代码][代码]</[代码][代码]swiper-item[代码][代码]>[代码][代码]</[代码][代码]swiper[代码][代码]>[代码][代码]frswiperchange(e) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]var[代码] [代码]currentItemId = e.detail.currentItemId;[代码][代码] [代码][代码]console.log(currentItemId)[代码][代码] [代码][代码]var[代码] [代码]source = e.detail.source;[代码][代码] [代码][代码]if[代码] [代码](source == [代码][代码]'touch'[代码][代码]) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]friend_status: currentItemId[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码]