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 })
        }
      }
    })
  }

 

相关文章:

  • 2021-10-08
  • 2021-06-28
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2022-01-07
猜你喜欢
  • 2021-06-07
  • 2021-05-19
  • 2021-03-31
  • 2021-11-08
  • 2021-09-25
  • 2021-09-25
  • 2021-10-19
相关资源
相似解决方案