Commit 0d0941a9 authored by 胡's avatar

fix: ios 首次修改

parent 9aabd347
......@@ -140,10 +140,11 @@ export default {
this.hlsPopup.hideLoading()
if (res.result == 'S' && res.info.msg === 'success') {
this.$router.push({
name: 'ElectronicSign',
params: { url: res.info.data.url },
})
// this.$router.push({
// name: 'ElectronicSign',
// params: { url: res.info.data.url },
// })
cordova.InAppBrowser.open(res.info.data.url, '_blank', 'location=yes')
} else {
hlsPopup.showLongCenter(res.message || res.info.msg)
}
......
......@@ -569,12 +569,13 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.info.msg === 'success') {
vm.$router.push({
name: 'ElectronicSign',
params: {
url: res.info.data.url,
},
})
// vm.$router.push({
// name: 'ElectronicSign',
// params: {
// url: res.info.data.url,
// },
// })
cordova.InAppBrowser.open(res.info.data.url, '_blank', 'location=yes')
} else {
vm.hlsPopup.showLongCenter(res.info.msg)
}
......
......@@ -76,7 +76,7 @@ export default {
},
_loadFile (url) {
console.log('URL ==== ' + url)
this.PDFJS.getDocument(url).promise.then((pdf) => {
this.PDFJS.getDocument(url).then((pdf) => {
this.pdfDoc = pdf
// debugger
console.log('pdf ==== ' + pdf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment