From 28ab7a31cdfcca50eefc1b510fe55a989f14c6fa Mon Sep 17 00:00:00 2001 From: muzi <1099438829@qq.com> Date: Fri, 31 May 2019 20:56:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84finder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/finder/index.css | 32 ++++++++++++++++++++++++++++++++ app/finder/js/main.js | 2 +- app/finder/json/desktop.json | 1 + app/finder/json/openPath.json | 1 + index.html | 2 +- 5 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 app/finder/json/desktop.json create mode 100644 app/finder/json/openPath.json diff --git a/app/finder/index.css b/app/finder/index.css index 7e4a201..6c0f89c 100644 --- a/app/finder/index.css +++ b/app/finder/index.css @@ -1,3 +1,35 @@ +html{color:#000;background:#FFF;} +body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form, +fieldset,input,textarea,p,blockquote,th,td { +margin:0; +padding:0; +} +table { +border-collapse:collapse; +border-spacing:0; +} +fieldset,img { +border:0; +} +address,caption,cite,code,dfn,em,strong,th,var { +font-style:normal; +font-weight:normal; +} +ol,ul { +list-style:none; +} +caption,th { +text-align:left; +} +h1,h2,h3,h4,h5,h6 { +font-size:100%; +font-weight:normal; +} +q:before,q:after { +content:''; +} +abbr,acronym { border:0; +} * { font-size: 12px; } diff --git a/app/finder/js/main.js b/app/finder/js/main.js index 20b8ad8..74034df 100644 --- a/app/finder/js/main.js +++ b/app/finder/js/main.js @@ -114,7 +114,7 @@ function finderOpenApp(name,path,appObject) { // ajax请求后台数据 $.ajax({ - url:'json/filelist.json', + url:'json/openPath.json', type:'GET', // GET async:false, // 是否异步 data:{ diff --git a/app/finder/json/desktop.json b/app/finder/json/desktop.json new file mode 100644 index 0000000..38fb7b2 --- /dev/null +++ b/app/finder/json/desktop.json @@ -0,0 +1 @@ +{"msg":"\u83b7\u53d6\u6210\u529f\uff01","url":"","data":[{"title":"computer","name":"finder","icon":".\/images\/apps\/computer.png","width":"800","height":"450","sort":1,"context":"computer"},{"title":"trash","name":"trash","icon":".\/images\/apps\/TrashIcon.png","width":"800","height":"450","sort":2,"context":"trash"},{"title":"\u7cfb\u7edf\u8bbe\u7f6e","name":"setting","icon":".\/images\/apps\/PrefApp.png","width":800,"height":450,"sort":3,"context":"setting"},{"title":"\u63a7\u5236\u53f0","name":"terminal","icon":".\/images\/apps\/Terminal.png","width":800,"height":450,"sort":5,"context":"terminal"}],"status":"success"} \ No newline at end of file diff --git a/app/finder/json/openPath.json b/app/finder/json/openPath.json new file mode 100644 index 0000000..b6750cc --- /dev/null +++ b/app/finder/json/openPath.json @@ -0,0 +1 @@ +{"msg":"\u83b7\u53d6\u6210\u529f\uff01","url":"","data":[{"title":"desktop","name":"finder","icon":".\/images\/apps\/GenericFolderIcon.png","width":800,"height":450,"path":"public\/user\/admin\/home\/desktop\/","context":"finder"},{"title":"documents","name":"finder","icon":".\/images\/apps\/GenericFolderIcon.png","width":800,"height":450,"path":"public\/user\/admin\/home\/documents\/","context":"finder"},{"title":"downloads","name":"finder","icon":".\/images\/apps\/GenericFolderIcon.png","width":800,"height":450,"path":"public\/user\/admin\/home\/downloads\/","context":"finder"},{"title":"movies","name":"finder","icon":".\/images\/apps\/GenericFolderIcon.png","width":800,"height":450,"path":"public\/user\/admin\/home\/movies\/","context":"finder"},{"title":"music","name":"finder","icon":".\/images\/apps\/GenericFolderIcon.png","width":800,"height":450,"path":"public\/user\/admin\/home\/music\/","context":"finder"},{"title":"pictures","name":"finder","icon":".\/images\/apps\/GenericFolderIcon.png","width":800,"height":450,"path":"public\/user\/admin\/home\/pictures\/","context":"finder"}],"status":"success"} \ No newline at end of file diff --git a/index.html b/index.html index e2cf47f..0530166 100644 --- a/index.html +++ b/index.html @@ -115,7 +115,7 @@