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