ios适配
This commit is contained in:
@@ -2803,17 +2803,17 @@
|
|||||||
const nowTime = new Date().getTime()
|
const nowTime = new Date().getTime()
|
||||||
this.loadingText = true
|
this.loadingText = true
|
||||||
if (editFileInfo.fileSuffix.toLowerCase() === 'pdf') {
|
if (editFileInfo.fileSuffix.toLowerCase() === 'pdf') {
|
||||||
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
// if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
||||||
//alert(navigator.userAgent);
|
// //alert(navigator.userAgent);
|
||||||
this.getFileInfo(editFileInfo.id)
|
// this.getFileInfo(editFileInfo.id)
|
||||||
} else if (/(Android)/i.test(navigator.userAgent)) {
|
// } else if (/(Android)/i.test(navigator.userAgent)) {
|
||||||
//alert(navigator.userAgent);
|
// //alert(navigator.userAgent);
|
||||||
|
// this.loadingText = false
|
||||||
|
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||||
|
// } else {
|
||||||
this.loadingText = false
|
this.loadingText = false
|
||||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||||
} else {
|
// }
|
||||||
this.loadingText = false
|
|
||||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
|
||||||
}
|
|
||||||
// window.open('/#/phonePDF?fileId='+editFileInfo.id)
|
// window.open('/#/phonePDF?fileId='+editFileInfo.id)
|
||||||
} else {
|
} else {
|
||||||
const nowTime = new Date().getTime()
|
const nowTime = new Date().getTime()
|
||||||
|
|||||||
Reference in New Issue
Block a user