-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsettingsPage.html
89 lines (77 loc) · 2.64 KB
/
settingsPage.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link href="css/mui.min.css" rel="stylesheet" />
<link rel="stylesheet" href="css/y_s.css" />
</head>
<body>
<header class="mui-bar mui-bar-nav">
<h1 class="mui-title">设置</h1>
<a class="mui-icon mui-icon-left-nav" id="setClose"></a>
</header>
<div class="mui-content">
<ul>
<li class="wu-table-li-son"></li>
<!--站位li-->
<li class="wu-table-li" id="getuserName">
<span id="userName">曹操</span>
<a class="mui-icon mui-icon-arrowright mui-pull-right" style="color: #666;"></a>
</li>
<li class="wu-table-li-son"></li>
<!--站位li-->
<li class="wu-table-li">清除记录</li>
<li class="wu-table-li">显示高清图片</li>
<li class="wu-table-li">
<span id="userName">清除缓存</span>
<a class="mui-icon mui-icon-arrowright mui-pull-right" style="color: #666;"></a>
</li>
<li class="wu-table-li-son"></li>
<!--站位li-->
<li class="wu-table-li">
<span id="userName">意见反馈</span>
<a class="mui-icon mui-icon-arrowright mui-pull-right" style="color: #666;"></a>
</li>
<li class="wu-table-li">
<span id="userName">关于</span>
<a class="mui-icon mui-icon-arrowright mui-pull-right" style="color: #666;"></a>
</li>
<li class="wu-table-li-son"></li>
<!--站位li-->
<li class="wu-table-li">
<span id="userName">当当读书</span>
<a class="mui-icon mui-icon-arrowright mui-pull-right" style="color: #666;"></a>
</li>
<div style="padding: 20px;">
<button type="button" class="mui-btn-block" style="background-color:#ff463c; color: white; border: none;" id="exitLogin">退出登录</button>
</div>
</ul>
</div>
</body>
<script src="js/mui.min.js"></script>
<script type="text/javascript">
mui.init()
mui.plusReady(function() {
var strNun = plus.storage.getItem('userName');
document.getElementById("userName").innerHTML = strNun;
});
document.getElementById("getuserName").addEventListener("tap", function() {
mui.openWindow({
url: 'ModifyInformation.html',
id: 'ModifyInformation'
})
});
document.getElementById("setClose").addEventListener("tap", function() {
var myclose = plus.webview.currentWebview();
plus.webview.close(myclose);
});
document.getElementById("exitLogin").addEventListener("tap", function() {
plus.storage.clear();
alert("退出成功");
var myclose = plus.webview.currentWebview();
plus.webview.close(myclose);
});
</script>
</html>