scan: function() {
var that = this
uni.downloadFile({
url: 'file:///private/var/mobile/Containers/Data/Application/C4F132BD-106C-459F-B00D-57D873271319/tmp/com.baiwang.eInvoiceBusiness-Inbox/2019_Invoice_Digitization_in_China%202.pdf',
success: result => {
console.log(result)
// filePath 可用于 uni.uploadFile 上传的路径
let filePath = result.tempFilePath;
console.log('文件地址' + filePath)
},
fail:function(result){
console.log(result)
}
});
},
0 个回复