已解决
wxParse 循环嵌套问题? 双循环内的富文本标签一直显示不出来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[代码][代码]>[代码]
2019-09-26