| | |
| | | var vm = this.vm = new Vue({ |
| | | el: bs.$el[0], |
| | | data: { |
| | | block: { |
| | | tabMain: 0, |
| | | }, |
| | | params: params, |
| | | title: '未知', |
| | | timer: { |
| | |
| | | // 关闭页面的计时器 |
| | | this.timer.rtState.stop(); |
| | | this.timer.rtData.stop(); |
| | | }, |
| | | setBlock: function() { |
| | | this.block.tabMain = this.$refs.tabMain.offsetHeight; |
| | | }, |
| | | getTabHt: function(unit) { |
| | | var result = 0; |
| | | if(unit) { |
| | | result = this.block.tabMain - 5+unit; |
| | | }else { |
| | | result = this.block.tabMain - 10; |
| | | } |
| | | return result; |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | }); |
| | | |
| | | this.startSearch(); |
| | | setTimeout(function() { |
| | | // 设置模块的高度 |
| | | self.setBlock(); |
| | | }, 10); |
| | | }, |
| | | beforeDestroy() { |
| | | this.stopTimers(); |