1 Star 0 Fork 83

sumulige/yidongyiapp

forked from sectong/yidongyiapp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
subpage-setting.html 3.60 KB
一键复制 编辑 原始数据 按行查看 历史
jiekechoo 提交于 2016-10-12 20:24 . init
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello MUI</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="css/mui.min.css">
<style>
html,
body {
background-color: #efeff4;
}
.title {
margin: 20px 15px 10px;
color: #6d6d72;
font-size: 15px;
}
</style>
</head>
<body>
<!--<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">设置</h1>
</header>-->
<div class="mui-content">
<ul class="mui-table-view">
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
新消息通知
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
隐私
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
通用
</a>
</li>
<li class="mui-table-view-cell">
<a id="welcome" class="mui-navigate-right">
欢迎页
</a>
</li>
</ul>
<ul class="mui-table-view" style="margin-top: 25px;">
<li class="mui-table-view-cell">
<a id="about" class="mui-navigate-right">
关于移动易
</a>
</li>
</ul>
<ul class="mui-table-view" style="margin-top: 25px;">
<li class="mui-table-view-cell">
<a style="text-align: center;color: #FF3B30;" id="exit">
退出登录
</a>
</li>
</ul>
</div>
</style>
</body>
<script src="./js/mui.min.js "></script>
<script src="./js/mui.view.js "></script>
<script src='./libs/easymob-webim-sdk/jquery-1.11.1.js'></script>
<script src='./libs/easymob-webim-sdk/strophe-custom-2.0.0.js'></script>
<script src='./libs/easymob-webim-sdk/json2.js'></script>
<script src="./libs/easymob-webim-sdk/easemob.im-1.0.5.js"></script>
<script src='./js/feedback.js'></script>
<script src="./js/feedback-page.js"></script>
<script src="./js/mui.locker.js"></script>
<script src="./js/app.js"></script>
<script>
mui.init({
swipeBack: true //启用右滑关闭功能
});
// 返回主页
document.getElementById("about").addEventListener('tap', function() {
//获得主页面的webview
var main = plus.webview.currentWebview().parent();
//触发主页面的gohome事件
mui.fire(main, 'gohome');
});
// 打开欢迎页
document.getElementById("welcome").addEventListener('tap', function() {
mui.openWindow({
url: 'guide.html',
id: 'guide',
show: {
aniShow: 'pop-in'
},
waiting: {
autoShow: false
}
});
});
//退出操作******************
document.getElementById('exit').addEventListener('tap', function() {
app.logoutServer();
if(mui.os.ios) {
app.setState({});
mui.openWindow({
url: 'login.html',
id: 'login',
show: {
aniShow: 'pop-in'
},
waiting: {
autoShow: false
}
});
return;
}
var btnArray = [{
title: "注销当前账号"
}, {
title: "直接关闭应用"
}];
plus.nativeUI.actionSheet({
cancel: "取消",
buttons: btnArray
}, function(event) {
var index = event.index;
switch(index) {
case 1:
app.setState({});
mui.openWindow({
url: 'login.html',
id: 'login',
show: {
aniShow: 'pop-in'
},
waiting: {
autoShow: false
}
});
break;
case 2:
plus.runtime.quit();
break;
}
});
}, false);
</script>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/sumulige/yidongyiapp.git
git@gitee.com:sumulige/yidongyiapp.git
sumulige
yidongyiapp
yidongyiapp
master

搜索帮助