//底部菜单栏跳转 mui(".g-tabbar").on("tap", ".tabbar a", function() { var id = this.getAttribute("id"); if (id) { mui.openWindow({ url: id + ".html", id: id }) } else { mui.alert('无权查看此功能!', '提示', ["确定"], function() {}, "div"); } }); //点击事件 mui(".mui-content").on("tap", ".m-boxb2 ul li a", function() { var tag = this.getAttribute("id"); if(tag == "m01"){ clearCache(); }else if(tag == "m02"){ update(); }else if(tag == "m03"){ loginOut(); }else if(tag == "m04"){ regards(); } }); //清除缓存 function clearCache() { localStorage.removeItem("user"); localStorage.removeItem("selectDeptId"); mui.toast("缓存清除成功!"); } //退出登录 function loginOut() { plus.runtime.restart(); } //修改信息 function update() { mui.openWindow({ url: "edit.html", id: "edit" }) } //关于 function regards() { mui.openWindow({ url: "information.html", id: "information" }) }