| | |
| | | } |
| | | }, |
| | | methods: { |
| | | hello() { |
| | | hello: function() { |
| | | if(typeof(JSInterface) != 'undefined') { |
| | | JSInterface.hello('你好'); |
| | | }else { |
| | | bui.alert('请使用手机App访问'); |
| | | } |
| | | }, |
| | | getAllRS485Names() { |
| | | getAllRS485Names: function() { |
| | | if(typeof(JSInterface) != 'undefined') { |
| | | JSInterface.getAllRS485Names(); |
| | | }else { |
| | | bui.alert('请使用手机App访问'); |
| | | } |
| | | }, |
| | | show(content) { |
| | | show: function(content) { |
| | | alert(content); |
| | | }, |
| | | |
| | | }, |
| | | mounted() { |
| | | mounted: function() { |
| | | var self = this; |
| | | window['javacalljs'] = function(content) { |
| | | self.show(content); |
| | |
| | | bui.alert(content); |
| | | } |
| | | }, |
| | | destroyed: function destroyed() {} |
| | | destroyed: function() {} |
| | | }); |
| | | }, |
| | | destroyed: function destroyed() { |
| | | destroyed: function() { |
| | | this.vm.$destroy(); |
| | | } |
| | | }); |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | hello() { |
| | | hello: function() { |
| | | if(typeof(JSInterface) != 'undefined') { |
| | | JSInterface.hello('你好'); |
| | | }else { |
| | | bui.alert('请使用手机App访问'); |
| | | } |
| | | }, |
| | | getAllRS485Names() { |
| | | getAllRS485Names: function() { |
| | | if(typeof(JSInterface) != 'undefined') { |
| | | JSInterface.getAllRS485Names(); |
| | | }else { |
| | | bui.alert('请使用手机App访问'); |
| | | } |
| | | }, |
| | | show(content) { |
| | | show: function(content) { |
| | | alert(content); |
| | | }, |
| | | |
| | | }, |
| | | mounted() { |
| | | mounted: function() { |
| | | var self = this; |
| | | window['javacalljs'] = function(content) { |
| | | self.show(content); |
| | |
| | | bui.alert(content); |
| | | } |
| | | }, |
| | | destroyed: function destroyed() {} |
| | | destroyed: function() {} |
| | | }); |
| | | }, |
| | | destroyed: function destroyed() { |
| | | destroyed: function() { |
| | | this.vm.$destroy(); |
| | | } |
| | | }); |