| | |
| | | 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(); |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | /** |
| | | * 组件的方法列表 |
| | | */ |
| | |
| | | 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}}" |
| | |
| | | </view> |
| | | <!-- 题目列表 --> |
| | | <swiper |
| | | id="swiper" |
| | | class="swiper" |
| | | bindanimationfinish="changeSwiper" |
| | | current="{{currentIndex}}" |
| | | style="{{'height:'+height}}" |
| | | > |
| | | <swiper-item |
| | | wx:for="{{questionList}}" |
| | |
| | | } |
| | | |
| | | .swiper { |
| | | height: 85%; |
| | | /* height: 85%; */ |
| | | height: calc(100% - 30px - 294px) |
| | | } |
| | | |
| | | /* 单选题 */ |
| | |
| | | <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 |
| | |
| | | }, |
| | | { |
| | | "analysisCon": "略", |
| | | "id": "0C85D545", |
| | | "id": "0C85D601", |
| | | "optionIndex": 0, |
| | | "optionStyle": "Txt", |
| | | "questionType": "judge", |
| | |
| | | }, |
| | | { |
| | | "analysisCon": "略", |
| | | "id": "0C85D545", |
| | | "id": "0C85D602", |
| | | "optionIndex": 0, |
| | | "optionStyle": "Txt", |
| | | "questionType": "judge", |
| | |
| | | }, |
| | | { |
| | | "analysisCon": "略", |
| | | "id": "0C85D545", |
| | | "id": "0C85D603", |
| | | "optionIndex": 0, |
| | | "optionStyle": "Txt", |
| | | "questionType": "judge", |