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