image onerror处理


imageError(e) {
var index = e.currentTarget.dataset.id;
index=parseInt(index)-1;
console.log(index);
var PICTURE_LJ = 'goodslist[' + index + '].PIC'
this.setData({
[PICTURE_LJ]: 'https://....../C.png'
})
},

posted @ 2022-05-18 11:44  龙井兄弟  阅读(220)  评论(0)    收藏  举报