uniapp针对app处理样式

针对部分app头部重叠的处理方法

// #ifdef APP-PLUS
			var height = 0;
			uni.getSystemInfo({
				success: (sysinfo) => {
					height = sysinfo.windowHeight;
				},
				complete: () => {}
			});
			var currentWebview = this.$scope.$getAppWebview();
			setTimeout(function() {
				this.barHeight = plus.navigator.getStatusbarHeight();
				var wv = currentWebview.children()[0];
				wv.setStyle({
					top: this.barHeight,
					height: height - this.barHeight,
					scalable: true,
				})
			}, 500);
			// #endif

你可能感兴趣的:(uni-app,javascript,开发语言)