From 7eea32a9a7a034e951468bea279688e8db5c1c98 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 09 九月 2024 14:31:51 +0800 Subject: [PATCH] bug --- packageBookService/pages/bookServices/examination/questionOptions/index.wxml | 178 ++++++++++++----------------------------------------------- 1 files changed, 36 insertions(+), 142 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.wxml b/packageBookService/pages/bookServices/examination/questionOptions/index.wxml index 4ce5819..e44c9b0 100644 --- a/packageBookService/pages/bookServices/examination/questionOptions/index.wxml +++ b/packageBookService/pages/bookServices/examination/questionOptions/index.wxml @@ -1,108 +1,52 @@ <!--pages/bookServices/examination/questionOptions/index.wxml--> -<view - class="page-bottom" - style="color: {{isNight ? '#fff' : '#000'}}; background-color:{{isNight ? '#202020' : '#fff'}}" -> - <view - class="li-option" - bind:tap="setCollect" - style="color: {{isNight ? '#fff' : '#000'}};" - > - <image - src="{{ questionDataList[currentIndex].isCollect ? '/static/images/bookService/detail/collecting.png' : isNight ? '/static/images/bookService/examination/wodeshoucang-w.png' : '/static/images/bookService/examination/collect.png'}}" - /> +<view class="page-bottom" style="color: {{isNight ? '#fff' : '#000'}}; background-color:{{isNight ? '#202020' : '#fff'}}"> + <view class="li-option" bind:tap="setCollect" style="color: {{isNight ? '#fff' : '#000'}};"> + <image src="{{ questionDataList[currentIndex].isCollect ? '/static/images/bookService/detail/collecting.png' : isNight ? '/static/images/bookService/examination/wodeshoucang-w.png' : '/static/images/bookService/examination/collect.png'}}" /> 鏀惰棌 </view> - <view - class="li-option" - bind:tap="handlePopup" - style="color: {{isNight ? '#fff' : '#000'}};" - > - <image - src="{{isNight ? '/static/images/bookService/examination/datika-w.png' : '/static/images/bookService/examination/questionCard.png'}}" - /> + <view class="li-option" bind:tap="handlePopup" style="color: {{isNight ? '#fff' : '#000'}};"> + <image src="{{isNight ? '/static/images/bookService/examination/datika-w.png' : '/static/images/bookService/examination/questionCard.png'}}" /> 绛旈鍗� </view> - <view - class="li-option" - bind:tap="setUpBtn" - style="color: {{isNight ? '#fff' : '#000'}};" - > - <image - src="{{isNight ? '/static/images/bookService/examination/setting-w.png' : '/static/images/bookService/examination/setting.png'}}" - /> + <view class="li-option" bind:tap="setUpBtn" style="color: {{isNight ? '#fff' : '#000'}};"> + <image src="{{isNight ? '/static/images/bookService/examination/setting-w.png' : '/static/images/bookService/examination/setting.png'}}" /> 璁剧疆 </view> - <view - class="li-option" - bind:tap="resterBtn" - wx:if="{{answerType == 'option' || (answerType == 'mock' && !submitStatus)}}" - style="color: {{isNight ? '#fff' : '#000'}};" - > - <image - src="{{isNight ? '/static/images/bookService/examination/chongzuo-w.png' : '/static/images/bookService/examination/reset.png'}}" - /> + <view class="li-option" bind:tap="resterBtn" wx:if="{{answerType == 'option' || (answerType == 'mock' && !submitStatus)}}" style="color: {{isNight ? '#fff' : '#000'}};"> + <image src="{{isNight ? '/static/images/bookService/examination/chongzuo-w.png' : '/static/images/bookService/examination/reset.png'}}" /> 閲嶅仛 </view> <view class="bottom-submit"> - <t-button - theme="primary" - size="large" - style="{{btnStyle}}" - bind:tap="submitBtn" - >{{(answerType == 'option' || answerType == 'mock') && !submitStatus ? - '鎻愪氦' : '閫�鍑�'}}</t-button - > + <t-button theme="primary" size="large" style="{{btnStyle}}" bind:tap="submitBtn">{{(answerType == 'option' || answerType == 'mock') && !submitStatus ? + '鎻愪氦' : '閫�鍑�'}}</t-button> </view> </view> <!-- 绛旈鍗� --> -<t-popup - visible="{{questionCardState}}" - bind:visible-change="onVisibleChange" - placement="bottom" -> +<t-popup visible="{{questionCardState}}" bind:visible-change="onVisibleChange" placement="bottom"> <view class="popup-block"> <view class="popup-header"> <view class="popup-title">绛旈鍗�</view> </view> <view class="question-explain"> - <view - class="explain-answered" - wx:if="{{answerType == 'collectQuestion' || answerType == 'errorQuestion' || (answerType == 'option' && !submitStatus) || (answerType == 'mock' && !submitStatus)}}" - > + <view class="explain-answered" wx:if="{{answerType == 'collectQuestion' || answerType == 'errorQuestion' || (answerType == 'option' && !submitStatus) || (answerType == 'mock' && !submitStatus)}}"> <text class="answered explain-color-box"></text> <text>宸茬瓟</text> </view> - <view - class="explain-un-answered" - wx:if="{{answerType == 'collectQuestion' || answerType == 'errorQuestion' || (answerType == 'option' && !submitStatus) || (answerType == 'mock' && !submitStatus)}}" - > + <view class="explain-un-answered" wx:if="{{answerType == 'collectQuestion' || answerType == 'errorQuestion' || (answerType == 'option' && !submitStatus) || (answerType == 'mock' && !submitStatus)}}"> <text class="un-answered explain-color-box"></text> <text>鏈瓟</text> </view> - <view - class="error-box" - wx:if="{{((answerType == 'option' || answerType == 'mock') && submitStatus) || answerType == 'collectQuestion' || answerType == 'errorQuestion'}}" - > - <text - class="explain-color-box" - style="background-color: #ee1818" - ></text> + <view class="error-box" wx:if="{{((answerType == 'option' || answerType == 'mock') && submitStatus) || answerType == 'collectQuestion' || answerType == 'errorQuestion'}}"> + <text class="explain-color-box" style="background-color: #ee1818"></text> <text>閿欒</text> </view> - <view - class="correct-box" - wx:if="{{((answerType == 'option' || answerType == 'mock') && submitStatus) || answerType == 'collectQuestion' || answerType == 'errorQuestion'}}" - > - <text - class="explain-color-box" - style="background-color: #1fbc1f" - ></text> + <view class="correct-box" wx:if="{{((answerType == 'option' || answerType == 'mock') && submitStatus) || answerType == 'collectQuestion' || answerType == 'errorQuestion'}}"> + <text class="explain-color-box" style="background-color: #1fbc1f"></text> <text>姝g‘</text> </view> </view> - <view class="question-card-list"> + <scroll-view scroll-y="{{true}}" class="question-card-list"> <view wx:for="{{cardList}}" wx:key="index" class="card-box"> <!-- 棰樺瀷 --> <view class="question-title" wx:if="{{item.infoList.length}}"> @@ -110,30 +54,17 @@ <text class="title-text">{{item.catalogName}}</text> </view> <view class="question-list"> - <view - bind:tap="goQuestion" - data-id="{{citem.id}}" - wx:for="{{item.infoList}}" - wx:for-item="citem" - wx:for-index="cindex" - wx:key="cindex" - style="border: {{showId == citem.id ? '1px solid #ff6c00' : ''}}" - class="question-box {{ citem.isUserAnswer ? 'answered' : 'un-answered' }} {{ ( ((answerType == 'option' || answerType == 'mock') && submitStatus || answerType == 'collectQuestion' || answerType == 'errorQuestion') && citem.questionType !== 'shortAnswer' ) ? citem.isRight && citem.isComplete ? 'correct-box-color' : citem.isComplete && !citem.isRight ? 'error-box-color' : '' :''}} " - > + <view bind:tap="goQuestion" data-id="{{citem.id}}" wx:for="{{item.infoList}}" wx:for-item="citem" wx:for-index="cindex" wx:key="cindex" style="border: {{showId == citem.id ? '1px solid #ff6c00' : ''}}" class="question-box {{ citem.isUserAnswer ? 'answered' : 'un-answered' }} {{ ( ((answerType == 'option' || answerType == 'mock') && submitStatus || answerType == 'collectQuestion' || answerType == 'errorQuestion') && citem.questionType !== 'shortAnswer' ) ? citem.isRight && citem.isComplete ? 'correct-box-color' : citem.isComplete && !citem.isRight ? 'error-box-color' : '' :''}} "> {{citem.number}} </view> </view> </view> - </view> + </scroll-view> </view> </t-popup> <!-- 璁剧疆 --> -<t-popup - visible="{{setUpPopup}}" - bind:visible-change="onSetUpChange" - placement="bottom" -> +<t-popup visible="{{setUpPopup}}" bind:visible-change="onSetUpChange" placement="bottom"> <view class="popup-block set-up-popup"> <view class="popup-header"> <view class="popup-title">璁剧疆</view> @@ -150,48 +81,27 @@ step="{{7}}" bind:change="onChangeSlider" /> --> - <slider - value="{{sliderValue}}" - min="{{28}}" - max="{{48}}" - step="{{7}}" - activeColor="#ff6c00" - bind:change="onChangeSlider" - /> + <slider value="{{sliderValue}}" min="{{28}}" max="{{48}}" step="{{7}}" activeColor="#ff6c00" bind:change="onChangeSlider" /> </view> <text>A+</text> </view> <!-- 妯″紡 --> <view> - <t-radio-group - class="test-radio" - t-class="horizontal-box" - value="{{radioItem}}" - bind:change="onRadioChange" - style="margin: 0px" - > + <t-radio-group class="test-radio" t-class="horizontal-box" value="{{radioItem}}" bind:change="onRadioChange" style="margin: 0px"> <view class="card {{radioItem == 'daytime' ? 'card--active' : ''}}"> <t-radio value="daytime" icon="none" borderless style="height: 100%"> <view class="radio-content" slot="content"> - <image - src="{{ radioItem == 'daytime' ? '/static/images/bookService/examination/rijian-click.png' : '/static/images/bookService/examination/rijian.png'}}" - /> - <text style="color: {{radioItem == 'daytime' ? '#fff':''}};" - >鏃ラ棿妯″紡</text - > + <image src="{{ radioItem == 'daytime' ? '/static/images/bookService/examination/rijian-click.png' : '/static/images/bookService/examination/rijian.png'}}" /> + <text style="color: {{radioItem == 'daytime' ? '#fff':''}};">鏃ラ棿妯″紡</text> </view> </t-radio> </view> <view class="card {{radioItem == 'night' ? 'card--active' : ''}}"> <t-radio value="night" icon="none" borderless style="height: 100%"> <view class="radio-content" slot="content"> - <image - src="{{ radioItem == 'night' ? '/static/images/bookService/examination/yejian-click.png' : '/static/images/bookService/examination/yejian.png'}}" - /> - <text style="color: {{radioItem == 'night' ? '#fff':''}};" - >澶滈棿妯″紡</text - > + <image src="{{ radioItem == 'night' ? '/static/images/bookService/examination/yejian-click.png' : '/static/images/bookService/examination/yejian.png'}}" /> + <text style="color: {{radioItem == 'night' ? '#fff':''}};">澶滈棿妯″紡</text> </view> </t-radio> </view> @@ -202,13 +112,7 @@ <!-- 娴嬭瘯鎶ュ憡 --> -<t-dialog - class="test-report" - visible="{{testReportState}}" - confirm-btn="{{null}}" - title="娴嬭瘯鎶ュ憡" - bind:close="closeTestReportDialog" -> +<t-dialog class="test-report" visible="{{testReportState}}" confirm-btn="{{null}}" title="娴嬭瘯鎶ュ憡" bind:close="closeTestReportDialog"> <view slot="content" class="test-report"> <view class="report-content-top"> <view class="report-li"> @@ -221,34 +125,24 @@ </view> <view class="report-li"> <view class="report-li-left">鍏朵腑瀹㈣棰橈細</view> - <view class="report-li-right" - >{{subjectiveTotal}}閬擄紝鍒嗗�納{subjectiveGrade}}鍒�</view - > + <view class="report-li-right">{{subjectiveTotal}}閬擄紝鍒嗗�納{subjectiveGrade}}鍒�</view> </view> <view class="report-li"> <view class="report-li-left">绛斿锛�</view> - <view class="report-li-right" - ><text class="correct-color">{{correctNum}}</text> 閬�</view - > + <view class="report-li-right"><text class="correct-color">{{correctNum}}</text> 閬�</view> </view> <view class="report-li"> <view class="report-li-left">绛旈敊锛�</view> - <view class="report-li-right" - ><text class="error-color">{{subjectiveTotal - correctNum}}</text> - 閬�</view - > + <view class="report-li-right"><text class="error-color">{{subjectiveTotal - correctNum}}</text> + 閬�</view> </view> <view class="report-li"> <view class="report-li-left">瀹㈣棰樺緱鍒嗭細</view> - <view class="report-li-right" - ><text class="score-color">{{subjectiveNum}}</text> 鍒�</view - > + <view class="report-li-right"><text class="score-color">{{subjectiveNum}}</text> 鍒�</view> </view> </view> <view class="report-content-bottom"> - <t-button theme="primary" bind:tap="viewAnswer" style="width: 560rpx" - >鏌ョ湅绛旀涓庤В鏋�</t-button - > + <t-button theme="primary" bind:tap="viewAnswer" style="width: 560rpx">鏌ョ湅绛旀涓庤В鏋�</t-button> </view> </view> -</t-dialog> +</t-dialog> \ No newline at end of file -- Gitblit v1.9.1