| | |
| | | }); |
| | | }, |
| | | getIp: function() { |
| | | if(typeof(JSInterface) != 'undefined') { |
| | | JSInterface.obtainDeviceIp(); |
| | | } |
| | | var ip = localStorage.getItem('ip'); |
| | | if(ip) { |
| | | this.ip = ip; |
| | | }else { |
| | | this.ip = '127.0.0.1'; |
| | | } |
| | | }, |
| | | setIp: function() { |
| | | var self = this; |
| | | if(typeof(JSInterface) != 'undefined') { |
| | | JSInterface.setUpDeviceIp(this.ip); |
| | | // 将ip添加到本地,下一次登陆自动填充ip |
| | | localStorage.setItem('ip', this.ip); |
| | | self.enterIndex(); |
| | | }else { |
| | | bui.alert('请使用手机端登陆!'); |
| | |
| | | }); |
| | | }, |
| | | getIp: function() { |
| | | if(typeof(JSInterface) != 'undefined') { |
| | | JSInterface.obtainDeviceIp(); |
| | | } |
| | | var ip = localStorage.getItem('ip'); |
| | | if(ip) { |
| | | this.ip = ip; |
| | | }else { |
| | | this.ip = '127.0.0.1'; |
| | | } |
| | | }, |
| | | setIp: function() { |
| | | var self = this; |
| | | if(typeof(JSInterface) != 'undefined') { |
| | | JSInterface.setUpDeviceIp(this.ip); |
| | | // 将ip添加到本地,下一次登陆自动填充ip |
| | | localStorage.setItem('ip', this.ip); |
| | | self.enterIndex(); |
| | | }else { |
| | | bui.alert('请使用手机端登陆!'); |