| | |
| | | * 组件的初始数据 |
| | | */ |
| | | 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: '', |
| | |
| | | <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" |
| | |
| | | |
| | | .popup-content { |
| | | width: 100%; |
| | | height: 720rpx; |
| | | height: 680rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | |
| | | /* background-color: #f1f1f1; |
| | | border-radius: 20rpx; */ |
| | | position: absolute; |
| | | bottom: -60rpx; |
| | | bottom: -70rpx; |
| | | } |
| | |
| | | justify-content: center; |
| | | align-items: center; |
| | | width: 176rpx; |
| | | height: 82rpx; |
| | | height: 80rpx; |
| | | } |
| | | |
| | | .test-btn:last-child { |
| | |
| | | |
| | | .btn-box { |
| | | display: flex; |
| | | width: 50%; |
| | | justify-content: space-between; |
| | | width: 49%; |
| | | } |
| | | |
| | | .practice-btn { |
| | |
| | | --td-collapse-header-text-color: #ff6C00; |
| | | --td-collapse-icon-color: #ff6c00; |
| | | --td-collapse-header-height: min-content; |
| | | padding-bottom: 50rpx; |
| | | } |
| | | |
| | | |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | width: 100%; |
| | | height: 150rpx; |
| | | height: 120rpx; |
| | | border-radius: 0 0 20rpx 20rpx; |
| | | } |
| | | |
| | |
| | | |
| | | .price { |
| | | margin-left: 12rpx; |
| | | font-size: 34rpx; |
| | | font-size: 32rpx; |
| | | color: #fff; |
| | | } |
| | | |
| | | .price-text { |
| | | font-size: 34rpx; |
| | | font-size: 32rpx; |
| | | } |
| | | |
| | | .price-old { |
| | |
| | | min-height: calc(100vh - 900rpx); |
| | | margin-top: 20rpx; |
| | | background-color: #fff !important; |
| | | --td-tab-item-height: 140rpx; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | .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 { |
| | |
| | | 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; |
| | | } |
| | |
| | | }); |
| | | } |
| | | this.init(); |
| | | console.log("传参", options); |
| | | }, |
| | | |
| | | /** |
| | |
| | | }, |
| | | }; |
| | | 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, |
| | | }); |
| | |
| | | /\<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 ( |
| | |
| | | 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'); |
| | | }); |
| | | } |
| | | // 解析富文本处理 |
| | |
| | | }); |
| | | } |
| | | // 有题目再开始倒计时 |
| | | 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, |
| | | }); |
| | |
| | | /\<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 ( |
| | |
| | | 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'); |
| | | }); |
| | | } |
| | | // 解析富文本处理 |
| | |
| | | /\<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 ( |
| | |
| | | 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'); |
| | | }); |
| | | } |
| | | // 解析富文本处理 |
| | |
| | | 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 ( |
| | |
| | | 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'); |
| | | }); |
| | | } |
| | | // 听力题修改 |
| | |
| | | subjectiveNum="{{subjectiveNum}}" |
| | | subjectiveGrade="{{subjectiveGrade}}" |
| | | correctNum="{{correctNum}}" |
| | | mockSumTime="{{mock.sumTime}}" |
| | | mockSumTime="{{mockData.sumTime}}" |
| | | bind:setCollect="setCollect" |
| | | bind:submitPaper="submitPaper" |
| | | bind:restart="restart" |
| | |
| | | type: Boolean, |
| | | } |
| | | }, |
| | | observers: { |
| | | 'questionList': function (newValue) { |
| | | console.log(newValue); |
| | | } |
| | | }, |
| | | created() { |
| | | // console.log('组件传参', this.properties); |
| | | }, |
| | | observers: {}, |
| | | ready() { |
| | | innerAudioContext.stop(); |
| | | innerAudioContext.destroy(); |
| | |
| | | .popup-block { |
| | | width: 100vw; |
| | | height: 700rpx; |
| | | padding-bottom: 50rpx; |
| | | background: #fff; |
| | | border-top-left-radius: 16rpx; |
| | | border-top-right-radius: 16rpx; |
| | |
| | | } |
| | | |
| | | .question-title { |
| | | margin-top: 40rpx; |
| | | /* margin-top: 40rpx; */ |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | |
| | | } |
| | | |
| | | .question-list { |
| | | margin: 46rpx 0 64rpx 0; |
| | | margin: 8rpx 0 66rpx 0; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | } |
| | |
| | | |
| | | // pages/bookServices/examination/questionSchedule/questionSchedule.js |
| | | Component({ |
| | | /** |
| | |
| | | }, |
| | | created( |
| | | |
| | | ) { |
| | | }, |
| | | detached() { |
| | | }, |
| | | ) {}, |
| | | detached() {}, |
| | | |
| | | /** |
| | | * 组件的初始数据 |
| | |
| | | percentage: (this.data.ready / this.data.questionList.length) * 100 |
| | | }) |
| | | }, |
| | | 'isNight': function (newValue) { |
| | | console.log('is', newValue); |
| | | } |
| | | }, |
| | | /** |
| | | * 组件的方法列表 |