packageBookService/pages/bookServices/detail/components/suggestDialog/index.js
@@ -35,7 +35,7 @@ * 组件的初始数据 */ data: { inputStyle: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx; padding:16rpx;', inputStyle: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx; padding: 0 0 0 16rpx;', showIndex: null, //打开弹窗的对应下标 height: '', //屏幕高度 inputvalue: '', packageBookService/pages/bookServices/detail/components/suggestDialog/index.wxml
@@ -14,7 +14,7 @@ <view class="close-icon" bind:tap="closePopup"> <t-icon name="close-circle" size="24" size="28" data-name="close-circle" bind:click="onIconTap" color="#f1f1f1" packageBookService/pages/bookServices/detail/components/suggestDialog/index.wxss
@@ -142,7 +142,7 @@ .popup-content { width: 100%; height: 720rpx; height: 680rpx; display: flex; flex-direction: column; } @@ -206,5 +206,5 @@ /* background-color: #f1f1f1; border-radius: 20rpx; */ position: absolute; bottom: -60rpx; bottom: -70rpx; } packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss
@@ -76,7 +76,7 @@ justify-content: center; align-items: center; width: 176rpx; height: 82rpx; height: 80rpx; } .test-btn:last-child { @@ -89,7 +89,8 @@ .btn-box { display: flex; width: 50%; justify-content: space-between; width: 49%; } .practice-btn { packageBookService/pages/bookServices/detail/components/tree/index.wxss
@@ -3,6 +3,7 @@ --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
@@ -160,7 +160,7 @@ display: flex; align-items: center; width: 100%; height: 150rpx; height: 120rpx; border-radius: 0 0 20rpx 20rpx; } @@ -186,12 +186,12 @@ .price { margin-left: 12rpx; font-size: 34rpx; font-size: 32rpx; color: #fff; } .price-text { font-size: 34rpx; font-size: 32rpx; } .price-old { @@ -225,6 +225,7 @@ min-height: calc(100vh - 900rpx); margin-top: 20rpx; background-color: #fff !important; --td-tab-item-height: 140rpx; } @@ -410,12 +411,14 @@ } .t-tabs .t-tabs__item--active { /* color: #ff6d00; font-size: 30rpx; */ background-repeat: no-repeat; background-size: 40% 64%; background-position: right; background-image: url(http://jsysf.bnuic.com/website/image/click-icon.png); background-size: 30% 40%; background-position: 65% 50%; background-image: url(https://jsek.bnuic.com/home/image/click-icon.png); } .t-tabs__item--evenly { flex: 1 0 auto !important; } .loading { @@ -433,10 +436,26 @@ font-size: 28rpx !important; } .t-tabs__item-inner { font-size: 24rpx; } .t-tabs__item-inner .t-icon { margin-bottom: 6rpx; margin-bottom: 12rpx; } .t-tabs__item-inner .t-icon__image { width: 36rpx !important; height: 44rpx !important; } .t-tabs__nav .t-tabs__item:nth-child(3) .t-tabs__item-inner .t-icon__image { width: 44rpx !important; height: 40rpx !important; } .t-tabs__nav .t-tabs__item { width: 160rpx !important; padding: 0 !important; } .t-tabs__scroll { overflow-x: auto; } packageBookService/pages/bookServices/examination/examination.js
@@ -75,7 +75,6 @@ }); } this.init(); console.log("传参", options); }, /** @@ -202,15 +201,15 @@ // 正则表达式匹配<source>标签中的src属性值 var srcRegex = /<source\s+src="([^"]+)"/i; var srcTwo = /<audio\s+src="([^"]+)"/i; // 执行正则匹配 var match = srcRegex.exec(htmlString); const local = srcTwo.exec(htmlString) // 如果匹配成功,返回第一个捕获组的内容(src属性的值) if (match && match[1]) { return match[1].replace( '../file', app.config.requestCtx + '/file'); return match[1].replace('../file', app.config.requestCtx + '/file'); } else if (local && local[1]) { return local[1].replace( '../file', app.config.requestCtx + '/file') return local[1].replace('../file', app.config.requestCtx + '/file') } else { // 如果没有匹配到,返回null return null; @@ -794,9 +793,6 @@ }, }; await app.MG.store.getProductDetail(query).then((res) => { if (!res.datas.cmsDatas[0].datas.length) return this.setData({ noData: true }) this.setData({ total: res.datas.cmsDatas[0].datas.length, }); @@ -875,7 +871,7 @@ /\<img/gi, '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' ) .replace(/\<p/gi, '<p class="stem-rich-p"'); .replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); } // 选项富文本处理 if ( @@ -888,7 +884,7 @@ if (item.txt) item.txt = item.txt .replace(/\<img/gi, '<img class="option-rich-img"') .replace(/\<p/gi, '<p class="stem-rich-p"'); .replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); }); } // 解析富文本处理 @@ -987,7 +983,14 @@ }); } // 有题目再开始倒计时 if (this.data.questionDataList.length) this.startCountdown(); if (this.data.questionDataList.length) { // console.log(this.data.questionDataList); this.startCountdown(); } else { this.setData({ noData: true }) } this.setData({ loading: false, }); @@ -1388,7 +1391,7 @@ /\<img/gi, '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' ) .replace(/\<p/gi, '<p class="stem-rich-p"'); .replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); } // 选项富文本处理 if ( @@ -1401,7 +1404,7 @@ if (item.txt) item.txt = item.txt .replace(/\<img/gi, '<img class="option-rich-img"') .replace(/\<p/gi, '<p class="stem-rich-p"'); .replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); }); } // 解析富文本处理 @@ -1636,7 +1639,7 @@ /\<img/gi, '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' ) .replace(/\<p/gi, '<p class="stem-rich-p"'); .replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); } // 选项富文本处理 if ( @@ -1649,7 +1652,7 @@ if (item.txt) item.txt = item.txt .replace(/\<img/gi, '<img class="option-rich-img"') .replace(/\<p/gi, '<p class="stem-rich-p"'); .replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); }); } // 解析富文本处理 @@ -1906,7 +1909,7 @@ questionObj.stem.stemTxt = questionObj.stem.stemTxt.replace( /\<img/gi, '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img"' ); ).replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); } // 选项富文本处理 if ( @@ -1920,7 +1923,7 @@ item.txt = item.txt.replace( /\<img/gi, '<img class="option-rich-img"' ); ).replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); }); } // 听力题修改 packageBookService/pages/bookServices/examination/examination.wxml
@@ -81,7 +81,7 @@ subjectiveNum="{{subjectiveNum}}" subjectiveGrade="{{subjectiveGrade}}" correctNum="{{correctNum}}" mockSumTime="{{mock.sumTime}}" mockSumTime="{{mockData.sumTime}}" bind:setCollect="setCollect" bind:submitPaper="submitPaper" bind:restart="restart" packageBookService/pages/bookServices/examination/questionList/index.js
@@ -34,14 +34,7 @@ type: Boolean, } }, observers: { 'questionList': function (newValue) { console.log(newValue); } }, created() { // console.log('组件传参', this.properties); }, observers: {}, ready() { innerAudioContext.stop(); innerAudioContext.destroy(); packageBookService/pages/bookServices/examination/questionOptions/index.wxss
@@ -34,6 +34,7 @@ .popup-block { width: 100vw; height: 700rpx; padding-bottom: 50rpx; background: #fff; border-top-left-radius: 16rpx; border-top-right-radius: 16rpx; @@ -60,7 +61,7 @@ } .question-title { margin-top: 40rpx; /* margin-top: 40rpx; */ display: flex; align-items: center; } @@ -112,7 +113,7 @@ } .question-list { margin: 46rpx 0 64rpx 0; margin: 8rpx 0 66rpx 0; display: flex; flex-wrap: wrap; } packageBookService/pages/bookServices/examination/questionSchedule/index.js
@@ -1,4 +1,3 @@ // pages/bookServices/examination/questionSchedule/questionSchedule.js Component({ /** @@ -41,10 +40,8 @@ }, created( ) { }, detached() { }, ) {}, detached() {}, /** * 组件的初始数据 @@ -80,9 +77,6 @@ percentage: (this.data.ready / this.data.questionList.length) * 100 }) }, 'isNight': function (newValue) { console.log('is', newValue); } }, /** * 组件的方法列表 @@ -182,4 +176,4 @@ // } } }) })