zhongshujie
2024-12-13 e900c6b30a1ad94b39c431988284fd7b997f4fa8
样式问题调整
5个文件已修改
33 ■■■■ 已修改文件
packageBookService/pages/psychologyAnswer/questionList/index.js 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/psychologyAnswer/questionList/index.wxml 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/psychologyAnswer/questionList/index.wxss 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/psychologyAnswer/questionOptions/index.wxml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/psychologyAnswer/testdata/index.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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();
  },
  /**
   * 组件的方法列表
   */
packageBookService/pages/psychologyAnswer/questionList/index.wxml
@@ -4,7 +4,7 @@
  style="background-color:{{isNight ? '#222' : '#fff'}}"
>
  <!-- 答题提示title -->
  <view class="question-title" wx:if="{{questionTitle}}">
  <view id="question-title" class="question-title" wx:if="{{questionTitle}}">
    <rich-text
      class="substance"
      nodes="{{questionTitle}}"
@@ -13,9 +13,11 @@
  </view>
  <!-- 题目列表 -->
  <swiper
    id="swiper"
    class="swiper"
    bindanimationfinish="changeSwiper"
    current="{{currentIndex}}"
    style="{{'height:'+height}}"
  >
    <swiper-item
      wx:for="{{questionList}}"
packageBookService/pages/psychologyAnswer/questionList/index.wxss
@@ -36,7 +36,8 @@
}
.swiper {
  height: 85%;
  /* height: 85%; */
  height: calc(100% - 30px - 294px)
}
/* 单选题 */
packageBookService/pages/psychologyAnswer/questionOptions/index.wxml
@@ -169,7 +169,8 @@
    <view class="report-content-top">
      <scroll-view scroll-y style="height: 30vh; overflow-y: auto">
        <view class="report-li">
          <view class="report-li-left">题目总数:</view>
          <view class="report-li-left" style="white-space: nowrap"
            >题目总数:</view>
          <view class="report-li-right">{{questionDataList.length}}道</view>
        </view>
        <view
packageBookService/pages/psychologyAnswer/testdata/index.js
@@ -286,7 +286,7 @@
        },
        {
          "analysisCon": "略",
          "id": "0C85D545",
          "id": "0C85D601",
          "optionIndex": 0,
          "optionStyle": "Txt",
          "questionType": "judge",
@@ -298,7 +298,7 @@
        },
        {
          "analysisCon": "略",
          "id": "0C85D545",
          "id": "0C85D602",
          "optionIndex": 0,
          "optionStyle": "Txt",
          "questionType": "judge",
@@ -310,7 +310,7 @@
        },
        {
          "analysisCon": "略",
          "id": "0C85D545",
          "id": "0C85D603",
          "optionIndex": 0,
          "optionStyle": "Txt",
          "questionType": "judge",