| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <template>
- <view>
- <Headers></Headers>
- <view class="project">
- <view style="width: 1200px;margin: auto;">职业技能在线考试系统</view>
- </view>
-
- <view class="project-content ddflex">
- <!-- 成绩区域 -->
- <view class="test-box">
- <view class="test-title">选择考试试卷</view>
- <view>
- <view class="note-item ddflex" style="font-size: 16px;" v-for="item,index in testList" :key="index+'test'">
- <view class="note-item-content" @click="item.resultId?'':toTest(item)">{{index+1}}. {{item.title}}</view>
- <view style="color: green;font-size: 14rpx;" v-if="item.resultId" @click="queryScore(item)">成绩查询</view>
- </view>
- </view>
-
- <!-- <uni-pagination style="margin-top: 30px;" title="标题文字" show-icon="true" total="50" current="2"></uni-pagination> -->
-
- <!-- <navigator class="back-btn ddflex" hover-class="none" open-type="navigateBack">
- <image src="/static/images/back3.png"></image>
- <text>返回上一页</text>
- </navigator> -->
- </view>
- <!-- 答题卡区域 -->
- <view class="test-info ddflex" v-if="false">
- <view class="test-people ddflex">
- <image :src="examResult.avatar"></image>
- <view class="test-people-info ddflex">
- <view class="ddflex">
- <view class="test-people-label">考生姓名</view>
- <view class="fflex">{{examResult.userName}}</view>
- </view>
- <view class="ddflex">
- <view class="test-people-label">准考证号</view>
- <view class="fflex" style="word-break: break-all;">{{examResult.admissionNo}}</view>
- </view>
- <view class="ddflex">
- <view class="test-people-label">考试科目</view>
- <view class="fflex">{{examResult.title}}</view>
- </view>
- </view>
- </view>
- <view class="note-box">
- <view class="note-title ddflex">
- <image class="note-title-icon" src="/static/images/ksgg.png"></image>
- <view>考试公告</view>
- </view>
- <view>
- <view class="note-item ddflex" v-for="item,index in otherInfo" :key="index" @click="jumpUrl('/pages/contentDetail/contentDetail?id='+item.id)">
- <view class="note-item-content">{{item.title}}</view>
- </view>
- </view>
- </view>
- <!-- 注意事项 -->
- <view class="note-box">
- <view class="note-title ddflex">
- <image class="note-title-icon" src="/static/images/zysx.png"></image>
- <view>注意事项</view>
- </view>
- <view>
- <view class="note-item ddflex" v-for="item,index in noteInfo" :key="index+'zy'" @click="jumpUrl('/pages/contentDetail/contentDetail?id='+item.id)">
- <view class="note-item-content">{{item.title}}</view>
- </view>
- </view>
- </view>
- </view>
- </view>
-
- <Foot></Foot>
- </view>
- </template>
- <script>
- const app = getApp();
- const req = require('../../utils/request.js');
- const utils = require('../../utils/util.js');
- const api = require('../../utils/api.js')
- export default {
- data() {
- return {
- paperId:null,
- admissionNo:null,
- paper: '', //试卷详情
- examResult:{},//考试详情
-
- otherInfo:[],
- noteInfo:[],
-
- testList:[],
-
- userInfo:{}
- }
- },
- onReady() {},
- onLoad(options) {
- this.paperId = options.paperId;
- this.admissionNo = options.admissionNo;
- },
- onShow() {
- this.getTestProject()
- this.getUserInfo()
- },
- methods: {
- jumpUrl(url){
- uni.navigateTo({
- url:url
- })
- },
- // 考试信息
- getUserInfo(){
- req.getRequest('/api/v3/exam/user/manager/info',{},res=>{
- this.userInfo = res
- })
- },
- // 获取考试项目
- getTestProject(){
- req.getRequest('/api/v3/exam/user/manager/paper',{examId:this.paperId},res=>{
- this.testList = res
- })
- },
- // 去考试
- toTest(item){
- uni.showModal({
- title:'提示',
- content:`确定开始 ${item.title}?`,
- success: (res) => {
- if(res.confirm){
- uni.navigateTo({
- // url: '/pages/test/test?paperId='+this.paperId,
- url: '/pages/test/test?paperId='+item.id+'&testId='+this.paperId,
- success:()=> {
- this.close()
- }
- });
- }else{
-
- }
- }
- })
- },
- // 成绩查询
- queryScore(item){
- var formP = {
- admission: this.userInfo.admissionNo,
- paperId: item.id
- };
- console.log(this.userInfo)
- req.getRequest('/api/v3/exam/user/manager/result', formP, res => {
- uni.navigateTo({
- url:'/pages/scoreQuery/scoreQuery?paperId='+ item.id+'&admissionNo='+this.userInfo.admissionNo
- })
- });
- },
- }
- }
- </script>
- <style>
- @import url('./selectTest.css');
- </style>
|