|
|
@ -199,7 +199,8 @@ |
|
|
|
}, 1000) |
|
|
|
|
|
|
|
} else { |
|
|
|
var url = this.picUrl[index] |
|
|
|
let i = this.picUrl.length - 1 - index |
|
|
|
var url = this.picUrl[i] |
|
|
|
// #ifdef APP |
|
|
|
plus.io.resolveLocalFileSystemURL(url, (entry) => { |
|
|
|
// 可通过entry对象操作test.html文件 |
|
|
@ -207,7 +208,8 @@ |
|
|
|
let fileReader = new plus.io.FileReader(); |
|
|
|
fileReader.onloadend = (evt) => { |
|
|
|
console.log("文件路径" + evt.target.result) |
|
|
|
this.data[index].barcodeBase64 = evt.target.result |
|
|
|
let i = this.data.length - 1 - index |
|
|
|
this.data[i].barcodeBase64 = evt.target.result |
|
|
|
this.generateBase64(index + 1) |
|
|
|
} |
|
|
|
fileReader.readAsDataURL(file); |
|
|
|