Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于MUI获取原生头部VIew显示不出来的问题解决 #3

Open
qmsggg opened this issue Jul 22, 2018 · 0 comments
Open

关于MUI获取原生头部VIew显示不出来的问题解决 #3

qmsggg opened this issue Jul 22, 2018 · 0 comments

Comments

@qmsggg
Copy link
Owner

qmsggg commented Jul 22, 2018

配置文件:

"launchwebview": {
			"titleNView": {
				"backgroundcolor": "#f7f7f7",
				"titletext": "首页",
				"titlecolor": "#000000"
			}
		},

添加View代码

//绘制顶部图标
				_self = plus.webview.currentWebview();
				var titleView = _self.getTitleNView();
				console.log(titleView);
				if(!titleView) {
					titleView = plus.webview.getLaunchWebview().getTitleNView();
				}
				console.log(titleView);
				titleView.drawRect("#cccccc", {
					top: "43px",
					height: "1px",
					left: "0px"
				}); //绘制底部边线

				//开启回弹
				_self.setStyle({
					bounce: "vertical",
					bounceBackground: "#efeff4",
					popGesture: 'none' //首页有侧滑菜单,因此屏蔽首页的侧滑关闭功能
				});

解决办法:

删除APP重新生成并按装

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant