Geeker
Geeker
  • 发布:2019-03-17 02:05
  • 更新:2019-07-22 13:52
  • 阅读:904

广告启动屏制作,plus.nativeObj画的,安卓机遮挡不住tabBar啊

分类:uni-app

看了这个:http://ask.dcloud.net.cn/article/13008

然后弄了个,苹果上自己画的splash速度效果都不错,然后安卓机上挡不住tabbar

求解啊

代码放在app中:

//声明    
			var view = new plus.nativeObj.View("Splashscreen", {    
				top: 0,    
				left: 0,    
				bottom: 0,    
				width: plus.screen.resolutionWidth,    
				height: plus.screen.resolutionHeight    
			});    
			  
			//添加图片    
			if(plus.storage.getItem("SplashscreenSrc")){    
				view.drawBitmap(plus.storage.getItem("SplashscreenSrc"), {}, {}, "");                       
			}else{    
				view.drawBitmap("static/splash.jpg", {}, {}, "");    
			}    
			  
			//显示    
			view.show();    
			plus.navigator.closeSplashscreen();//干掉启动页    
  
			setTimeout(function() {    
				if(view){    
					view.close();//干掉启动广告页    
				}    
			}, 3000)  
2019-03-17 02:05 负责人:无 分享
已邀请:
Geeker

Geeker (作者)

好吧 自己解决了 > height: plus.screen.resolutionHeight +45

前端大白

前端大白 - 前端攻城狮

这个路径支持网络路径吗?还是说非要下载到本地?

该问题目前已经被锁定, 无法添加新回复