wx:if和wx:for不能放一起
wx:if 以及wx:else判断出现Bad attr `wx的错误这样写有问题吗?会报Bad attr `wx的错误[代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"first-con"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'con-title'[代码][代码]>余额明细</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]<[代码][代码]block[代码] [代码]wx:if='{{total > 0}}' wx:for-items='{{walletList}}' wx:key='{{index}}'>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"list-box"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"left"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]"word1"[代码][代码]>{{item.description}}\t{{item.orderId}}\n</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]"word2"[代码][代码]>{{item.createTime}}</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"right blue number"[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{item.type == 1&&3}}"[代码][代码]>+{{item.sum}}</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"right red number"[代码] [代码]wx:else>-{{item.sum}}</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]block[代码][代码]>[代码][代码]<[代码][代码]block[代码] [代码]wx:else>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]'/common/images/order/noOrder.png'[代码] [代码]class[代码][代码]=[代码][代码]'no-orderimage'[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'no-ordertext'[代码][代码]> 没有搜索到相关数据</[代码][代码]view[代码][代码]> [代码][代码]</[代码][代码]block[代码][代码]>[代码]
2022-10-13