From 3d73fb33c46aada16a6060adcd4ea14bb33b6b2a Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 09 四月 2024 10:39:11 +0800 Subject: [PATCH] 详情页tabs样式优化,答题添加页面退出拦截,合并代码 --- packageBookService/pages/bookServices/examination/questionOptions/index.wxml | 28 +++++++++++++++++++++++----- 1 files changed, 23 insertions(+), 5 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.wxml b/packageBookService/pages/bookServices/examination/questionOptions/index.wxml index e857080..3179207 100644 --- a/packageBookService/pages/bookServices/examination/questionOptions/index.wxml +++ b/packageBookService/pages/bookServices/examination/questionOptions/index.wxml @@ -75,11 +75,31 @@ <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> + <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> + <text>姝g‘</text> + </view> </view> <view class="question-card-list"> <view wx:for="{{cardList}}" wx:key="index" class="card-box"> <!-- 棰樺瀷 --> - <view class="question-title"> + <view class="question-title" wx:if="{{item.infoList.length}}"> <text class="color-box"></text> <text class="title-text">{{item.catalogName}}</text> </view> @@ -91,7 +111,7 @@ wx:for-item="citem" wx:for-index="cindex" wx:key="cindex" - class="question-box {{citem.isUserAnswer ? 'answered' : 'un-answered'}}" + class="question-box {{ citem.isUserAnswer ? 'answered' : 'un-answered' }} {{ ( ((answerType == 'option' || answerType == 'mock') && submitStatus || answerType == 'collectQuestion' || answerType == 'errorQuestion') && citem.questionType !== 'shortAnswer' ) ? citem.isRight ? 'correct-box-color' : 'error-box-color' : ''}} " > {{citem.number}} </view> @@ -129,7 +149,7 @@ max="{{48}}" step="{{7}}" activeColor="#ff6c00" - bind:changing="onChangeSlider" + bind:change="onChangeSlider" /> </view> @@ -178,9 +198,7 @@ <t-dialog class="test-report" visible="{{testReportState}}" - cancel-btn="{{null}}" confirm-btn="{{null}}" - close-btn="{{true}}" title="娴嬭瘯鎶ュ憡" bind:close="closeTestReportDialog" > -- Gitblit v1.9.1