提交 7d3c9951 编写于 作者: xiaoping.di's avatar xiaoping.di

考试优化

上级 1d993e9a
/h5-submodules-master /h5-submodules-master
/node_modules /node_modules
/src
...@@ -16,7 +16,7 @@ export const getCoopExamQuest = async (param) => { ...@@ -16,7 +16,7 @@ export const getCoopExamQuest = async (param) => {
}); });
}; };
//教培中间模块 // 教培中间模块
export const getCoopExam = async (param) => { export const getCoopExam = async (param) => {
return request({ return request({
url: 'app/projectExam/exam', url: 'app/projectExam/exam',
......
...@@ -7,7 +7,7 @@ export const getCoopTop = async (param) => { ...@@ -7,7 +7,7 @@ export const getCoopTop = async (param) => {
params: param, params: param,
}); });
}; };
//教培底部模块 // 教培底部模块
export const getCoopBottom = async (param) => { export const getCoopBottom = async (param) => {
return request({ return request({
url: 'contents/projects/bottom', url: 'contents/projects/bottom',
...@@ -16,7 +16,7 @@ export const getCoopBottom = async (param) => { ...@@ -16,7 +16,7 @@ export const getCoopBottom = async (param) => {
}); });
}; };
//教培中间模块 // 教培中间模块
export const getCoopMiddle = async (param) => { export const getCoopMiddle = async (param) => {
return request({ return request({
url: 'contents/projects/middle', url: 'contents/projects/middle',
...@@ -25,7 +25,7 @@ export const getCoopMiddle = async (param) => { ...@@ -25,7 +25,7 @@ export const getCoopMiddle = async (param) => {
}); });
}; };
//教培考试信息模块 // 教培考试信息模块
export const getCoopLiveExam = async (param) => { export const getCoopLiveExam = async (param) => {
return request({ return request({
url: `contents/projects/live/${param.id}`, url: `contents/projects/live/${param.id}`,
......
<template> <template>
<div <div
class="nav-title" class="nav-title"
:style=" :style="
'background:' + 'background:' +
bgColor + bgColor +
';' + ';' +
'padding-top:' + 'padding-top:' +
paddingTop paddingTop
" "
>
<span
class="nav-back"
@click="goBack"
>
<img
v-show="isBlack"
src="./images/left-array-black.png"
alt=""
>
<img
v-show="!isBlack"
src="./images/left-array-whiter.png"
alt=""
>
</span>
<span
v-show="bgColor !== 'none'"
class="nav-title-title"
>
{{ title }}</span>
<span
v-if="isShowRight"
class="nav-share"
@click="rightAction"
>
<span class="active-text">客服</span>
</span>
<span
v-if="!isShowRight"
class="nav-share"
@click="rightAction"
> >
<span <span
class="nav-back" class="active-text"
@click="goBack" @click="share"
> >
<img <img
v-show="isBlack" v-if="isShowShare"
src="./images/left-array-black.png" src="./images/share-icon-black.png"
alt="" alt=""
> >
<img <img
v-show="!isBlack" v-else-if="isShowShareWhite"
src="./images/left-array-whiter.png" src="./images/share-icon-white.png"
alt="" alt=""
> >
</span>
<span
v-show="bgColor !== 'none'"
class="nav-title-title"
>
{{ title }}</span>
<span
v-if="isShowRight"
class="nav-share"
@click="rightAction"
>
<span class="active-text">客服</span>
</span>
<span
v-if="!isShowRight"
class="nav-share"
@click="rightAction"
>
<span <span
class="active-text" v-else-if="isCancel"
@click="share" class="nav-share"
@click="cancelGoSearch"
> >
<img <span class="active-text">取消</span>
v-if="isShowShare"
src="./images/share-icon-black.png"
alt=""
>
<img
v-else-if="isShowShareWhite"
src="./images/share-icon-white.png"
alt=""
>
<span
v-else-if="isCancel"
class="nav-share"
@click="cancelGoSearch"
>
<span class="active-text">取消</span>
</span>
</span> </span>
</span> </span>
<slot name="externals" /> </span>
<!-- <span class="nav-share"> <slot name="externals" />
<!-- <span class="nav-share">
<slot></slot> <slot></slot>
</span>--> </span>-->
</div> </div>
<!-- <section <!-- <section
v-if="!isWeb" v-if="!isWeb"
:class="isFixheader ? 'nav-top fixed' : 'nav-top'" :class="isFixheader ? 'nav-top fixed' : 'nav-top'"
...@@ -188,17 +188,17 @@ ...@@ -188,17 +188,17 @@
}; };
try{ try{
this.$rocNative.getAppVersionCode().then(res => { this.$rocNative.getAppVersionCode().then(res => {
if (res.versionCode < '3.7.8') { if (res.versionCode < '3.7.8') {
console.log('低版本'); console.log('低版本');
} else { } else {
window.prompt(JSON.stringify({ window.prompt(JSON.stringify({
functionName: 'getPhoneParameters', functionName: 'getPhoneParameters',
paramJson: JSON.stringify({}), paramJson: JSON.stringify({}),
callBackName: 'getPhoneParameters' callBackName: 'getPhoneParameters'
})); }));
} }
}); });
}catch(error){ }catch(error) {
console.log(122); console.log(122);
} }
}, },
......
...@@ -3,28 +3,41 @@ ...@@ -3,28 +3,41 @@
<!--A Cell --> <!--A Cell -->
<template> <template>
<div :class="['wxc-cell', hasTopBorder && 'cell-top-border', hasBottomBorder && 'cell-bottom-border', hasMargin && 'cell-margin', hasVerticalIndent && 'cell-indent', desc && 'has-desc']" <div
:class="['wxc-cell', hasTopBorder && 'cell-top-border', hasBottomBorder && 'cell-bottom-border', hasMargin && 'cell-margin', hasVerticalIndent && 'cell-indent', desc && 'has-desc']"
:style="cellStyle" :style="cellStyle"
:accessible="autoAccessible" :accessible="autoAccessible"
:aria-label="`${label},${title},${desc}`" :aria-label="`${label},${title},${desc}`"
@click="cellClicked"> @click="cellClicked"
>
<slot name="label"> <slot name="label">
<div v-if="label"> <div v-if="label">
<div class="cell-label-text">{{label}}</div> <div class="cell-label-text">
{{ label }}
</div>
</div> </div>
</slot> </slot>
<div class="cell-title"> <div class="cell-title">
<slot name="title"> <slot name="title">
<div class="cell-content">{{title}}</div> <div class="cell-content">
<div class="cell-desc-text" v-if="desc">{{desc}}</div> {{ title }}
</div>
<div
v-if="desc"
class="cell-desc-text"
>
{{ desc }}
</div>
</slot> </slot>
</div> </div>
<slot name="value"></slot> <slot name="value" />
<slot></slot> <slot />
<img :src="arrowIcon" <img
class="cell-arrow-icon" v-if="hasArrow"
:aria-hidden="true" :src="arrowIcon"
v-if="hasArrow"/> class="cell-arrow-icon"
:aria-hidden="true"
>
</div> </div>
</template> </template>
...@@ -92,7 +105,7 @@ ...@@ -92,7 +105,7 @@
</style> </style>
<script> <script>
//import {Utils} from 'weex-ui'; // import {Utils} from 'weex-ui';
export default { export default {
props: { props: {
...@@ -149,7 +162,7 @@ ...@@ -149,7 +162,7 @@
cellClicked (e) { cellClicked (e) {
const link = this.link; const link = this.link;
this.$emit('wxcCellClicked', { e }); this.$emit('wxcCellClicked', { e });
//link && Utils.goToH5Page(link, true); // link && Utils.goToH5Page(link, true);
} }
} }
}; };
......
...@@ -4,11 +4,13 @@ ...@@ -4,11 +4,13 @@
<template> <template>
<div> <div>
<wxc-radio v-for="(item,i) in updateList" <wxc-radio
:config="config" v-for="(item,i) in updateList"
v-bind="item" :key="i"
@wxcRadioItemChecked="wxcRadioItemChecked(i,$event)" :config="config"
:key="i"></wxc-radio> v-bind="item"
@wxcRadioItemChecked="wxcRadioItemChecked(i,$event)"
/>
</div> </div>
</template> </template>
...@@ -54,7 +56,7 @@ ...@@ -54,7 +56,7 @@
this.setListChecked(this.list); this.setListChecked(this.list);
}, },
methods: { methods: {
setListChecked(list){ setListChecked(list) {
if (list && list.length > 0) { if (list && list.length > 0) {
list.forEach((item, i) => { list.forEach((item, i) => {
item.checked && (this.checkedIndex = i); item.checked && (this.checkedIndex = i);
...@@ -65,8 +67,8 @@ ...@@ -65,8 +67,8 @@
const oldIndex = this.checkedIndex; const oldIndex = this.checkedIndex;
const { value, title } = this.list[i]; const { value, title } = this.list[i];
this.checkedIndex = i; this.checkedIndex = i;
this.$emit('wxcRadioListChecked', { value, title, oldIndex, index: i,item: this.list[i] }) this.$emit('wxcRadioListChecked', { value, title, oldIndex, index: i, item: this.list[i] });
} }
} }
} };
</script> </script>
...@@ -3,17 +3,26 @@ ...@@ -3,17 +3,26 @@
<template> <template>
<div> <div>
<div :has-bottom-border="false" class="radio-all" <div
@click="wxcCellClicked" :has-bottom-border="false"
:accessible="true" class="radio-all"
:aria-label="`${title},状态为${checked?'已选中':'未选中'},${disabled?'不可更改':''}`"> :accessible="true"
<img :src="radioIcon" :aria-label="`${title},状态为${checked?'已选中':'未选中'},${disabled?'不可更改':''}`"
slot="label" @click="wxcCellClicked"
class="radio"/> >
<div :style="{color:color}" <img
class="title-text" slot="label"
slot="title">{{title}}</div> :src="radioIcon"
class="radio"
>
<div
slot="title"
:style="{color:color}"
class="title-text"
>
{{ title }}
</div> </div>
</div>
</div> </div>
</template> </template>
...@@ -38,7 +47,7 @@ ...@@ -38,7 +47,7 @@
</style> </style>
<script> <script>
import WxcCell from './cell.vue' import WxcCell from './cell.vue';
const CHECKED = 'https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/radio_checked.png'; const CHECKED = 'https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/radio_checked.png';
const UNCHECKED = 'https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/radio_unchecked.png'; const UNCHECKED = 'https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/radio_unchecked.png';
...@@ -80,7 +89,7 @@ ...@@ -80,7 +89,7 @@
const mergeIcon = icon; const mergeIcon = icon;
config.checkedIcon && (mergeIcon[0] = config.checkedIcon); config.checkedIcon && (mergeIcon[0] = config.checkedIcon);
config.disabledIcon && (mergeIcon[1] = config.disabledIcon); config.disabledIcon && (mergeIcon[1] = config.disabledIcon);
return checked ? CHECKED : UNCHECKED; return checked ? CHECKED : UNCHECKED;
}, },
backgroundColor () { backgroundColor () {
const { disabled } = this; const { disabled } = this;
...@@ -97,9 +106,9 @@ ...@@ -97,9 +106,9 @@
wxcCellClicked () { wxcCellClicked () {
const { disabled, value } = this; const { disabled, value } = this;
if (!disabled) { if (!disabled) {
this.$emit('wxcRadioItemChecked', { value, disabled }) this.$emit('wxcRadioItemChecked', { value, disabled });
} }
} }
} }
} };
</script> </script>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<img <img
class="see_more_img" class="see_more_img"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png"
/> >
</div> </div>
</div> </div>
<div <div
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<img <img
class="course_img" class="course_img"
:src="value.app_course_url" :src="value.app_course_url"
/> >
<div class="course_info"> <div class="course_info">
{{ messages(value.course_name, 18) }} {{ messages(value.course_name, 18) }}
</div> </div>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<img <img
class="play_img" class="play_img"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/play_gray%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/play_gray%403x.png"
/> >
<div class="play_count"> <div class="play_count">
{{ value.join_num }} {{ value.join_num }}
</div> </div>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<script> <script>
// text collapse // text collapse
//const configurationModule = weex.requireModule('configurationModule'); // const configurationModule = weex.requireModule('configurationModule');
export default { export default {
components: {}, components: {},
...@@ -105,37 +105,37 @@ ...@@ -105,37 +105,37 @@
enterCourse(obj) { enterCourse(obj) {
this.intoCourse(obj); this.intoCourse(obj);
}, },
intoCourseMore(obj){ intoCourseMore(obj) {
let appModuleModel=[ const appModuleModel = [
{ {
'key':'className', 'key':'className',
'value':'value=com.picahealth.yunque.activitys.famousteacherschool.AllDiseaseActivity###MicroProfessionTableController' 'value':'value=com.picahealth.yunque.activitys.famousteacherschool.AllDiseaseActivity###MicroProfessionTableController'
}, },
{ {
key:'pointsId', key:'pointsId',
value:obj.points_id value:obj.points_id
} }
]; ];
this.$rocNative.dispatchEventByModuleCode({ this.$rocNative.dispatchEventByModuleCode({
modeCode: 'M200', modeCode: 'M200',
jsonString: appModuleModel, jsonString: appModuleModel,
}); });
}, },
intoCourse(obj){ intoCourse(obj) {
let appModuleModel=[ const appModuleModel = [
{ {
'key':'className', 'key':'className',
'value':'value=com.picahealth.yunque.activitys.courseplaynew.CourseIntroduceActivity###WeexCourseIntroViewController' 'value':'value=com.picahealth.yunque.activitys.courseplaynew.CourseIntroduceActivity###WeexCourseIntroViewController'
}, },
{ {
key:'courseId', key:'courseId',
value:obj.course_id value:obj.course_id
} }
]; ];
this.$rocNative.dispatchEventByModuleCode({ this.$rocNative.dispatchEventByModuleCode({
modeCode: 'M200', modeCode: 'M200',
jsonString: appModuleModel, jsonString: appModuleModel,
}); });
} }
}, },
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
import textCollapse from './textCollapse'; import textCollapse from './textCollapse';
import projectContent from './projectContent'; import projectContent from './projectContent';
import aboutCourse from './aboutCourse'; import aboutCourse from './aboutCourse';
//const globalEvent = weex.requireModule('globalEvent'); // const globalEvent = weex.requireModule('globalEvent');
export default { export default {
components: { components: {
headerSlider, headerSlider,
......
...@@ -34,7 +34,9 @@ ...@@ -34,7 +34,9 @@
:maxlength="number" :maxlength="number"
autofocus="true" autofocus="true"
autocorrect="off" autocorrect="off"
autocomplete="off" autocapitalize="off" @keyup="handleInput($event)" autocomplete="off"
autocapitalize="off"
@keyup="handleInput($event)"
> >
<label for="code"> <label for="code">
<div class="code-input-wrap"> <div class="code-input-wrap">
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<img <img
class="history_title_img" class="history_title_img"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png"
/> >
</div> </div>
</div> </div>
<div <div
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
v-if="value.passFlag == 5" v-if="value.passFlag == 5"
class="history_item_radio" class="history_item_radio"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/eee%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/eee%403x.png"
/> >
<img <img
v-if="value.passFlag != 5" v-if="value.passFlag != 5"
class="history_item_radio" class="history_item_radio"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/ee%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/ee%403x.png"
/> >
<div <div
v-if="key+1<historyList.length" v-if="key+1<historyList.length"
class="history_item_radio_bottom" class="history_item_radio_bottom"
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
v-if="value.wrongNo > 0" v-if="value.wrongNo > 0"
class="history_item_right_img" class="history_item_right_img"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png"
/> >
</div> </div>
</div> </div>
</div> </div>
......
...@@ -5,17 +5,17 @@ ...@@ -5,17 +5,17 @@
v-if="type == 0" v-if="type == 0"
class="result_image" class="result_image"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/yh%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/yh%403x.png"
/> >
<img <img
v-if="type == 1" v-if="type == 1"
class="result_image" class="result_image"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/tg%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/tg%403x.png"
/> >
<img <img
v-if="type == 2" v-if="type == 2"
class="result_image" class="result_image"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/ks%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/ks%403x.png"
/> >
<div class="exam_name"> <div class="exam_name">
<div <div
v-if="type == 2" v-if="type == 2"
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<img <img
class="exam_time_img" class="exam_time_img"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_black%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_black%403x.png"
/> >
</div> </div>
</div> </div>
<div <div
...@@ -113,11 +113,11 @@ ...@@ -113,11 +113,11 @@
<script> <script>
// text collapse // text collapse
//const modal = weex.requireModule('modal'); // const modal = weex.requireModule('modal');
// import {click_start_test, click_test_completed, click_retest, click_mid_wrong_collection} from '../../util/buryingPoint'; // import {click_start_test, click_test_completed, click_retest, click_mid_wrong_collection} from '../../util/buryingPoint';
//import WxcDialog from '../../components/wxc-dialog'; // import WxcDialog from '../../components/wxc-dialog';
export default { export default {
//components: {WxcDialog}, // components: {WxcDialog},
props:['type', 'exam', 'startNum', 'endNum', 'examType', 'options', 'hasWrong'], props:['type', 'exam', 'startNum', 'endNum', 'examType', 'options', 'hasWrong'],
data() { data() {
return{ return{
...@@ -163,13 +163,13 @@ ...@@ -163,13 +163,13 @@
const endDate = new Date(this.options.endDate); const endDate = new Date(this.options.endDate);
const date = new Date(); const date = new Date();
if(date > endDate) { if(date > endDate) {
this.showExamFinishedTip = true; this.showExamFinishedTip = true;
this.$dialog.alert({ this.$dialog.alert({
title: '', title: '',
message: "考试已结束", message: '考试已结束',
confirmButtonText:"我知道了" confirmButtonText:'我知道了'
}) });
return; return;
} }
} }
// this.appBuryingPointEntrust({ // this.appBuryingPointEntrust({
...@@ -178,12 +178,12 @@ ...@@ -178,12 +178,12 @@
// }); // });
const query = { const query = {
examId: obj.examId, examId: obj.examId,
// examType: this.options.examType,
examType: this.$route.query.examType, examType: this.$route.query.examType,
endDate: this.$route.query.endDate endDate: this.$route.query.endDate
}; };
if (this.startNum > 0) { if (this.startNum > 0) {
Vue.set(query, 'startNum', this.startNum); query.startNum = this.startNum;
// Vue.set(query, 'startNum', this.startNum);
} }
this.$router.push({ this.$router.push({
path: '/exam', path: '/exam',
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
this.$router.push({ this.$router.push({
path: '/stoke' path: '/stoke'
}); });
//weex.requireModule('CourseModule').goBack(2); // weex.requireModule('CourseModule').goBack(2);
} else { } else {
this.$router.push({ this.$router.push({
path: '/' path: '/'
...@@ -206,16 +206,12 @@ ...@@ -206,16 +206,12 @@
} }
} }
}, },
goExamStart(obj) { // 我要重考 goExamStart() { // 我要重考
if (!this.endNum) { if (!this.endNum) {
this.$toast('您尚未完成相关培训课程的学习') this.$toast('您尚未完成相关培训课程的学习');
}else { }else {
this.$emit('reExamStart'); this.$emit('reExamStart');
} }
// this.appBuryingPointEntrust({
// ...click_retest,
// createdTime: new Date().getTime()
// });
}, },
}, },
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
v-lazy="img.image_url" v-lazy="img.image_url"
class="image" class="image"
resize="stretch" resize="stretch"
/> >
</van-swipe-item> </van-swipe-item>
</van-swipe> </van-swipe>
</div> </div>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<img <img
class="history_title_img" class="history_title_img"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png"
/> >
</div> </div>
</div> </div>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<img <img
class="item3_right_arrow" class="item3_right_arrow"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_black%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_black%403x.png"
/> >
</div> </div>
<div <div
v-if="value.restTimes > 0 || value.restTimes == -1" v-if="value.restTimes > 0 || value.restTimes == -1"
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<img <img
class="empty-img" class="empty-img"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/wu%402x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/wu%402x.png"
/> >
<div class="empty-text"> <div class="empty-text">
暂无现场考试记录 暂无现场考试记录
</div> </div>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<img <img
class="history_title_img" class="history_title_img"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_gray%403x.png"
/> >
</div> </div>
</div> </div>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<img <img
class="item3_right_arrow" class="item3_right_arrow"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_black%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/arrow_right_black%403x.png"
/> >
</div> </div>
<div <div
v-if="value.restTimes > 0 || value.restTimes == -1" v-if="value.restTimes > 0 || value.restTimes == -1"
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<img <img
class="empty-img" class="empty-img"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/wu%402x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/wu%402x.png"
/> >
<div class="empty-text"> <div class="empty-text">
暂无现场考试记录 暂无现场考试记录
</div> </div>
......
...@@ -13,18 +13,19 @@ ...@@ -13,18 +13,19 @@
src="http://pica-pro.oss-cn-shanghai.aliyuncs.com/md_resources/back_gray.png" src="http://pica-pro.oss-cn-shanghai.aliyuncs.com/md_resources/back_gray.png"
style="width: 25px; height: 25px;" style="width: 25px; height: 25px;"
@click="goBack" @click="goBack"
/> >
<div <div
v-if="!showHeader" v-if="!showHeader"
style="width:25px;height: 25px;" style="width:25px;height: 25px;"
>&nbsp; >
&nbsp;
</div> </div>
<img <img
v-if="type == 2" v-if="type == 2"
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/close%403x.png" src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/close%403x.png"
style="width: 35px; height: 35px;" style="width: 35px; height: 35px;"
@click="goBack" @click="goBack"
/> >
<div class="title"> <div class="title">
{{ title }} {{ title }}
</div> </div>
......
...@@ -3,11 +3,19 @@ ...@@ -3,11 +3,19 @@
<div <div
ref="textRef" ref="textRef"
> >
<div class="ele-content" :class="{'ele-contentOther':status}"> <div
class="ele-content"
:class="{'ele-contentOther':status}"
>
<span>简介:</span> <span>简介:</span>
{{ message }} {{ message }}
</div> </div>
<div @click="seeMore" class="ele-content-btn"> {{ status ? '显示全部' : '收起' }}</div> <div
class="ele-content-btn"
@click="seeMore"
>
{{ status ? '显示全部' : '收起' }}
</div>
</div> </div>
<div <div
class="see_more" class="see_more"
...@@ -21,9 +29,6 @@ ...@@ -21,9 +29,6 @@
</template> </template>
<script> <script>
// text collapse
// const dom = weex.requireModule('dom');
export default { export default {
components: {}, components: {},
props:['infoMsg'], props:['infoMsg'],
...@@ -35,31 +40,19 @@ ...@@ -35,31 +40,19 @@
}, },
computed: { computed: {
message: function() { message: function() {
return this.infoMsg.textModuleList[0].content return this.infoMsg.textModuleList[0].content;
} }
}, },
created () { created () {
},
mounted() {
this.init();
}, },
methods: { methods: {
getShortBrief(str) {
},
init() {
console.log(this.infoMsg.textModuleList[0])
},
seeMore() { seeMore() {
this.status=!this.status; this.status = !this.status;
} }
}, },
}; };
</script> </script>
<style scoped> <style scoped>
.message-backups { .message-backups {
position: fixed; position: fixed;
......
...@@ -35,7 +35,8 @@ import { ...@@ -35,7 +35,8 @@ import {
Sticky, Sticky,
Collapse, Collapse,
CollapseItem, CollapseItem,
CountDown CountDown,
PullRefresh
} from 'vant'; } from 'vant';
Vue.use(List) Vue.use(List)
...@@ -73,4 +74,5 @@ Vue.use(List) ...@@ -73,4 +74,5 @@ Vue.use(List)
.use(Sticky) .use(Sticky)
.use(Collapse) .use(Collapse)
.use(CollapseItem) .use(CollapseItem)
.use(CountDown); .use(CountDown)
.use(PullRefresh);
...@@ -20,22 +20,22 @@ const routerConfig = [ ...@@ -20,22 +20,22 @@ const routerConfig = [
}, },
{ {
path: '/exam-result', path: '/exam-result',
name: 'exam-result', name: 'examResult',
component: () => import('@/views/examResult/index.vue') component: () => import('@/views/examResult/index.vue')
}, },
{ {
path: '/exam-wrong', path: '/exam-wrong',
name: 'exam-wrong', name: 'examWrong',
component: () => import('@/views/exam/exam_wrong.vue') component: () => import('@/views/exam/exam_wrong.vue')
}, },
{ {
path: '/exam-history', path: '/exam-history',
name: 'exam-history', name: 'examHistory',
component: () => import('@/views/exam/exam_history.vue') component: () => import('@/views/exam/exam_history.vue')
}, },
{ {
path: '/local-exam-history', path: '/local-exam-history',
name: 'local-exam-history', name: 'localExamHistory',
component: () => import('@/views/exam/local_exam_history') component: () => import('@/views/exam/local_exam_history')
}, },
{ {
......
...@@ -38,28 +38,28 @@ ...@@ -38,28 +38,28 @@
import { listRelatives, list } from '@/api/home'; import { listRelatives, list } from '@/api/home';
export default { export default {
name: 'Home', name: 'Home',
data() {
return {
token:'F65FDAEE03F34EA78490050B8A83BF95'
};
},
computed: { computed: {
count () { count () {
return this.$store.state.home.count; return this.$store.state.home.count;
} }
}, },
data(){
return {
token:"F65FDAEE03F34EA78490050B8A83BF95"
}
},
mounted () { mounted () {
getCoopTop({id:4,token:this.token}).then((res)=>{ getCoopTop({id:4, token:this.token}).then((res) => {
console.log(res); console.log(res);
if(res && res.data){ if(res && res.data) {
this.infoLists = res.data.texts; // 简介(文案)组件 this.infoLists = res.data.texts; // 简介(文案)组件
this.sliderLists = res.data.carousels; // 轮播图组件 this.sliderLists = res.data.carousels; // 轮播图组件
this.projectName = res.data.projectName; // 项目名称 this.projectName = res.data.projectName; // 项目名称
this.projectName = this.getLength(this.projectName, 8); this.projectName = this.getLength(this.projectName, 8);
}else{ }else{
this.$toast(res.message); this.$toast(res.message);
} }
}); });
console.log(this.$route.meta); // {requiresAuth: true} console.log(this.$route.meta); // {requiresAuth: true}
}, },
methods: { methods: {
......
<template> <template>
<scroller show-scrollbar="false" class="back-fff"> <scroller
<div class="contenter"> show-scrollbar="false"
<exam-history :showHeaderH="showHeaderH" :historyList="historyList" :examId="id" :examType="examType"></exam-history> class="back-fff"
<pica-header title="考试记录" @goBack="goBack" showHeader="true"></pica-header> >
<div class="history-nomore" v-if="historyList.length > 0"> <div class="contenter">
<div class="nomore-text">没有更多记录了</div> <exam-history
</div> :show-header-h="showHeaderH"
:history-list="historyList"
:exam-id="id"
:exam-type="examType"
/>
<pica-header
title="考试记录"
show-header="true"
@goBack="goBack"
/>
<div
v-if="historyList.length > 0"
class="history-nomore"
>
<div class="nomore-text">
没有更多记录了
</div> </div>
</div>
</scroller> </div>
</scroller>
</template> </template>
<style scoped> <style scoped>
...@@ -22,43 +38,43 @@ ...@@ -22,43 +38,43 @@
</style> </style>
<script> <script>
import storejs from 'storejs'; import storejs from 'storejs';
import picaHeader from '@/components/stroke/picaHeader' import picaHeader from '@/components/stroke/picaHeader';
import examHistory from '@/components/stroke/examHistory' import examHistory from '@/components/stroke/examHistory';
import { getCoopExamResultNews ,getCoopResultNewsLocal} from '@/api/exam.js'; import { getCoopExamResultNews, getCoopResultNewsLocal} from '@/api/exam.js';
export default { export default {
data: () => ({ components:{picaHeader, examHistory},
id: '', data: () => ({
isPassExam: false, id: '',
showHeaderH:false, isPassExam: false,
historyList:[], showHeaderH:false,
examType: '', historyList:[],
token:"" examType: '',
}), token:''
computed: { }),
}, computed: {
components:{picaHeader,examHistory}, },
created () { created () {
// this.historyList = this.$route.query.historyList // this.historyList = this.$route.query.historyList
this.id = this.$route.query.examId; this.id = this.$route.query.examId;
this.token=storejs.get('token'); this.token = storejs.get('token');
this.init() this.init();
}, },
methods: { methods: {
init(){ init() {
let funCoop = getCoopExamResultNews let funCoop = getCoopExamResultNews;
if(this.$route.query.examType == 'local'){ if(this.$route.query.examType == 'local') {
funCoop=getCoopResultNewsLocal funCoop = getCoopResultNewsLocal;
}
funCoop({examId:this.id,token:this.token}).catch(res=>{
this.historyList = res.data.examRecordList
this.historyList.map(res=>{
res.createdTime = res.createdTime.substring(0,10)
})
})
} }
} funCoop({examId:this.id, token:this.token}).catch(res => {
} this.historyList = res.data.examRecordList;
this.historyList.map(res => {
res.createdTime = res.createdTime.substring(0, 10);
});
});
}
}
};
</script> </script>
<style scoped> <style scoped>
.history-nomore{ .history-nomore{
......
<template> <template>
<list> <list>
<cell> <cell>
<div class="head-fixed"> <div class="head-fixed">
<div class="head-bg" :style="{backgroundColor: headBg, height: '5px'}"></div> <div
<div class="head wrap"> class="head-bg"
<img @click="back" src="http://pica-pro.oss-cn-shanghai.aliyuncs.com/md_resources/back_gray.png" style="width: 25px; height: 25px;"/> :style="{backgroundColor: headBg, height: '5px'}"
<text class="title">错题集</text> />
<text class="empty"></text> <div class="head wrap">
</div> <img
</div> src="http://pica-pro.oss-cn-shanghai.aliyuncs.com/md_resources/back_gray.png"
<div class="img-wrap"> style="width: 25px; height: 25px;"
<img src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/icon_report_grey.png" style="width: 53px; height: 65px;"/> @click="back"
</div> >
<div class="result-wrap"> <text class="title">
<div style="font-size: 16px;">正确题目数 :{{rightNum}}</div> 错题集
<div style="padding-left: 15px;font-size: 16px;">错误题目数 :</div> </text>
<div style="color: #d84a38;font-size: 16px;">{{wrongNum}}</div> <text class="empty" />
</div> </div>
<div style="padding: 0 15px"> </div>
<div class="separator"></div> <div class="img-wrap">
</div> <img
<div class="info"> src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/icon_report_grey.png"
<div style="font-size: 20px; padding-bottom: 20px; padding-top: 10px;">试题分析</div> style="width: 53px; height: 65px;"
<div class="detail" v-for="(wrong,index) in wrongList" :key="index"> >
<div class="question-index">{{wrong.seqNo}}题:</div> </div>
<div class="question-title">{{wrong.question}}</div> <div class="result-wrap">
<div class="answer" style="color: #d84a38;">您的答案:{{wrong.answer}}</div> <div style="font-size: 16px;">
<div class="answer" style="color: #35CBCA;">正确答案:{{wrong.correctAnswer}}</div> 正确题目数 :{{ rightNum }}
</div> </div>
</div> <div style="padding-left: 15px;font-size: 16px;">
<!-- <wxc-loading :show="showLoading"></wxc-loading> --> 错误题目数 :
</cell> </div>
</list> <div style="color: #d84a38;font-size: 16px;">
{{ wrongNum }}
</div>
</div>
<div style="padding: 0 15px">
<div class="separator" />
</div>
<div class="info">
<div style="font-size: 20px; padding-bottom: 20px; padding-top: 10px;">
试题分析
</div>
<div
v-for="(wrong,index) in wrongList"
:key="index"
class="detail"
>
<div class="question-index">
{{ wrong.seqNo }}题:
</div>
<div class="question-title">
{{ wrong.question }}
</div>
<div
class="answer"
style="color: #d84a38;"
>
您的答案:{{ wrong.answer }}
</div>
<div
class="answer"
style="color: #35CBCA;"
>
正确答案:{{ wrong.correctAnswer }}
</div>
</div>
</div>
<!-- <wxc-loading :show="showLoading"></wxc-loading> -->
</cell>
</list>
</template> </template>
<style scoped> <style scoped>
...@@ -114,47 +152,47 @@ ...@@ -114,47 +152,47 @@
<script> <script>
// import { WxcLoading } from 'weex-ui' // import { WxcLoading } from 'weex-ui'
// import WxcLoading from '../../components/wxc-loading' // import WxcLoading from '../../components/wxc-loading'
//let modal = weex.requireModule('modal') // let modal = weex.requireModule('modal')
//import WxcLoading from '../../components/wxc-loading' // import WxcLoading from '../../components/wxc-loading'
import { getCoopExamWrongRecords} from '@/api/exam.js'; import { getCoopExamWrongRecords} from '@/api/exam.js';
export default { export default {
//components: { WxcLoading }, // components: { WxcLoading },
data: () => ({ data: () => ({
showLoading: false, showLoading: false,
wrongList: [], wrongList: [],
rightNum: '', rightNum: '',
wrongNum: '', wrongNum: '',
headBg: '#ffffff', headBg: '#ffffff',
headHeight: 0, headHeight: 0,
token:"" token:''
}), }),
computed: { computed: {
}, },
created () { created () {
this.token=this.$storejs.get('token'); this.token = this.$storejs.get('token');
this.init(); this.init();
}, },
methods: { methods: {
init() { init() {
this.showLoading = true; this.showLoading = true;
let para = { const para = {
answerResultId: this.$route.query.answerResultId, answerResultId: this.$route.query.answerResultId,
type: 5, type: 5,
token:this.token token:this.token
}; };
getCoopExamWrongRecords(para).catch(res=>{ getCoopExamWrongRecords(para).catch(res => {
this.showLoading = false this.showLoading = false;
let data = res.data; const data = res.data;
if(data.respCode == 200) { if(data.respCode == 200) {
this.wrongList = data.wrongList this.wrongList = data.wrongList;
this.rightNum = data.correctNo this.rightNum = data.correctNo;
this.wrongNum = data.wrongNo this.wrongNum = data.wrongNo;
} else { } else {
this.$toast(data.respMsg); this.$toast(data.respMsg);
} }
}) });
// this.GET('app/projectExam/wrongs', para, res => { // this.GET('app/projectExam/wrongs', para, res => {
// this.showLoading = false // this.showLoading = false
// let data = res.data; // let data = res.data;
// if(data.respCode == 200) { // if(data.respCode == 200) {
// this.wrongList = data.wrongList // this.wrongList = data.wrongList
...@@ -163,11 +201,11 @@ ...@@ -163,11 +201,11 @@
// } else { // } else {
// this.$toast(data.respMsg); // this.$toast(data.respMsg);
// } // }
// }) // })
}, },
back() { back() {
this.$router.go(-1) this.$router.go(-1);
} }
} }
} };
</script> </script>
\ No newline at end of file
此差异已折叠。
<template> <template>
<div class="contenter"> <div class="contenter">
<lives-exam-history :showHeaderH="false" :localHistoryList="historyList" @goExamStart="goExamStart" @watchResult="watchResult"></lives-exam-history> <lives-exam-history
<div class="history-nomore" v-if="historyList.length > 0"> :show-header-h="false"
<div class="nomore-text">没有更多记录了</div> :local-history-list="historyList"
@goExamStart="goExamStart"
@watchResult="watchResult"
/>
<div
v-if="historyList.length > 0"
class="history-nomore"
>
<div class="nomore-text">
没有更多记录了
</div> </div>
<pica-header title="考试记录" @goBack="goBack" showHeader="true"></pica-header>
</div> </div>
<pica-header
title="考试记录"
show-header="true"
@goBack="goBack"
/>
</div>
</template> </template>
<style scoped> <style scoped>
...@@ -19,83 +33,76 @@ ...@@ -19,83 +33,76 @@
</style> </style>
<script> <script>
import picaHeader from '@/components/stroke/picaHeader' import picaHeader from '@/components/stroke/picaHeader';
import livesExamHistory from "@/components/stroke/livesExamHistory"; import livesExamHistory from '@/components/stroke/livesExamHistory';
import { getCoopLiveExam } from '@/api/storke.js'; import { getCoopLiveExam } from '@/api/storke.js';
export default { export default {
data: () => ({ components:{
id: '', livesExamHistory,
isPassExam: false, picaHeader},
showHeaderH:false, data: () => ({
historyList:[], id: '',
isPassExam: false,
showHeaderH:false,
historyList:[],
livesList:{ livesList:{
examId: '', examId: '',
examResultId: '', examResultId: '',
endDate: '' endDate: ''
}, },
token:"" token:''
}), }),
computed: { computed: {
}, },
components:{ created () {
livesExamHistory, this.token = this.$storejs.get('token');
picaHeader}, this.id = this.$route.query.projectId;
created () { this.init();
this.token=this.$storejs.get('token'); },
this.id = this.$route.query.projectId methods: {
this.init() init() {
}, const _self = this;
methods: { getCoopLiveExam({id:this.id, token:this.token}).catch(res => {
init(){ if (res && res.data) {
/*this.GET('app/exam/lives/results',{examId:id,pageNo:1,pageSize:15},res=>{ if (res.data.pLiveExamList && res.data.pLiveExamList.length) {
console.log("所有现场考试记录",res) _self.historyList = res.data.pLiveExamList;
this.historyList = res.data.examRecordList _self.historyList = _self.historyList.concat([]);
this.historyList.map(res=>{ }else {
// res.createdTime = res.createdTime.substring(0,10) _self.historyList = [];
})
})*/
let _self = this
getCoopLiveExam({id:id,token:this.token}).catch(res=>{
if (res && res.data){
if (res.data.pLiveExamList && res.data.pLiveExamList.length){
_self.historyList = res.data.pLiveExamList
_self.historyList = _self.historyList.concat([])
}else {
_self.historyList = []
}
}else{
this.$toast('网络异常,请稍后再试');
}
});
},
//重考
goExamStart(obj){
this.$router.push({
path: '/exam-result',
query:{
examId: obj.id,
origin: 'start',
examType: 'local',
endDate: obj.endDate,
answerResultId: obj.examResultId
}
})
},
//查看
watchResult(obj){
this.$router.push({
path: '/exam-result',
query:{
examId: obj.id,
origin: '',
examType: 'local',
endDate: obj.endDate,
answerResultId: obj.examResultId
}
})
} }
} }else{
} this.$toast('网络异常,请稍后再试');
}
});
},
// 重考
goExamStart(obj) {
this.$router.push({
path: '/exam-result',
query:{
examId: obj.id,
origin: 'start',
examType: 'local',
endDate: obj.endDate,
answerResultId: obj.examResultId
}
});
},
// 查看
watchResult(obj) {
this.$router.push({
path: '/exam-result',
query:{
examId: obj.id,
origin: '',
examType: 'local',
endDate: obj.endDate,
answerResultId: obj.examResultId
}
});
}
}
};
</script> </script>
<style scoped> <style scoped>
.history-nomore{ .history-nomore{
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册