| | |
| | | } |
| | | }, |
| | | observers: {}, |
| | | detached() { |
| | | if (innerAudioContext) { |
| | | innerAudioContext.stop(); |
| | | innerAudioContext.destroy(); |
| | | } |
| | | |
| | | }, |
| | | // detached() { |
| | | // if (innerAudioContext) { |
| | | // innerAudioContext.stop(); |
| | | // innerAudioContext.destroy(); |
| | | // } |
| | | // }, |
| | | /** |
| | | * 组件的初始数据 |
| | | */ |
| | |
| | | ready() { |
| | | const query = wx.createSelectorQuery().in(this); |
| | | query.select('#question-title').boundingClientRect((rect) => { |
| | | this.setData({ |
| | | height: 'calc(100% - 30px - ' + rect.height + 'px)' |
| | | }) |
| | | if (rect) { |
| | | this.setData({ |
| | | height: 'calc(100% - 30px - ' + rect.height + 'px)' |
| | | }) |
| | | } |
| | | }).exec(); |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | |
| | | } // 触发事件的选项 |
| | | this.triggerEvent('onChangeRadio', myEventDetail, myEventOption) |
| | | }, |
| | | |
| | | // 多选触发 |
| | | onChangeCheck(e) { |
| | | var myEventDetail = { |