From 01365df5a33610f7b4ee8e3cb21d8d79498bc721 Mon Sep 17 00:00:00 2001 From: duqingquan-jpc Date: Wed, 28 Dec 2022 20:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20lottie=20=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E8=B7=AF=E5=BE=84=E4=B8=BA/static/xxx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/SDKIntegration/Lottie/index.nvue | 2 +- uni_modules/uts-animation-view/utssdk/app-android/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/SDKIntegration/Lottie/index.nvue b/pages/SDKIntegration/Lottie/index.nvue index 96778cc..579be96 100644 --- a/pages/SDKIntegration/Lottie/index.nvue +++ b/pages/SDKIntegration/Lottie/index.nvue @@ -29,7 +29,7 @@ widthNum: 750, heightNum: 200, comShow: true, - animUrl: "anim_a.json" + animUrl: "/static/anim_a.json" } }, diff --git a/uni_modules/uts-animation-view/utssdk/app-android/index.vue b/uni_modules/uts-animation-view/utssdk/app-android/index.vue index 70ee829..0e674ae 100644 --- a/uni_modules/uts-animation-view/utssdk/app-android/index.vue +++ b/uni_modules/uts-animation-view/utssdk/app-android/index.vue @@ -97,7 +97,7 @@ lottieAnimationView.setAnimationFromUrl(newPath) } else { // 默认是static了 - var realJsonPath = UTSAndroid.getResourcePath("static/" + newPath) + var realJsonPath = UTSAndroid.getResourcePath(newPath) lottieAnimationView.setAnimation(new FileInputStream(realJsonPath),newPath) } } -- GitLab