sunny

Results 2 issues of sunny

需要一个页面有多个上传图片,上传的图片需要写到一个数组中,因此需要传入一个index参数,代码如下: ` 点击上传 只能上传jpeg/jpg/png/gif格式的图片,且不超过5M ` js: `toggleShow() { this.show = !this.show; }, cropSuccess(index, photoUrl, field) { console.log('-------- cropSuccess --------', photoUrl); this.photoes[index].photoUrl = photoUrl; }, cropUploadSuccess(index, jsonData, field) { console.log('-------- upload...