list: [
{ id: 0, mode: 1, src: 'https://s2.yzlcq.cn/images/10070.png', text: '0' },
{ id: 1, mode: 1, src: 'https://s2.yzlcq.cn/images/10070.png', text: '1' },
{ id: 2, mode: 1, src: 'https://s2.yzlcq.cn/images/10070.png', text: '2' }
],
onDelete(e) {
var no = Number(e.currentTarget.dataset.index); console.log(no) var that = this wx.showModal({ title: '提示', content: '您確認刪除該圖片和描述信息嗎?確定將刪除圖片和描述信息', success(res) { if (res.confirm) { that.data.list.splice(no, 1) that.setData({ list: that.data.list }) } } }) }