| | |
| | | bookId: options.id + "", |
| | | barHeight: systInfo.statusBarHeight, |
| | | navBarHeight: navBarHeight, |
| | | }); |
| | | this.setData({ |
| | | options: { |
| | | id: options.id, |
| | | name: options.name, |
| | | name: decodeURI(options.name), |
| | | storeInfo: options.storeInfo, |
| | | |
| | | }, |
| | | }); |
| | | wx.setNavigationBarTitle({ |
| | | title: options.name, |
| | | title: decodeURI(options.name), |
| | | }) |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | let token = wx.getStorageSync(app.config.tokenKey) |
| | | if (!token) { |
| | | loginInfo(app, (data) => { |
| | | if (data) {} else {} |
| | |
| | | } |
| | | this.getBookInfo(options.id); |
| | | // this.getResourceClass(); // 获取资源所属分类 |
| | | |
| | | token = wx.getStorageSync(app.config.tokenKey) |
| | | if (token) { |
| | | this.getShoppingCartProductGet(); |
| | | this.getApplyInfo(options.id); |
| | |
| | | startTime: "", //进入页面当前时间 |
| | | pauseTime: 0, //暂停时间 |
| | | showDialog: false, // 未提交退出拦截弹窗 |
| | | showId: '' |
| | | showId: '', |
| | | isShowDialog: false, // 测试报告弹窗是否显示 |
| | | }, |
| | | |
| | | /** |
| | |
| | | submitStatus: true, |
| | | loading: true, |
| | | }); |
| | | const child = this.selectComponent("#question-options"); |
| | | const child = this.selectComponent('#question-options'); |
| | | |
| | | if ( |
| | | this.data.answerType == "option" || |
| | | this.data.answerType == "errorQuestion" || |
| | |
| | | if (this.data.answerType == "option") { |
| | | this.toggleCountdown(); |
| | | this.recordAnswerData(); |
| | | child.openTestReportDialog(); |
| | | // this.selectComponent 拿不到 组件了, 改为监听组件传值 打开弹窗 |
| | | // child.openTestReportDialog(); |
| | | this.setData({ |
| | | isShowDialog: true |
| | | }) |
| | | } else if ( |
| | | this.data.answerType == "collectQuestion" || |
| | | this.data.answerType == "errorQuestion" |
| | |
| | | }), |
| | | }, ], |
| | | }); |
| | | child.openTestReportDialog(); |
| | | // child.openTestReportDialog(); |
| | | this.setData({ |
| | | isShowDialog: true |
| | | }) |
| | | } |
| | | this.setData({ |
| | | loading: false, |
| | |
| | | // 简答 翻译 |
| | | questionList[index].isRight = null; |
| | | } else if (item.questionType == "completion") { |
| | | if (item.answer == "string") { |
| | | if (typeof item.answer == "string") { |
| | | item.isRight = item.answer == item.userAnswer[0]; |
| | | } else { |
| | | if (item.answer.length != item.userAnswer.length) { |
| | |
| | | <import src="examination.skeleton.wxml" /> |
| | | <template is="skeleton" wx:if="{{loading}}" /> |
| | | |
| | | <!--导航区域 --> |
| | | <!-- <view |
| | | style="width: 100%; height: {{barHeight}}px;background-color: {{isNight ? '#191919' : '#fff'}} " |
| | | ></view> |
| | | <view |
| | | class="nacigationBar" |
| | | style="width: 100%; height: {{navBarHeight}}px; background-color: {{isNight ? '#191919' : '#fff'}}" |
| | | class="page" |
| | | wx:if="{{!loading}}" |
| | | style="background-color:{{isNight ? '#222' : ''}}" |
| | | > |
| | | <view> |
| | | <t-icon |
| | | name="chevron-left" |
| | | size="30" |
| | | data-name="{{item}}" |
| | | bind:click="goBack" |
| | | color="{{isNight ? '#fff' : '#000'}}" |
| | | /> |
| | | </view> |
| | | <view class="navbar-title" style="color: {{isNight ? '#fff' : '#000'}};" |
| | | >{{answerTitle}}</view |
| | | > |
| | | </view> --> |
| | | |
| | | <view class="page-content" style="background-color:{{isNight ? '#222' : ''}}"> |
| | | <question-schedule |
| | | wx:if="{{!loading}}" |
| | |
| | | bind:changeSwiper="changeSwiper" |
| | | bind:viewParsing="viewParsing" |
| | | ></question-list> |
| | | <!-- <view class="lodaing-box" wx:if="{{loading}}"> |
| | | <t-loading |
| | | theme="circular" |
| | | size="80rpx" |
| | | class="wrapper" |
| | | loading="{{loading}}" |
| | | /></view> --> |
| | | </view> |
| | | |
| | | <!-- 底部区域--> |
| | |
| | | > |
| | | <question-options |
| | | id="question-options" |
| | | isShowDialog="{{isShowDialog}}" |
| | | isNight="{{isNight}}" |
| | | submitStatus="{{submitStatus}}" |
| | | answerType="{{answerType}}" |
| | |
| | | bind:changeNavBarColor="changeNavBarColor" |
| | | ></question-options> |
| | | </view> |
| | | </view> |
| | | |
| | | <page-container |
| | | show="{{showDialog}}" |
| | |
| | | /* pages/examination/examination.wxss */ |
| | | @import "./examination.skeleton.wxss"; |
| | | |
| | | page { |
| | | padding: 0 !important; |
| | | } |
| | | |
| | | .page { |
| | | width: 100%; |
| | | height: 100vh; |
| | | } |
| | | |
| | | .nacigationBar { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | }, |
| | | showId: { |
| | | type: String |
| | | }, |
| | | isShowDialog: { |
| | | type: Boolean |
| | | } |
| | | }, |
| | | |
| | |
| | | this.timeout(); |
| | | } |
| | | }, |
| | | isShowDialog: function (newValue, oldValue) { |
| | | if (newValue) |
| | | this.setData({ |
| | | testReportState: newValue, |
| | | }); |
| | | } |
| | | }, |
| | | created() {}, |
| | | |
| | |
| | | style="margin: 0px" |
| | | > |
| | | <view class="card {{radioItem == 'daytime' ? 'card--active' : ''}}"> |
| | | <t-radio value="daytime" icon="none" borderless> |
| | | <t-radio value="daytime" icon="none" borderless style="height: 100%"> |
| | | <view class="radio-content" slot="content"> |
| | | <image |
| | | src="{{ radioItem == 'daytime' ? '/static/images/bookService/examination/rijian-click.png' : '/static/images/bookService/examination/rijian.png'}}" |
| | |
| | | </t-radio> |
| | | </view> |
| | | <view class="card {{radioItem == 'night' ? 'card--active' : ''}}"> |
| | | <t-radio value="night" icon="none" borderless> |
| | | <t-radio value="night" icon="none" borderless style="height: 100%"> |
| | | <view class="radio-content" slot="content"> |
| | | <image |
| | | src="{{ radioItem == 'night' ? '/static/images/bookService/examination/yejian-click.png' : '/static/images/bookService/examination/yejian.png'}}" |
| | |
| | | selectedId: null, |
| | | topicId: '', |
| | | titleName: '', |
| | | submitTitle: "", |
| | | submitTitle: "1", |
| | | inputStyle: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx; padding:16rpx', |
| | | textvalue: '', |
| | | style: 'height: 248rpx', |
| | |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(options) { |
| | | console.log('资源', options); |
| | | wx.setNavigationBarTitle({ |
| | | title: '资源详情-视频' |
| | | }); |
| | |
| | | parentProductLinkPath: options.parentProductLinkPath, |
| | | productLinkPath: options.productLinkPath, |
| | | formPath: options.formPath, |
| | | flag: false |
| | | flag: false, |
| | | }) |
| | | if (options.parentName !== "教学资源" && options.parentName !== "云学习") { |
| | | this.setData({ |
| | |
| | | if (this.data.productLinkPath == items.productLinkPath) { |
| | | if (this.data.formPath === "jsek_cloudLearning") { |
| | | let file |
| | | items.protectedFile || item.file ? file = items.protectedFile || item.file : file = items.freeFile |
| | | items.protectedFile || items.file ? file = items.protectedFile || items.file : file = items.freeFile |
| | | this.setData({ |
| | | showData: app.config.requestCtx + '/file/api/ApiDownloadForAuthorize?md5=' + file + '&token=' + wx.getStorageSync(app.config.tokenKey), |
| | | titleName: items.name |
| | | }) |
| | | this.aliVod(file, this.data.showData) |
| | | |
| | | } else { |
| | | this.setData({ |
| | | showData: items.file ? app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.file : app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.freeFile, |
| | |
| | | }); |
| | | this.setData({ |
| | | loading: false, |
| | | hidden: false |
| | | hidden: false, |
| | | }) |
| | | }) |
| | | }, |
| | |
| | | showDataVod: res, |
| | | }) |
| | | } |
| | | this.setData({}) |
| | | } else if (currentVideo) { |
| | | this.setData({ |
| | | showDataVod: currentVideo, |
| | |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(options) { |
| | | console.log(options); |
| | | this.getDataList(false) |
| | | }, |
| | | |
| | |
| | | loading: false |
| | | }) |
| | | } else { |
| | | wx.showToast({ |
| | | icon: 'error', |
| | | title: '暂无数据', |
| | | }) |
| | | this.setData({ |
| | | skeletonLoding: false, |
| | | loading: false |
| | |
| | | }) |
| | | }, |
| | | onSearchOrder(e) { |
| | | console.log(e.detail.value); |
| | | this.setData({ |
| | | searchText: e.detail.value, |
| | | }) |