qiaowei | f044a74 | 2019-07-10 16:04:20 +0800 | [diff] [blame^] | 1 | var app = { |
| 2 | |
| 3 | // Application Constructor |
| 4 | initialize: function() { |
| 5 | document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); |
| 6 | }, |
| 7 | |
| 8 | onDeviceReady: function() { |
| 9 | var uid = window.localStorage.getItem("uid"); |
| 10 | var phone = window.localStorage.getItem("phoneX"); |
| 11 | |
| 12 | }, |
| 13 | editPwd: function() { |
| 14 | window.location = "editpwd.html"; |
| 15 | }, |
| 16 | toPayPwd: function() { |
| 17 | window.location = "paypwdmng.html"; |
| 18 | }, |
| 19 | logout:function(){ |
| 20 | window.localStorage.removeItem("token"); |
| 21 | window.location = "login.html"; |
| 22 | } |
| 23 | }; |
| 24 | app.initialize(); |