packageBookService/pages/bookServices/detail/components/teachResource/index.js
@@ -19,14 +19,19 @@ }, data: { showRejectDialog: false, confirmBtn: { content: "知道了", variant: "base" }, confirmBtn: { content: "知道了", variant: "base" }, }, methods: { copy() { wx.setClipboardData({ data: "http://182.92.203.7:3007/jsek/website/#/home/index", data: "https://jsek.bnuic.com/home/#/home/index", success: function (res) { wx.showToast({ title: "复制成功" }); wx.showToast({ title: "复制成功" }); }, fail: function (res) { console.log(res); @@ -52,4 +57,4 @@ }); }, }, }); }); packageBookService/pages/bookServices/detail/components/teachResource/index.wxml
@@ -29,10 +29,7 @@ ></view > <view style="display: flex; align-items: center; margin-top: 10rpx"> <text>下载资源请到PC端京师E课</text> <t-button style="font-size: 24rpx; height: 50rpx" bind:tap="copy" >复制</t-button > <text>下载资源请到PC端京师E课</text> <text bind:tap="copy" class="copy-text">复制</text> </view> </view> <view wx:if="{{applyState == 'Reject'}}" packageBookService/pages/bookServices/detail/components/teachResource/index.wxss
@@ -22,6 +22,10 @@ margin-top: 20rpx; } .copy-text { margin-left: 20rpx; color: #FF6C00; } .applyResult { padding: 0 10rpx; packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss
@@ -191,7 +191,7 @@ .mack-num { width: 100%; height: 100rpx; height: 106rpx; display: flex; align-items: center; justify-content: space-between; packageBookService/pages/bookServices/detail/components/tree/index.wxss
@@ -3,7 +3,6 @@ --td-collapse-header-text-color: #ff6C00; --td-collapse-icon-color: #ff6c00; --td-collapse-header-height: min-content; padding-bottom: 50rpx; } packageBookService/pages/bookServices/detail/index.wxss
@@ -222,7 +222,7 @@ /* 图书资源 */ .book-resource { min-height: calc(100vh - 900rpx); min-height: calc(100% - 637rpx); margin-top: 20rpx; background-color: #fff !important; --td-tab-item-height: 140rpx; packageBookService/pages/bookServices/examination/examination.js
@@ -47,7 +47,8 @@ sliderValue: 0, // 字体滑块 startTime: "", //进入页面当前时间 pauseTime: 0, //暂停时间 showDialog: false // 未提交退出拦截弹窗 showDialog: false, // 未提交退出拦截弹窗 showId: '' }, /** @@ -68,9 +69,9 @@ idPathList: options.idPathList ? JSON.parse(options.idPathList) : [], answerType: options.answerType, }); // wx.setNavigationBarTitle({ // title: options.answerTitle, // }) wx.setNavigationBarTitle({ title: options.answerTitle, }) if (this.data.answerType == "mock") { this.setData({ uuid: options.uuid, @@ -198,7 +199,20 @@ }, }); }, // 修改nav颜色 changeNavBarColor(e) { if (type == 'night') { wx.setNavigationBarColor({ backgroundColor: '#000000', frontColor: '#ffffff', }) } else { wx.setNavigationBarColor({ backgroundColor: '#ffffff', frontColor: '#000000', }) } }, // 正则找出听力src extractSourceSrc(htmlString) { // 正则表达式匹配<source>标签中的src属性值 @@ -235,26 +249,28 @@ }, // 返回拦截 beforeleave() { wx.showModal({ title: "提示", content: "未提交,是否退出答题", confirmColor: "#ff6c00", cancelColor: "#949494", complete: (res) => { if (res.cancel) { this.setData({ showDialog: true }) } if (res.confirm) { this.setData({ submitStatus: true, showDialog: false }); wx.navigateBack(); } }, }); if ((this.data.answerType == 'option' || this.data.answerType == 'mock') && !this.data.submitStatus) { wx.showModal({ title: "提示", content: "未提交,是否退出答题", confirmColor: "#ff6c00", cancelColor: "#949494", complete: (res) => { if (res.cancel) { this.setData({ showDialog: true }) } if (res.confirm) { this.setData({ submitStatus: true, showDialog: false }); wx.navigateBack(); } }, }); } }, onChangeSlider(e) { this.setData({ @@ -269,9 +285,21 @@ }, //设置背景色 changeBGColor(e) { const flag = e.detail.value this.setData({ isNight: e.detail.value, isNight: flag, }); if (flag) { wx.setNavigationBarColor({ backgroundColor: '#000000', frontColor: '#ffffff', }) } else { wx.setNavigationBarColor({ backgroundColor: '#ffffff', frontColor: '#000000', }) } }, // 获取保存的倒计时时间 getSavedTime() { @@ -329,11 +357,13 @@ }, // 切换题目 changeSwiper(e) { this.setData({ currentIndex: e.detail.index, }); let index = e.detail.index - 1 >= 0 ? e.detail.index - 1 : 0; const item = this.data.questionDataList[index]; const lastItem = this.data.questionDataList[index + 1]; this.setData({ currentIndex: e.detail.index, showId: lastItem.id }); if ( (this.data.answerType == "collectQuestion" || this.data.answerType == "errorQuestion") && @@ -496,7 +526,6 @@ // 提交逻辑 submitPaper() { this.setData({ showDialog: false, submitStatus: true, loading: true, }); @@ -563,6 +592,7 @@ } this.setData({ loading: false, showDialog: false, }); }, // 初始化函数 @@ -662,6 +692,7 @@ subjectiveNum: 0, currentIndex: 0, submitStatus: false, showDialog: true }); if (this.data.answerType == "option") { this.setData({ @@ -1007,6 +1038,7 @@ } this.setData({ loading: false, showId: this.data.questionDataList[0].id }); }, // 批改题目 (练习,我的错题,我的收藏,,组卷) @@ -1198,7 +1230,6 @@ } } } this.setAnswerInfo(setInfoData); }, // 提交答题数据 @@ -1480,6 +1511,7 @@ } this.setData({ questionDataList: questionArr, showId: questionArr[0].id, cardList: cardList, loading: false, }); @@ -1728,11 +1760,11 @@ } this.setData({ questionDataList: questionArr, showId: questionArr[0].id, cardList: cardList, loading: false, }); }); // loadings.value = false }, // 获取组卷结果 async getEduQuizConfig() { @@ -2011,6 +2043,7 @@ } this.setData({ loading: false, showId: this.data.questionDataList[0].id }); }, // 获取组卷数据 packageBookService/pages/bookServices/examination/examination.json
@@ -8,7 +8,5 @@ "t-button": "tdesign-miniprogram/button/button", "t-loading": "tdesign-miniprogram/loading/loading" }, "navigationStyle": "custom", "navigationBarBackgroundColor": "#010101", "disableScroll": true } packageBookService/pages/bookServices/examination/examination.skeleton.wxml
@@ -1,5 +1,5 @@ <!-- 此文件为开发者工具生成,生成时间: 2024/4/11下午3:00:46 此文件为开发者工具生成,生成时间: 2024/4/16下午2:23:24 使用方法: 在 D:\WebData\project\2024\jsek-applet\packageBookService\pages\bookServices\examination\examination.wxml 引入模板 @@ -17,33 +17,24 @@ --> <template name="skeleton"> <view class="sk-container"> <view style="width: 100%; height: 47px;background-color: #fff "></view> <view class="nacigationBar" style="width: 100%; height: 40px; background-color: #fff"> <view> <view class="t-icon icon--t-icon " style="color: #000; font-size: 30px;"> <label class="t-icon-chevron-left icon--t-icon-chevron-left t-icon-base icon--t-icon-base sk-pseudo sk-pseudo-circle"></label> </view> </view> <view class="navbar-title sk-transparent sk-text-14-2857-257 sk-text" style="color: #000;">第三章在线测试</view> </view> <view class="page-content" > <view class="page-content" style="background-color:"> <view is="packageBookService/pages/bookServices/examination/questionSchedule/index" id="countDownRef"> <view class="questionSchedule-index--schedule" id="f88d4fe7--schedule" style="background-color:#fff"> <view class="questionSchedule-index--schedule" id="401ba865--schedule" style="background-color:#fff"> <view class="questionSchedule-index--schedule-top"> <view class="questionSchedule-index--question-schedule sk-transparent" style="color: #000;">答题进度 <text class="questionSchedule-index--parimary-color questionSchedule-index--question-num sk-transparent sk-opacity">0</text> <text class="sk-transparent sk-text-14-2857-497 sk-text">/35</text> <text class="sk-transparent sk-text-14-2857-972 sk-text">/31</text> </view> <view class="questionSchedule-index--remainder" style="color: #000;"> <text class="sk-transparent sk-text-14-2857-252 sk-text">剩余时间 </text> <text class="questionSchedule-index--parimary-color sk-transparent sk-text-14-2857-835 sk-text">01:59:51</text> <view class="questionSchedule-index--remainder-text sk-transparent sk-text-14-2857-676 sk-text">剩余时间 </view> <view class="questionSchedule-index--parimary-color questionSchedule-index--remaining-time sk-transparent sk-text-14-2857-756 sk-text">01:59:53</view> </view> </view> <view class="questionSchedule-index--schedule-progress"> <view class="t-progress progress--t-progress "> <view class="t-progress progress--t-progress " style="true"> <view class="t-progress--thin progress--t-progress--thin t-progress--status-- progress--t-progress--status-- "> <view class="t-progress__bar progress--t-progress__bar" > <view ></view> <view class="t-progress__inner progress--t-progress__inner " style="background-color: #efefef;"></view> </view> </view> </view> @@ -53,23 +44,23 @@ <view is="packageBookService/pages/bookServices/examination/questionList/index"> <view class="questionList-index--question-list" style="background-color:#fff"> <view class="questionList-index--question-title" style="background-color:#fff"> <text class="questionList-index--title-name sk-transparent sk-text-14-2857-37 sk-text">判断题</text> <text class="questionList-index--title-score sk-transparent sk-text-14-2857-760 sk-text" style="color: #000;">(每题2分)</text> <text class="questionList-index--title-name sk-transparent sk-text-14-2857-835 sk-text">判断题</text> <text class="questionList-index--title-score sk-transparent sk-text-14-2857-843 sk-text" style="color: #000;">(每题2分)</text> </view> <swiper class="questionList-index--swiper" current="0" autoplay="false"> <swiper class="questionList-index--swiper" autoplay="false"> <swiper-item style="overflow-y: auto; position: absolute; width: 100%; height: 100%; transform: translate(0%, 0px) translateZ(0px);"> <view class="questionList-index--question-stem questionList-index--title-score" style="color: #000; font-size: 16px;"> <text class="sk-transparent sk-text-14-2857-517 sk-text">1.</text> <view class="questionList-index--title-content sk-transparent sk-text-14-2857-70 sk-text">本题正确答案是对</view> <text class="sk-transparent sk-text-14-2857-731 sk-text">1.</text> <view class="questionList-index--title-content sk-transparent sk-text-14-2857-317 sk-text">放热化学反应都能自动进行。</view> </view> <view class="questionList-index--question-answer"> <view class="t-radio-group radio-group--t-radio-group questionList-index--radio-group " > <view class="t-radio-group radio-group--t-radio-group questionList-index--radio-group " style="true"> <view> <view class="t-radio radio--t-radio t-radio--right radio--t-radio--right t-radio--block radio--t-radio--block " style="background-color: #fff;" tabindex="0"> <view class="t-radio radio--t-radio t-radio--right radio--t-radio--right t-radio--block radio--t-radio--block " > <view class="t-radio__content radio--t-radio__content" data-target="text"> <view class="t-radio__title radio--t-radio__title sk-transparent" style="-webkit-line-clamp:3"> <view class="questionList-index--radio-item" style="font-size: 16px;"> <text class="sk-transparent sk-text-16-6667-815 sk-text">A、对</text> <text class="sk-transparent sk-text-16-6667-394 sk-text">A、对</text> </view> </view> </view> @@ -80,7 +71,7 @@ <view class="t-radio__content radio--t-radio__content" data-target="text"> <view class="t-radio__title radio--t-radio__title sk-transparent" style="-webkit-line-clamp:3"> <view class="questionList-index--radio-item" style="font-size: 16px;"> <text class="sk-transparent sk-text-16-6667-544 sk-text">B、错</text> <text class="sk-transparent sk-text-16-6667-51 sk-text">B、错</text> </view> </view> </view> @@ -93,7 +84,7 @@ </view> </view> </view> <view class="page-bottom" > <view class="page-bottom" style="background-color:"> <view is="packageBookService/pages/bookServices/examination/questionOptions/index" id="question-options"> <view class="questionOptions-index--page-bottom" style="color: #000; background-color:#fff"> <view class="questionOptions-index--li-option sk-transparent" style="color: #000;"> @@ -115,7 +106,7 @@ <view class="questionOptions-index--bottom-submit"> <button app-parameter="true" data-custom="null" form-type="true" hover-class="t-button--hover" hover-start-time="20" hover-stay-time="70" lang="en" open-type="true" send-message-img="true" send-message-path="true" send-message-title="true" session-from="true" style="width:166px;border-radius:31px;" class="t-button button--t-button t-button--base button--t-button--base t-button--primary button--t-button--primary t-button--rectangle button--t-button--rectangle t-button--size-large button--t-button--size-large sk-button sk-pseudo sk-pseudo-circle"> <view class="t-button__content button--t-button__content sk-transparent sk-text-33-6735-780 sk-text" style="background-position-x: 50%;">提交</view> <view class="t-button__content button--t-button__content sk-transparent sk-text-33-6735-471 sk-text" style="background-position-x: 50%;">提交</view> </button> </view> </view> packageBookService/pages/bookServices/examination/examination.skeleton.wxss
@@ -1,5 +1,5 @@ /* 此文件为开发者工具生成,生成时间: 2024/4/11下午3:00:46 此文件为开发者工具生成,生成时间: 2024/4/16下午2:23:24 在 D:\WebData\project\2024\jsek-applet\packageBookService\pages\bookServices\examination\examination.wxss 中引入样式 ``` @@ -9,100 +9,120 @@ 更多详细信息可以参考文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/skeleton.html */ .sk-transparent { color: transparent !important; } .sk-text-14-2857-257 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 53.8462rpx; position: relative !important; } .sk-text { background-origin: content-box !important; background-clip: content-box !important; background-color: transparent !important; color: transparent !important; background-repeat: repeat-y !important; } color: transparent !important; } .sk-opacity { opacity: 0 !important; } .sk-text-14-2857-497 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } .sk-text-14-2857-252 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } opacity: 0 !important; } .sk-text-14-2857-972 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } .sk-text { background-origin: content-box !important; background-clip: content-box !important; background-color: transparent !important; color: transparent !important; background-repeat: repeat-y !important; } .sk-text-14-2857-676 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } .sk-text-14-2857-756 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } .sk-text-14-2857-835 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } .sk-text-14-2857-37 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } .sk-text-14-2857-760 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } .sk-text-14-2857-517 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 43.0769rpx; position: relative !important; } .sk-text-14-2857-70 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 43.0769rpx; position: relative !important; } .sk-text-16-6667-815 { background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important; background-size: 100% 46.1538rpx; position: relative !important; } .sk-text-16-6667-544 { background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important; background-size: 100% 46.1538rpx; position: relative !important; } .sk-text-33-6735-780 { background-image: linear-gradient(transparent 33.6735%, #EEEEEE 0%, #EEEEEE 66.3265%, transparent 0%) !important; background-size: 100% 94.2308rpx; position: relative !important; } background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } .sk-text-14-2857-843 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 37.6923rpx; position: relative !important; } .sk-text-14-2857-731 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 43.0769rpx; position: relative !important; } .sk-text-14-2857-317 { background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important; background-size: 100% 43.0769rpx; position: relative !important; } .sk-text-16-6667-394 { background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important; background-size: 100% 46.1538rpx; position: relative !important; } .sk-text-16-6667-51 { background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important; background-size: 100% 46.1538rpx; position: relative !important; } .sk-text-33-6735-471 { background-image: linear-gradient(transparent 33.6735%, #EEEEEE 0%, #EEEEEE 66.3265%, transparent 0%) !important; background-size: 100% 94.2308rpx; position: relative !important; } .sk-button { color: #EFEFEF !important; background: #EFEFEF !important; border: none !important; box-shadow: none !important; } color: #EFEFEF !important; background: #EFEFEF !important; border: none !important; box-shadow: none !important; } .sk-image { background: #EFEFEF !important; } .sk-pseudo::before, .sk-pseudo::after { background: #EFEFEF !important; background-image: none !important; color: transparent !important; border-color: transparent !important; } .sk-pseudo-rect::before, .sk-pseudo-rect::after { border-radius: 0 !important; } .sk-pseudo-circle::before, .sk-pseudo-circle::after { border-radius: 50% !important; } background: #EFEFEF !important; } .sk-pseudo::before, .sk-pseudo::after { background: #EFEFEF !important; background-image: none !important; color: transparent !important; border-color: transparent !important; } .sk-pseudo-rect::before, .sk-pseudo-rect::after { border-radius: 0 !important; } .sk-pseudo-circle::before, .sk-pseudo-circle::after { border-radius: 50% !important; } .sk-container { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: transparent; } position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: transparent; } .t-progress__inner { background-color: #efefef; } packageBookService/pages/bookServices/examination/examination.wxml
@@ -4,7 +4,7 @@ <template is="skeleton" wx:if="{{loading}}" /> <!--导航区域 --> <view <!-- <view style="width: 100%; height: {{barHeight}}px;background-color: {{isNight ? '#191919' : '#fff'}} " ></view> <view @@ -23,7 +23,7 @@ <view class="navbar-title" style="color: {{isNight ? '#fff' : '#000'}};" >{{answerTitle}}</view > </view> </view> --> <view class="page-content" style="background-color:{{isNight ? '#222' : ''}}"> <question-schedule @@ -82,6 +82,7 @@ subjectiveGrade="{{subjectiveGrade}}" correctNum="{{correctNum}}" mockSumTime="{{mockData.sumTime}}" showId="{{showId}}" bind:setCollect="setCollect" bind:submitPaper="submitPaper" bind:restart="restart" @@ -89,6 +90,7 @@ bind:changeBGColor="changeBGColor" bind:onChangeSlider="onChangeSlider" bind:changeLoadingState="changeLoadingState" bind:changeNavBarColor="changeNavBarColor" ></question-options> </view> packageBookService/pages/bookServices/examination/examination.wxss
@@ -26,7 +26,7 @@ .page-content { box-sizing: border-box; width: 100%; height: 78vh; height: calc(100vh - env(safe-area-inset-bottom) - 73px); padding: 20rpx; background-color: #F2F3F8; } packageBookService/pages/bookServices/examination/questionList/index.wxml
@@ -49,7 +49,7 @@ <!-- 仅文字 --> <view class="title-content" class="title-content text-space" wx:elif="{{item.stemStyle == 'Txt' && item.questionType != 'completion'}}" >{{item.stem.stemTxt}}</view > @@ -60,7 +60,7 @@ <!-- 图片加文字 --> <view wx:elif="{{item.stemStyle == 'TxtAndImage'}}" class="title-content" class="title-content text-space" > <view>{{item.stem.stemTxt}}</view> <image src="{{item.stem.stemImage}}" mode="aspectFit" /> @@ -91,7 +91,7 @@ placeholder="请输入文字" value="{{item.userAnswer[inputItem.num]}}" ></t-input> <text wx:else>{{inputItem}}</text> <text wx:else class="text-space">{{inputItem}}</text> </view> </view> </view> @@ -127,7 +127,7 @@ class="radio-item {{(answerType == 'option' || answerType == 'mock' ) && !submitStatus && item.userAnswer == contentItem.value ? 'radio-active' : isNight ? 'night' :''}} {{item.userAnswer == contentItem.value && submitStatus ? item.isRight ? 'radio-correct' : 'radio-error' :''}}" > <!-- 仅文字 --> <text wx:if="{{item.optionStyle == 'Txt'}}" <text wx:if="{{item.optionStyle == 'Txt'}}" class="text-space" >{{contentItem.value}}、{{contentItem.txt}}</text > <!-- 仅图片 --> @@ -141,7 +141,7 @@ class="fl-center" class="TxtAndImage-box" > <text>{{contentItem.value}}、</text> <text class="text-space">{{contentItem.value}}、</text> <view class="radio-textimg">{{contentItem.txt}}</view> <image src="{{contentItem.img}}" mode="aspectFit" /> </view> @@ -195,7 +195,7 @@ > <!-- 仅文字 --> <view class="fl-center mh" class="fl-center mh text-space" wx:if="{{item.optionStyle == 'Txt'}}" style="color:{{ isNight ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;" > @@ -217,7 +217,7 @@ <!-- 文字加图片 --> <view wx:if="{{item.optionStyle == 'TxtAndImage'}}" class="fl-center mh" class="fl-center mh text-space" > <text style="color:{{ isNight ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;" packageBookService/pages/bookServices/examination/questionList/index.wxss
@@ -1,7 +1,7 @@ /* pages/bookServices/examination/questionList/index.wxss */ .question-list { width: 95%; height: calc(100vh - 300px); height: calc(100% - 90px); padding: 20rpx; background-color: #ffffff; @@ -12,6 +12,11 @@ .question-title { font-size: 28rpx; margin-bottom: 20rpx; } .text-space { letter-spacing: 2rpx; line-height: 1.5; } .title-content { @@ -229,6 +234,8 @@ } .stem-rich-p { letter-spacing: 2rpx; line-height: 1.5; display: block; } packageBookService/pages/bookServices/examination/questionOptions/index.js
@@ -52,6 +52,9 @@ type: Boolean, value: false, }, showId: { type: String } }, /** @@ -188,11 +191,6 @@ radioItem: e.detail.value, }); const value = e.detail.value == "night" ? true : false; wx.setNavigationBarColor({ backgroundColor: "#222", frontColor: "#222", }); this.triggerEvent("changeBGColor", { value }); packageBookService/pages/bookServices/examination/questionOptions/index.wxml
@@ -117,7 +117,8 @@ wx:for-item="citem" wx:for-index="cindex" wx:key="cindex" 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' : ''}} " 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> packageBookService/pages/bookServices/examination/questionOptions/index.wxss
@@ -18,6 +18,10 @@ color: #010101; } .li-option image { margin-bottom: 16rpx; } .page-bottom image { width: 36rpx; height: 36rpx;