测试pdf

This commit is contained in:
杨航
2025-09-17 10:44:18 +08:00
parent 1257d726b7
commit dbf2af0555
3 changed files with 13 additions and 6 deletions
+2 -1
View File
@@ -473,7 +473,8 @@
});
break;
case 'preview':
if (getPhoneEnvBool('AND')) {
// if (getPhoneEnvBool('AND')) {
if (false) {
common.navigateTo('/pages/index/preview?fileId=' + info.docId);
} else {
const base_url = get_base_url('/traask/traFilePreview/');
+9 -3
View File
@@ -37,9 +37,15 @@ export default {
this.fileId = params.fileId || ''
},
onShow() {
this.openPdfFn({
fileId: this.fileId
})
if (getPhoneEnvBool('AND')) {
this.openPdfFn({
fileId: this.fileId
})
}else{
const base_url = get_base_url('/traask/traFilePreview/');
let fileUrl = base_url + '/traask/traFilePreview/' + info.docId;
this.showUrl = fileUrl
}
},
onReady() {
//#ifdef APP-PLUS