From 2a64e65874ddc2cbc83418e27930c34305d564ef Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 16 四月 2024 18:23:17 +0800 Subject: [PATCH] 答题卡选中项添加,详情页bug修改 --- packageBookService/pages/bookServices/examination/questionList/index.wxss | 9 + packageBookService/pages/bookServices/examination/questionList/index.wxml | 14 packageBookService/pages/bookServices/detail/components/teachResource/index.wxss | 4 packageBookService/pages/bookServices/detail/components/teachResource/index.wxml | 5 packageBookService/pages/bookServices/examination/questionOptions/index.js | 8 packageBookService/pages/bookServices/detail/index.wxss | 2 packageBookService/pages/bookServices/examination/examination.json | 2 packageBookService/pages/bookServices/examination/examination.wxml | 6 packageBookService/pages/bookServices/examination/questionOptions/index.wxss | 4 packageBookService/pages/bookServices/examination/questionOptions/index.wxml | 3 packageBookService/pages/bookServices/detail/components/tree/index.wxss | 1 packageBookService/pages/bookServices/examination/examination.wxss | 2 packageBookService/pages/bookServices/examination/examination.js | 97 ++++++++---- packageBookService/pages/bookServices/examination/examination.skeleton.wxml | 47 ++--- packageBookService/pages/bookServices/examination/examination.skeleton.wxss | 206 ++++++++++++++----------- packageBookService/pages/bookServices/detail/components/teachResource/index.js | 13 + packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss | 2 17 files changed, 242 insertions(+), 183 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/teachResource/index.js b/packageBookService/pages/bookServices/detail/components/teachResource/index.js index ec299ce..a515c77 100644 --- a/packageBookService/pages/bookServices/detail/components/teachResource/index.js +++ b/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 @@ }); }, }, -}); +}); \ No newline at end of file diff --git a/packageBookService/pages/bookServices/detail/components/teachResource/index.wxml b/packageBookService/pages/bookServices/detail/components/teachResource/index.wxml index 82a7249..0959ce7 100644 --- a/packageBookService/pages/bookServices/detail/components/teachResource/index.wxml +++ b/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绔含甯圗璇�</text> - <t-button style="font-size: 24rpx; height: 50rpx" bind:tap="copy" - >澶嶅埗</t-button - > + <text>涓嬭浇璧勬簮璇峰埌PC绔含甯圗璇�</text> <text bind:tap="copy" class="copy-text">澶嶅埗</text> </view> </view> <view wx:if="{{applyState == 'Reject'}}" diff --git a/packageBookService/pages/bookServices/detail/components/teachResource/index.wxss b/packageBookService/pages/bookServices/detail/components/teachResource/index.wxss index 180e822..588f6d6 100644 --- a/packageBookService/pages/bookServices/detail/components/teachResource/index.wxss +++ b/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; diff --git a/packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss b/packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss index 670cc67..2e09a5a 100644 --- a/packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss +++ b/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; diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.wxss b/packageBookService/pages/bookServices/detail/components/tree/index.wxss index b79a80b..64c43c0 100644 --- a/packageBookService/pages/bookServices/detail/components/tree/index.wxss +++ b/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; } diff --git a/packageBookService/pages/bookServices/detail/index.wxss b/packageBookService/pages/bookServices/detail/index.wxss index 90b4967..c22cb65 100644 --- a/packageBookService/pages/bookServices/detail/index.wxss +++ b/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; diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js index ceac28b..19c8ee5 100644 --- a/packageBookService/pages/bookServices/examination/examination.js +++ b/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', + }) + } + }, // 姝e垯鎵惧嚭鍚姏src extractSourceSrc(htmlString) { // 姝e垯琛ㄨ揪寮忓尮閰�<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 }); }, // 鑾峰彇缁勫嵎鏁版嵁 diff --git a/packageBookService/pages/bookServices/examination/examination.json b/packageBookService/pages/bookServices/examination/examination.json index 5a645f7..dd31697 100644 --- a/packageBookService/pages/bookServices/examination/examination.json +++ b/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 } \ No newline at end of file diff --git a/packageBookService/pages/bookServices/examination/examination.skeleton.wxml b/packageBookService/pages/bookServices/examination/examination.skeleton.wxml index 356eaae..705a62b 100644 --- a/packageBookService/pages/bookServices/examination/examination.skeleton.wxml +++ b/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">鏈姝g‘绛旀鏄</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> diff --git a/packageBookService/pages/bookServices/examination/examination.skeleton.wxss b/packageBookService/pages/bookServices/examination/examination.skeleton.wxss index d26b3c3..c443a14 100644 --- a/packageBookService/pages/bookServices/examination/examination.skeleton.wxss +++ b/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 @@ 鏇村璇︾粏淇℃伅鍙互鍙傝�冩枃妗o細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; +} \ No newline at end of file diff --git a/packageBookService/pages/bookServices/examination/examination.wxml b/packageBookService/pages/bookServices/examination/examination.wxml index 42e68cc..667b280 100644 --- a/packageBookService/pages/bookServices/examination/examination.wxml +++ b/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> diff --git a/packageBookService/pages/bookServices/examination/examination.wxss b/packageBookService/pages/bookServices/examination/examination.wxss index acf7f28..1be5efb 100644 --- a/packageBookService/pages/bookServices/examination/examination.wxss +++ b/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; } diff --git a/packageBookService/pages/bookServices/examination/questionList/index.wxml b/packageBookService/pages/bookServices/examination/questionList/index.wxml index 4820cd7..fcd9f89 100644 --- a/packageBookService/pages/bookServices/examination/questionList/index.wxml +++ b/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;" diff --git a/packageBookService/pages/bookServices/examination/questionList/index.wxss b/packageBookService/pages/bookServices/examination/questionList/index.wxss index 5e7c018..3260ba0 100644 --- a/packageBookService/pages/bookServices/examination/questionList/index.wxss +++ b/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; } diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.js b/packageBookService/pages/bookServices/examination/questionOptions/index.js index 71e18a6..f807034 100644 --- a/packageBookService/pages/bookServices/examination/questionOptions/index.js +++ b/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 }); diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.wxml b/packageBookService/pages/bookServices/examination/questionOptions/index.wxml index 270bd18..1c50948 100644 --- a/packageBookService/pages/bookServices/examination/questionOptions/index.wxml +++ b/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> diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.wxss b/packageBookService/pages/bookServices/examination/questionOptions/index.wxss index 7187b0a..cd5ee68 100644 --- a/packageBookService/pages/bookServices/examination/questionOptions/index.wxss +++ b/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; -- Gitblit v1.9.1