25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

146 satır
4.3 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link rel="stylesheet" href="css/mui.min.css">
  10. <link rel="stylesheet" href="css/style.css">
  11. <style>
  12. html,
  13. body {
  14. background-color: #efeff4;
  15. }
  16. .title {
  17. padding: 20px 15px 10px;
  18. color: #6d6d72;
  19. font-size: 15px;
  20. background-color: #fff;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <div class="mui-content">
  26. <div class="mui-scroll-wrapper">
  27. <div class="mui-scroll">
  28. <ul class="mui-table-view mui-table-view-chevron">
  29. <li class="mui-table-view-cell mui-media">
  30. <a href="javascript:void(0);">
  31. <img class="mui-media-object mui-pull-left head-img" id="photo" src="images/user-photo.png">
  32. <div class="mui-media-body">
  33. <span id="username"></span>
  34. <p id="phone" class='mui-ellipsis'>电话</p>
  35. </div>
  36. </a>
  37. </li>
  38. </ul>
  39. <ul class="mui-table-view" style="margin-top: 25px;" id="account">
  40. <li class="mui-table-view-cell">
  41. <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/geren.png">&nbsp;个人信息</a>
  42. </li>
  43. </ul>
  44. <ul class="mui-table-view " style="margin-top: 25px;" id="change">
  45. <li class="mui-table-view-cell">
  46. <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/setting.png">&nbsp;修改密码</a>
  47. </li>
  48. </ul>
  49. <ul class="mui-table-view " style="margin-top: 25px;" id="checkupdate">
  50. <li class="mui-table-view-cell">
  51. <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/setting.png">&nbsp;当前版本 V1.0.1</a>
  52. </li>
  53. </ul>
  54. <ul class="mui-table-view" style="margin-top: 25px;" id="logout">
  55. <li class="mui-table-view-cell" style="text-align: center;">
  56. <a>退出登录</a>
  57. </li>
  58. </ul>
  59. </div>
  60. </div>
  61. </div>
  62. </body>
  63. <script src="js/mui.min.js "></script>
  64. <script type="text/javascript" src="js/serverurl.js"></script>
  65. <script type="text/javascript" src="js/userinfos.js"></script>
  66. <script type="text/javascript" src="js/checkupdate.js"></script>
  67. <script type="text/javascript">
  68. mui.plusReady(function() {
  69. //
  70. if(CheckLogin()) {
  71. var B = window.plus.bridge;
  72. var Yuntx = {
  73. Logout: function(successCallback, errorCallback) {
  74. var success = typeof successCallback !== 'function' ? null : function(args) {
  75. successCallback(args);
  76. },
  77. fail = typeof errorCallback !== 'function' ? null : function(code) {
  78. errorCallback(code);
  79. },
  80. callbackID = B.callbackId(success, fail);
  81. return B.exec("Yuntx", "Logout", [callbackID]);//
  82. }
  83. };
  84. window.plus.Yuntx = Yuntx;
  85. document.getElementById("username").innerText = users.username;
  86. document.getElementById("phone").innerText = users.phone;
  87. if(users.photo != undefined && users.photo != null)
  88. document.getElementById("photo").src = web + '/' + users.photo;
  89. }
  90. document.getElementById("account").addEventListener("tap", function() {
  91. mui.openWindow({
  92. url: 'settings.html',
  93. id: 'settings',
  94. show: {
  95. aniShow: 'pop-in'
  96. }
  97. });
  98. });
  99. document.getElementById("change").addEventListener("tap", function() {
  100. mui.openWindow({
  101. url: 'changepassword.html',
  102. id: 'change',
  103. show: {
  104. aniShow: 'pop-in'
  105. }
  106. });
  107. });
  108. document.getElementById("checkupdate").addEventListener("tap", function() {
  109. if(plus.os.name != 'iOS')
  110. CheckUpdateManual();
  111. });
  112. document.getElementById("logout").addEventListener("tap", function() {
  113. if(confirm("是否退出?")) {
  114. SetLogOut();
  115. mui.openWindow({
  116. url: 'login.html',
  117. id: 'login',
  118. extras: {
  119. logoutlogin: true
  120. },
  121. show: {
  122. aniShow: 'pop-in'
  123. }
  124. });
  125. //logout yuntx
  126. plus.Yuntx.Logout(
  127. function(contact) { //成功
  128. },
  129. function(status) { //失败
  130. });
  131. }
  132. });
  133. //update
  134. if(plus.os.name != 'iOS')
  135. CheckUpdate();
  136. });
  137. </script>
  138. </html>