| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <!DOCTYPE html>
- <html class="ui-page-login">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title>个人中心</title>
- <link href="css/mui.min.css" rel="stylesheet" />
- <style>
- .mui-btn-primary {
- border: 1px solid #2f4050;
- background-color: #2f4050;
- width: 90%;
- height: 46px;
- left: 50%;
- transform: translate(-50%);
- -webkit-transform: translate(-50%);
- padding: 0;
- }
-
- .mui-content-padded {
- margin-top: 10%;
- }
- </style>
- <script src="js/zepto.js"></script>
- <script src="Script/Common/huayi.http.js"></script>
- <script>
- var userCode = helper.cookies.get("usercode");
- if(!userCode) {
- window.location.href = "./login.html?type=3";
- }
- </script>
- </head>
- <body>
- <div class="mui-card">
- <!--页眉,放置标题-->
- <div class="mui-card-header">用户信息</div>
- <!--内容区-->
- <div class="mui-card-content">
- <ul class="mui-table-view">
- <li class="mui-table-view-cell">
- <span class="mui-icon mui-icon-contact"></span> 账号
- <span id="usercode" class="mui-badge mui-badge-primary mui-badge-inverted"></span>
- </li>
- </ul>
- </div>
- <!--<div class="mui-card-footer">页脚</div>-->
- </div>
- <div class="mui-content-padded">
- <button id="signout" class="mui-btn mui-btn-block mui-btn-primary">退出</button>
- </div>
- <script src="js/mui.min.js"></script>
- <script src="Script/Common/huayi.config.js"></script>
- <script>
- Zepto(function($) {
- $('#usercode').text(userCode);
- $("#signout").on('tap', function() {
- var btnArray = ['取消', '确定'];
- mui.confirm('您确定要退出吗?', '消息提醒', btnArray, function(e) {
- if(e.index == 1) { //确定
- helper.cookies.set("usercode", "");
- f_close();//关闭当前页面
- }
- });
- });
- });
- function f_close() {
- if(typeof(WeixinJSBridge) != "undefined") {
- //WeixinJSBridge.call('closeWindow');
- WeixinJSBridge.invoke('closeWindow', {}, function(res) {
- //alert(res.err_msg);
- });
- } else {
- if(navigator.userAgent.indexOf("MSIE") > 0) {
- if(navigator.userAgent.indexOf("MSIE 6.0") > 0) {
- window.opener = null;
- window.close();
- } else {
- window.open('', '_top');
- window.top.close();
- }
- } else if(navigator.userAgent.indexOf("Firefox") > 0) {
- window.location.href = 'about:blank ';
- } else {
- window.location.href="about:blank";
- window.close();
- /*window.opener = null;
- window.open('', '_self', '');
- window.close();*/
- }
- }
- }
- </script>
- </body>
- </html>
|