2.2提交

This commit is contained in:
zoujiandong
2026-02-02 17:44:10 +08:00
parent d06ee397cf
commit a7b2a673a9
54 changed files with 3615 additions and 1317 deletions
+10 -1
View File
@@ -155,6 +155,7 @@ import hotImg from "@/static/hot_booklist.png";
import downIng from "@/static/icon_library_down.png";
let downList = uni.getStorageSync("downLoadPdf") || [];
import empty from "@/components/empty/empty.vue";
import isAndroid from '@/utils/platform';
const downLoadList = ref(downList);
// 响应式数据
const guidelinesList = ref([]);
@@ -484,7 +485,8 @@ const viewGuideline = (cell) => {
if(item.id == cell.uuid) {
console.log(2222222222);
console.log(item.localPath);
plus.runtime.openFile(item.localPath, function(e) {
// if(isAndroid){
plus.runtime.openFile(item.localPath, function(e) {
console.log('打开成功');
}, function(e) {
uni.showToast({
@@ -494,6 +496,13 @@ const viewGuideline = (cell) => {
});
console.log('打开失败:' + e.message);
});
// }else{
// uni.sendNativeEvent('openDocument', {
// msg: item.localPath.replaceAll('_doc/uniapp_save/',''),
// }, ret => {
// console.log(ret);
// });
// }
// uni.openDocument({
// filePath: item.localPath,
// fileType: 'pdf',