You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

160 lines
4.8 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="award">
  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/jiangli.png">&nbsp;招生奖励</a>
  47. </li>
  48. </ul>
  49. <ul class="mui-table-view " style="margin-top: 25px;" id="change">
  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;修改密码</a>
  52. </li>
  53. </ul>
  54. <ul class="mui-table-view " style="margin-top: 25px;" id="checkupdate">
  55. <li class="mui-table-view-cell">
  56. <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/setting.png">&nbsp;当前版本 V1.0.5</a>
  57. </li>
  58. </ul>
  59. <ul class="mui-table-view" style="margin-top: 25px;" id="logout">
  60. <li class="mui-table-view-cell" style="text-align: center;">
  61. <a>退出登录</a>
  62. </li>
  63. </ul>
  64. </div>
  65. </div>
  66. </div>
  67. </body>
  68. <script src="js/mui.min.js "></script>
  69. <script type="text/javascript" src="js/serverurl.js"></script>
  70. <script type="text/javascript" src="js/userinfos.js"></script>
  71. <script type="text/javascript" src="js/checkupdate.js"></script>
  72. <script type="text/javascript">
  73. mui.plusReady(function() {
  74. if(CheckLogin()) {
  75. var B = window.plus.bridge;
  76. var Yuntx = {
  77. Logout: function(successCallback, errorCallback) {
  78. var success = typeof successCallback !== 'function' ? null : function(args) {
  79. successCallback(args);
  80. },
  81. fail = typeof errorCallback !== 'function' ? null : function(code) {
  82. errorCallback(code);
  83. },
  84. callbackID = B.callbackId(success, fail);
  85. return B.exec("Yuntx", "Logout", [callbackID]);
  86. }
  87. };
  88. window.plus.Yuntx = Yuntx;
  89. document.getElementById("username").innerText = users.username;
  90. document.getElementById("phone").innerText = users.phone;
  91. if(users.photo != undefined && users.photo != null)
  92. document.getElementById("photo").src = web + '/' + users.photo;
  93. }
  94. document.getElementById("account").addEventListener("tap", function() {
  95. mui.openWindow({
  96. url: 'settings.html',
  97. id: 'settings',
  98. show: {
  99. aniShow: 'pop-in'
  100. }
  101. });
  102. });
  103. document.getElementById("award").addEventListener("tap", function() {
  104. mui.openWindow({
  105. url: 'award.html',
  106. id: 'award',
  107. show: {
  108. aniShow: 'pop-in'
  109. }
  110. });
  111. });
  112. document.getElementById("change").addEventListener("tap", function() {
  113. mui.openWindow({
  114. url: 'changepassword.html',
  115. id: 'change',
  116. show: {
  117. aniShow: 'pop-in'
  118. }
  119. });
  120. });
  121. document.getElementById("checkupdate").addEventListener("tap", function() {
  122. if(plus.os.name != 'iOS')
  123. CheckUpdateManual();
  124. });
  125. document.getElementById("logout").addEventListener("tap", function() {
  126. if(confirm("是否退出?")) {
  127. SetLogOut();
  128. mui.openWindow({
  129. url: 'login.html',
  130. id: 'login',
  131. extras: {
  132. logoutlogin: true
  133. },
  134. show: {
  135. aniShow: 'pop-in'
  136. }
  137. });
  138. //logout yuntx
  139. plus.Yuntx.Logout(
  140. function(contact) { //成功
  141. },
  142. function(status) { //失败
  143. });
  144. }
  145. });
  146. //update
  147. if(plus.os.name != 'iOS')
  148. CheckUpdate();
  149. });
  150. </script>
  151. </html>