diff --git a/pages/component/animation-view/animation-view.uvue b/pages/component/animation-view/animation-view.uvue
index 47eb40b8f1ddbd9af607d1f6816976e48bef79d4..5750b727f261ab245760f68b56950ce764f3f93a 100644
--- a/pages/component/animation-view/animation-view.uvue
+++ b/pages/component/animation-view/animation-view.uvue
@@ -7,7 +7,10 @@
-
@@ -28,10 +31,28 @@
widthNum: 750,
heightNum: 200,
comShow: true,
- animUrl: "/static/anim_a.json"
+ animUrl: "/static/anim_a.json",
+ androidStandardLauncher:false,
}
},
+ onLoad() {
+ // #ifdef APP-ANDROID
+ try{
+ Class.forName("com.airbnb.lottie.LottieAnimationView")
+ androidStandardLauncher = false
+ }catch(e:Exception){
+ androidStandardLauncher = true
+ }
+ if(androidStandardLauncher){
+ uni.showModal({
+ title:'当前示例需要自定义基座运行',
+ showCancel:false
+ })
+ }
+ // #endif
+ },
+
methods: {
changeAutoPlay: function() {
diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue
index aca22667b8d8f5e1bb40822850006dc5d67e6e2f..d856df0e1948fc63f0bbb3290faac7a28cf32d01 100644
--- a/pages/tabBar/template.uvue
+++ b/pages/tabBar/template.uvue
@@ -209,15 +209,6 @@
pages: [] as Page[],
},
// #endif
- // #ifdef APP-ANDROID
- {
- id: 'lottie-anim',
- url: 'lottie-anim',
- name: 'lottie动画-需要自定义基座',
- open: false,
- pages: [] as Page[],
- },
- // #endif
// #ifdef WEB
{
id: 'browser-element',