Browse Source

拆包打印标签和二维码不一致问题

lijuncheng0816
zhang_li 4 months ago
parent
commit
dce1cbea29
  1. 6
      src/pages/point/index.vue

6
src/pages/point/index.vue

@ -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) => {
// entrytest.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);

Loading…
Cancel
Save