radio标签下面的富文本循环不出来,请问是哪里出了问题
js部分:
for (let i = 0; i < array.length; i++) { WxParse.wxParse( 'title' + i, 'html' , array[i][ 'title' ], that, 5); if (i === array.length - 1) { WxParse.wxParseTemArray( "WxParseListArr" , 'title' , array.length, that) } for (let j = 0; j < array[i].select.length; j++) { console.log(i) WxParse.wxParse( 'content' + j, 'html' , array[i].select[j][ 'content' ], that, 5); if (j === array[i].select.length - 1) { WxParse.wxParseTemArray( "selectListArr" , 'content' , array[i].select[j].length, that) } } } |
wxml部分:
< block class = "center" wx:key = "{{titleIndex}}" wx:for = "{{array}}" wx:for-index = 'titleIndex' > < swiper-item > < scroll-view scroll-y = 'true' style = 'height: 100%;margin-bottom: 80rpx;' > < radio-group class = "radio-group" bindchange = "radioChange" data-num = "{{item.num}}" wx:if = "{{item.types == 0 || item.types == 1}}" > < template is = "wxParse" data = "{{wxParseData:WxParseListArr[titleIndex]}}" /> < label class = "{{item.status ?'radio_blue':'radio'}}" wx:key = '{{selectIndex}}' wx:for = '{{item.select}}' wx:for-index = 'selectIndex' data-titleIndex = '{{titleIndex}}' data-index = "{{selectIndex}}" > < radio style = 'display:none' /> < template is = "wxParse" data = "{{wxParseData:selectListArr[selectIndex]}}" /> </ label > </ radio-group > </ scroll-view > </ swiper-item > </ block > |
已解决