其他分享
首页 > 其他分享> > 二次遍历数组-

二次遍历数组-

作者:互联网

// 区域 0 未选中当前地区 1:未选中 jgArea: [{ id: "001", areaName: "顺庆", active: "true", banks: [{ bankname: "建设银行", accountname: "多少是多少", account: "324", cun: "存入网点1", zhi: "支出网点1", }, { bankname: "建设银行", accountname: "多少是多少", account: "324", cun: "存入网点2", zhi: "支出网点2",
}, { bankname: "农业银行", accountname: "多少是多少", account: "324", cun: "存入网点3", zhi: "支出网点3",
} ] }, { id: "002", areaName: "嘉琳", active: "false", banks: [{ bankname: "建设银行", accountname: "多少是多少", account: "324", cun: "存入网点1", zhi: "支出网点1",
}, { bankname: "建设银行", accountname: "多少是多少", account: "324", cun: "存入网点2", zhi: "支出网点2",
}, { bankname: "农业银行", accountname: "多少是多少", account: "324", cun: "存入网点3", zhi: "支出网点3",
}] }, { id: "003", areaName: "高坪", active: "false", banks: [{ bankname: "建设银行", accountname: "多少是多少", account: "324", cun: "存入网点1", zhi: "支出网点1",
}, { bankname: "建设银行", accountname: "多少是多少", account: "324", cun: "存入网点2", zhi: "支出网点2",
}] } ]
<block wx:for="{{jgArea}}" wx:key="{{jgArea.bank}}" wx:for-item="itemName"> <view data-item="{{itemName}}"> <view class="title"> <view class="left">{{itemName.areaName}}</view> </view> <block data-item="{{itemName}}" wx:for="{{itemName.banks}}" wx:for-item="item" wx:key="{{itemName.banks.account}}"> <view class="weui-cell " data-item="{{item}}" bindtap="toDetail"> <view class="weui-cell__bd">{{item.bankname}}</view> <view class="weui-cell__ft"> <i-icon type="enter" size="28" /> </view> </view> </block> </view> </block>

标签:遍历,324,bankname,网点,二次,accountname,数组,zhi,cun
来源: https://www.cnblogs.com/wen-/p/12179286.html