zhongshujie
2024-12-19 8aeddcf766df9f7e3061d4d098b57afdf53db896
packageBookService/pages/psychologyAnswer/questionList/index.js
@@ -39,13 +39,12 @@
    }
  },
  observers: {},
  detached() {
    if (innerAudioContext) {
      innerAudioContext.stop();
      innerAudioContext.destroy();
    }
  },
  // detached() {
  //   if (innerAudioContext) {
  //     innerAudioContext.stop();
  //     innerAudioContext.destroy();
  //   }
  // },
  /**
   * 组件的初始数据
   */
@@ -62,8 +61,22 @@
      type: 'fraction'
    },
    showIndex: 0,
    isPlay: false
    isPlay: false,
    height: 0
  },
  ready() {
    const query = wx.createSelectorQuery().in(this);
    query.select('#question-title').boundingClientRect((rect) => {
      if (rect) {
        this.setData({
          height: 'calc(100% - 30px - ' + rect.height + 'px)'
        })
      }
    }).exec();
  },
  /**
   * 组件的方法列表
@@ -118,6 +131,7 @@
      } // 触发事件的选项
      this.triggerEvent('onChangeRadio', myEventDetail, myEventOption)
    },
    // 多选触发
    onChangeCheck(e) {
      var myEventDetail = {