先 谢谢管凯旋 发现原因了,一个低级错误,for里面没有{{ }}。太丢人了。 发现黎😄指出了问题,一并感谢!
swiper显示过多开发工具模拟器,我不知道微信应该是什么版本。 数据: tstd: { keys: ['k1', 'k2'], valuess: [ [ { pic:'https://7465-test-b4d6da-1258259003.tcb.qcloud.la/1/ques1.png?sign=1d5d7059f6c2d66104142a6c35657000&t=1546570793'}, { pic: 'https://7465-test-b4d6da-1258259003.tcb.qcloud.la/1/ques1.png?sign=1d5d7059f6c2d66104142a6c35657000&t=1546570793' } ], [{ pic: 'https://7465-test-b4d6da-1258259003.tcb.qcloud.la/1/ques1.png?sign=1d5d7059f6c2d66104142a6c35657000&t=1546570793' }] ], length: 2 }, wxml: <swiper class='slider' indicator-dots='true' style='height:{{sliderHeight}}px' current='0'> <block wx:for='tstd.valuess[0].length'> <swiper-item> <text>{{tstd.valuess[0].length}}</text> <image class='sliderImage' src='{{tstd.valuess[0][index].pic}}' mode='aspectFit'/> </swiper-item> </block> </swiper> 或者 <block wx:for='tstd.valuess[0]'> <swiper-item> <text>{{index}}</text> <image class='sliderImage' src='{{item.pic}}' mode='aspectFit'/> </swiper-item> </block> [图片] 蓝线这里,太多的swiper-item了,哪里来的呢?一共22个。
2019-01-22