// 展开
extand(e) {
let id = e.currentTarget.dataset.id
let arrayItem = this.data.msgList;
for (let item of arrayItem) {
let index = arrayItem.findIndex((item) => item.mi === id)
console.log(index,'index')
arrayItem[index].isShow = true
}
this.setData({
msgList: arrayItem
})
},
// 收起
shou(e){
let id = e.currentTarget.dataset.id
let arrayItem = this.data.msgList;
for (let item of arrayItem) {
let index = arrayItem.findIndex((item) => item.mi === id)
arrayItem[index].isShow = false
}
this.setData({
msgList: arrayItem
})
},