|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html class="ui-page-login">
|
|
|
3
|
+
|
|
|
4
|
+ <head>
|
|
|
5
|
+ <meta charset="utf-8">
|
|
|
6
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
|
|
7
|
+ <title>个人中心</title>
|
|
|
8
|
+ <link href="css/mui.min.css" rel="stylesheet" />
|
|
|
9
|
+ <style>
|
|
|
10
|
+ .mui-btn-primary {
|
|
|
11
|
+ border: 1px solid #2f4050;
|
|
|
12
|
+ background-color: #2f4050;
|
|
|
13
|
+ width: 90%;
|
|
|
14
|
+ height: 46px;
|
|
|
15
|
+ left: 50%;
|
|
|
16
|
+ transform: translate(-50%);
|
|
|
17
|
+ -webkit-transform: translate(-50%);
|
|
|
18
|
+ padding: 0;
|
|
|
19
|
+ }
|
|
|
20
|
+
|
|
|
21
|
+ .mui-content-padded {
|
|
|
22
|
+ margin-top: 10%;
|
|
|
23
|
+ }
|
|
|
24
|
+ </style>
|
|
|
25
|
+ <script src="js/zepto.js"></script>
|
|
|
26
|
+ <script src="Script/Common/huayi.http.js"></script>
|
|
|
27
|
+ <script>
|
|
|
28
|
+ var userCode = helper.cookies.get("usercode");
|
|
|
29
|
+ if(!userCode) {
|
|
|
30
|
+ window.location.href = "./login.html?type=3";
|
|
|
31
|
+ }
|
|
|
32
|
+ </script>
|
|
|
33
|
+ </head>
|
|
|
34
|
+
|
|
|
35
|
+ <body>
|
|
|
36
|
+
|
|
|
37
|
+ <div class="mui-card">
|
|
|
38
|
+ <!--页眉,放置标题-->
|
|
|
39
|
+ <div class="mui-card-header">用户信息</div>
|
|
|
40
|
+ <!--内容区-->
|
|
|
41
|
+ <div class="mui-card-content">
|
|
|
42
|
+ <ul class="mui-table-view">
|
|
|
43
|
+ <li class="mui-table-view-cell">
|
|
|
44
|
+ <span class="mui-icon mui-icon-contact"></span> 账号
|
|
|
45
|
+ <span id="usercode" class="mui-badge mui-badge-primary mui-badge-inverted"></span>
|
|
|
46
|
+ </li>
|
|
|
47
|
+ </ul>
|
|
|
48
|
+ </div>
|
|
|
49
|
+ <!--<div class="mui-card-footer">页脚</div>-->
|
|
|
50
|
+ </div>
|
|
|
51
|
+ <div class="mui-content-padded">
|
|
|
52
|
+ <button id="signout" class="mui-btn mui-btn-block mui-btn-primary">退出</button>
|
|
|
53
|
+ </div>
|
|
|
54
|
+
|
|
|
55
|
+ <script src="js/mui.min.js"></script>
|
|
|
56
|
+ <script src="Script/Common/huayi.config.js"></script>
|
|
|
57
|
+
|
|
|
58
|
+ <script>
|
|
|
59
|
+ Zepto(function($) {
|
|
|
60
|
+ $('#usercode').text(userCode);
|
|
|
61
|
+ $("#signout").on('tap', function() {
|
|
|
62
|
+
|
|
|
63
|
+ var btnArray = ['取消', '确定'];
|
|
|
64
|
+ mui.confirm('您确定要退出吗?', '消息提醒', btnArray, function(e) {
|
|
|
65
|
+ if(e.index == 1) { //确定
|
|
|
66
|
+ helper.cookies.set("usercode", "");
|
|
|
67
|
+ f_close();//关闭当前页面
|
|
|
68
|
+ }
|
|
|
69
|
+ });
|
|
|
70
|
+ });
|
|
|
71
|
+ });
|
|
|
72
|
+
|
|
|
73
|
+ function f_close() {
|
|
|
74
|
+ if(typeof(WeixinJSBridge) != "undefined") {
|
|
|
75
|
+ //WeixinJSBridge.call('closeWindow');
|
|
|
76
|
+ WeixinJSBridge.invoke('closeWindow', {}, function(res) {
|
|
|
77
|
+ //alert(res.err_msg);
|
|
|
78
|
+ });
|
|
|
79
|
+ } else {
|
|
|
80
|
+ if(navigator.userAgent.indexOf("MSIE") > 0) {
|
|
|
81
|
+ if(navigator.userAgent.indexOf("MSIE 6.0") > 0) {
|
|
|
82
|
+ window.opener = null;
|
|
|
83
|
+ window.close();
|
|
|
84
|
+ } else {
|
|
|
85
|
+ window.open('', '_top');
|
|
|
86
|
+ window.top.close();
|
|
|
87
|
+ }
|
|
|
88
|
+ } else if(navigator.userAgent.indexOf("Firefox") > 0) {
|
|
|
89
|
+ window.location.href = 'about:blank ';
|
|
|
90
|
+ } else {
|
|
|
91
|
+ window.location.href="about:blank";
|
|
|
92
|
+ window.close();
|
|
|
93
|
+ /*window.opener = null;
|
|
|
94
|
+ window.open('', '_self', '');
|
|
|
95
|
+ window.close();*/
|
|
|
96
|
+ }
|
|
|
97
|
+ }
|
|
|
98
|
+ }
|
|
|
99
|
+ </script>
|
|
|
100
|
+ </body>
|
|
|
101
|
+
|
|
|
102
|
+</html>
|