|
- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset="utf-8">
- <title></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">
- <link rel="stylesheet" href="css/style.css">
- <style>
- html,
- body {
- background-color: #efeff4;
- }
-
- .title {
- padding: 20px 15px 10px;
- color: #6d6d72;
- font-size: 15px;
- background-color: #fff;
- }
- </style>
-
- </head>
-
- <body>
- <div class="mui-content">
- <div class="mui-scroll-wrapper">
- <div class="mui-scroll">
- <ul class="mui-table-view mui-table-view-chevron">
- <li class="mui-table-view-cell mui-media">
- <a href="javascript:void(0);">
- <img class="mui-media-object mui-pull-left head-img" id="photo" src="images/user-photo.png">
- <div class="mui-media-body">
- <span id="username"></span>
- <p id="phone" class='mui-ellipsis'>电话</p>
- </div>
- </a>
- </li>
- </ul>
- <ul class="mui-table-view" style="margin-top: 25px;" id="account">
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/geren.png"> 个人信息</a>
- </li>
- </ul>
- <ul class="mui-table-view " style="margin-top: 25px;" id="change">
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/setting.png"> 修改密码</a>
- </li>
- </ul>
- <ul class="mui-table-view " style="margin-top: 25px;" id="checkupdate">
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/setting.png"> 当前版本 V1.0.1</a>
- </li>
- </ul>
- <ul class="mui-table-view" style="margin-top: 25px;" id="logout">
- <li class="mui-table-view-cell" style="text-align: center;">
- <a>退出登录</a>
- </li>
- </ul>
- </div>
-
- </div>
- </div>
- </body>
- <script src="js/mui.min.js "></script>
- <script type="text/javascript" src="js/serverurl.js"></script>
- <script type="text/javascript" src="js/userinfos.js"></script>
- <script type="text/javascript" src="js/checkupdate.js"></script>
- <script type="text/javascript">
- mui.plusReady(function() {
- //
- if(CheckLogin()) {
- var B = window.plus.bridge;
- var Yuntx = {
- Logout: function(successCallback, errorCallback) {
- var success = typeof successCallback !== 'function' ? null : function(args) {
- successCallback(args);
- },
- fail = typeof errorCallback !== 'function' ? null : function(code) {
- errorCallback(code);
- },
- callbackID = B.callbackId(success, fail);
- return B.exec("Yuntx", "Logout", [callbackID]);//
- }
- };
- window.plus.Yuntx = Yuntx;
- document.getElementById("username").innerText = users.username;
- document.getElementById("phone").innerText = users.phone;
- if(users.photo != undefined && users.photo != null)
- document.getElementById("photo").src = web + '/' + users.photo;
- }
- document.getElementById("account").addEventListener("tap", function() {
- mui.openWindow({
- url: 'settings.html',
- id: 'settings',
- show: {
- aniShow: 'pop-in'
- }
- });
- });
- document.getElementById("change").addEventListener("tap", function() {
- mui.openWindow({
- url: 'changepassword.html',
- id: 'change',
- show: {
- aniShow: 'pop-in'
- }
- });
- });
- document.getElementById("checkupdate").addEventListener("tap", function() {
- if(plus.os.name != 'iOS')
- CheckUpdateManual();
- });
- document.getElementById("logout").addEventListener("tap", function() {
- if(confirm("是否退出?")) {
- SetLogOut();
- mui.openWindow({
- url: 'login.html',
- id: 'login',
- extras: {
- logoutlogin: true
- },
- show: {
- aniShow: 'pop-in'
- }
- });
- //logout yuntx
- plus.Yuntx.Logout(
- function(contact) { //成功
- },
- function(status) { //失败
-
- });
- }
- });
- //update
- if(plus.os.name != 'iOS')
- CheckUpdate();
- });
- </script>
-
- </html>
|