zhongshujie
2024-12-13 e900c6b30a1ad94b39c431988284fd7b997f4fa8
packageBookService/pages/psychologyAnswer/questionList/index.js
@@ -62,8 +62,23 @@
      type: 'fraction'
    },
    showIndex: 0,
    isPlay: false
    isPlay: false,
    height: 0
  },
  ready() {
    const query = wx.createSelectorQuery().in(this);
    query.select('#question-title').boundingClientRect((rect) => {
      this.setData({
        height: 'calc(100% - 30px - ' + rect.height + 'px)'
      })
    }).exec();
  },
  /**
   * 组件的方法列表
   */