Commit 0d0941a9 authored by 胡's avatar

fix: ios 首次修改

parent 9aabd347
...@@ -140,10 +140,11 @@ export default { ...@@ -140,10 +140,11 @@ export default {
this.hlsPopup.hideLoading() this.hlsPopup.hideLoading()
if (res.result == 'S' && res.info.msg === 'success') { if (res.result == 'S' && res.info.msg === 'success') {
this.$router.push({ // this.$router.push({
name: 'ElectronicSign', // name: 'ElectronicSign',
params: { url: res.info.data.url }, // params: { url: res.info.data.url },
}) // })
cordova.InAppBrowser.open(res.info.data.url, '_blank', 'location=yes')
} else { } else {
hlsPopup.showLongCenter(res.message || res.info.msg) hlsPopup.showLongCenter(res.message || res.info.msg)
} }
......
...@@ -569,12 +569,13 @@ export default { ...@@ -569,12 +569,13 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.info.msg === 'success') { if (res.info.msg === 'success') {
vm.$router.push({ // vm.$router.push({
name: 'ElectronicSign', // name: 'ElectronicSign',
params: { // params: {
url: res.info.data.url, // url: res.info.data.url,
}, // },
}) // })
cordova.InAppBrowser.open(res.info.data.url, '_blank', 'location=yes')
} else { } else {
vm.hlsPopup.showLongCenter(res.info.msg) vm.hlsPopup.showLongCenter(res.info.msg)
} }
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}, },
_loadFile (url) { _loadFile (url) {
console.log('URL ==== ' + url) console.log('URL ==== ' + url)
this.PDFJS.getDocument(url).promise.then((pdf) => { this.PDFJS.getDocument(url).then((pdf) => {
this.pdfDoc = pdf this.pdfDoc = pdf
// debugger // debugger
console.log('pdf ==== ' + pdf) 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