From a09e545e9180d44f66e2f36baedcb4e721f58ed8 Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Sat, 10 Aug 2024 17:36:37 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=20=E6=8F=90=E4=BA=A4=E6=96=B9?= =?UTF-8?q?=E6=A1=88=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../constructionManage/schemeDetails.vue | 363 ++++++++++++++++++ static/download2.png | Bin 0 -> 407 bytes static/preview.png | Bin 0 -> 865 bytes utils/tool.js | 19 +- 4 files changed, 379 insertions(+), 3 deletions(-) create mode 100644 pages/projectEnd/constructionManage/schemeDetails.vue create mode 100644 static/download2.png create mode 100644 static/preview.png diff --git a/pages/projectEnd/constructionManage/schemeDetails.vue b/pages/projectEnd/constructionManage/schemeDetails.vue new file mode 100644 index 00000000..cd21f678 --- /dev/null +++ b/pages/projectEnd/constructionManage/schemeDetails.vue @@ -0,0 +1,363 @@ + + + + + \ No newline at end of file diff --git a/static/download2.png b/static/download2.png new file mode 100644 index 0000000000000000000000000000000000000000..31af86d31332541f6e496cb0d7ff6da330e9ede3 GIT binary patch literal 407 zcmV;I0cie-P)Px$QAtEWR9HvtmO*ZVFc3v&q%InAiRKLLL7-~0t+MMWz~&U)Ro%8#;UMW5$|XX& zs5F%ckt}2nwgHg^-hc!%|9R$nWQ3U)&a4lE0FwOoS#6+5uU|qpG7Lc0)Bt2raGu~m zC7dh(O9hq+OjUt6KineWClS4sVl8Y##^o5s;vf+5iI5)3bp74UWt;;oz+U}KMA8P) z2hfUVO&+8>XMlFdJOaQw2f+d8;sCHMvgpH9Np=z@vSuM{0IuQ+sCN`|5GDX0aVG$- z9bEulac2M7iRAg6Gn}^xO#!+m4BxG8x6P7X6M8^+i+i^~hv`%z zNPG~03Xa9`MmR?1Qm&v$n zYOf_4T?yCDNxq+@IZj?wwxgcC_Lx^MnOFJ{-~A{OS4SrK2xq(8JG%9$1S%n_B$&Am z4TJ@b+I@d*Be2a)9o5lLBb?x{dq>wFXhxJK>e;WZl7OQGB8_%nUk(18SH}tLS_d&b z5$<^YO_ydsX`;+E-K8*!8V7;pVOku>#(#zl`QuzJhEhbekRUBsi0!{fP7y_;_ZV6v z^$rz8$sLWHc#zuXJkjH{kfEvZ78OKEqGs|4N13}hg%IbC{p(It3GSV|k&vqvQs9aT zq9oCu!DJaXPqZpTT*j#h6htYala^rs4L#JBB`bca5P{z~p@Jy==%I}Vaps|~N+YXs zG!gq)A!r7a_WHm!LdaAb8hNT@_l|A?q1(Qpw~R6IA3Ky?==hSnfiXSEz)e~jbCVUm!~wG;%T+Z5bnYi`K(ZLNcugK zsJcz;C~@U8KR{R21l+XmuQ>$&4sU3EUu|)>ccYb3NEHK{;b3qn?!Bm&6qEDQ_^pGs r!{T%+?XzG7Kq1qxMP9Hao&|mZm~=%cleIcb00000NkvXXu0mjfEjf8a literal 0 HcmV?d00001 diff --git a/utils/tool.js b/utils/tool.js index 9d2fde32..e595df97 100644 --- a/utils/tool.js +++ b/utils/tool.js @@ -184,7 +184,10 @@ export function openLocalFile(name, path) { // duration: 2000, // }); //保存好再打开文件 - saveNetWorkFileTemp({name: name,path: res.savedFilePath}) + saveNetWorkFileTemp({ + name: name, + path: res.savedFilePath + }) // setTimeout(() => { // uni.openDocument({ // filePath: res.savedFilePath, @@ -278,7 +281,7 @@ export function exitApp() { uni.removeStorageSync('company'); uni.removeStorageSync('dept'); uni.removeStorageSync('moduleInfo'); - + uni.redirectTo({ url: '/pages/login/login' }) @@ -293,4 +296,14 @@ export function isImageLink(url) { // 正则表达式匹配常见的图片文件扩展名 const imageExtensionsRegex = /\.(jpg|jpeg|png|gif|webp)$/i; return imageExtensionsRegex.test(url); -} \ No newline at end of file +} + +export function isJSON(str) { + try { + JSON.parse(str); + } catch (e) { + // 转换出错,抛出异常 + return false; + } + return true; +}; \ No newline at end of file