2.2提交
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user