测试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 -2
View File
@@ -24,9 +24,9 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# dev # dev
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
# sit # sit
VITE_APP_BASE_H5_API_Url = 'http://25.18.122.92:9786' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.92:9786'
# UAT # UAT
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786'
+2 -1
View File
@@ -473,7 +473,8 @@
}); });
break; break;
case 'preview': case 'preview':
if (getPhoneEnvBool('AND')) { // if (getPhoneEnvBool('AND')) {
if (false) {
common.navigateTo('/pages/index/preview?fileId=' + info.docId); common.navigateTo('/pages/index/preview?fileId=' + info.docId);
} else { } else {
const base_url = get_base_url('/traask/traFilePreview/'); const base_url = get_base_url('/traask/traFilePreview/');
+9 -3
View File
@@ -37,9 +37,15 @@ export default {
this.fileId = params.fileId || '' this.fileId = params.fileId || ''
}, },
onShow() { onShow() {
this.openPdfFn({ if (getPhoneEnvBool('AND')) {
fileId: this.fileId 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() { onReady() {
//#ifdef APP-PLUS //#ifdef APP-PLUS