This commit is contained in:
@fawn-nine
2024-09-11 09:52:54 +08:00
parent 9dd7656c3c
commit 72dcbfdd82
4 changed files with 15 additions and 11 deletions

View File

@@ -662,8 +662,8 @@
// paperData = await this.getlocaltestInfo('paperEndTime') // paperData = await this.getlocaltestInfo('paperEndTime')
var historyPaper = await this.getingPaper() var historyPaper = await this.getingPaper()
this.ingPaper = historyPaper this.ingPaper = historyPaper
console.log('对比----------------', historyPaper.classId, this.classId); // console.log('对比----------------', historyPaper.classId, this.classId);
if (historyPaper && historyPaper.classId == this.classId) { if (historyPaper&& historyPaper != null && historyPaper.classId == this.classId) {
paperEndTime = this.hourUp(historyPaper.startTime, 1) // 结束的时间戳 paperEndTime = this.hourUp(historyPaper.startTime, 1) // 结束的时间戳
this.examId = historyPaper.id this.examId = historyPaper.id
} else { } else {

View File

@@ -55,7 +55,7 @@
<span class="zmVip"></span><text>国学VIP</text> <span class="zmVip"></span><text>国学VIP</text>
</view> </view>
</view> </view>
<view v-if="thisClass.state == '2'" <!-- <view v-if="thisClass.state == '2'"
class=" zhiliang flex_box flex_between align-items_box" class=" zhiliang flex_box flex_between align-items_box"
style="margin-top: 20rpx;"> style="margin-top: 20rpx;">
<view class=""> <view class="">
@@ -70,7 +70,7 @@
<text>不合格</text> <text>不合格</text>
<text>20 </text> <text>20 </text>
</view> </view>
</view> </view> -->
</view> </view>
<view class="newBox"> <view class="newBox">
<view :class="['item', <view :class="['item',
@@ -500,6 +500,12 @@
} }
}, },
methods: { methods: {
seePaper(val) {
// console.log('点击了');
uni.navigateTo({
url: `/pages/miniClass/paperBack?id=${val}`
})
},
chooseStudent(data){ chooseStudent(data){
console.log('xuesheng',data); console.log('xuesheng',data);
this.thisStudentScore = data this.thisStudentScore = data

View File

@@ -3,10 +3,10 @@
<view class="" > <view class="" >
<view class="classMateBox" v-show="students.length> 0 "> <view class="classMateBox" v-show="students.length> 0 ">
<view class="" style=" overflow: hidden;"> <view class="" style=" overflow: hidden;">
<uni-section class="mb-10 nobg xueyuanTitle" title="班内学员" type="line" sub-title=""> <uni-section class="mb-10 nobg xueyuanTitle" title="班内学员" type="line" >
{{students.length}} 名学员</uni-section> {{students.length}} 名学员</uni-section>
</view> </view>
<view class=" tips"> <!-- <view class=" tips">
<view v-if="thisClass.state == '2'" class=" zhiliang flex_box flex_between align-items_box" style="margin-top: 20rpx;"> <view v-if="thisClass.state == '2'" class=" zhiliang flex_box flex_between align-items_box" style="margin-top: 20rpx;">
<view class=""> <view class="">
<text>A证</text> <text>A证</text>
@@ -21,7 +21,7 @@
<text>20 </text> <text>20 </text>
</view> </view>
</view> </view>
</view> </view> -->
<!-- item.student.vip == '1' ? 'superVip' : '', <!-- item.student.vip == '1' ? 'superVip' : '',
item.student.vip == '2' ? 'wumenVip' : '', item.student.vip == '2' ? 'wumenVip' : '',
item.student.vip == '3' ? 'zmVip' : '', --> item.student.vip == '3' ? 'zmVip' : '', -->

View File

@@ -151,9 +151,7 @@
// this.examId = e.id // this.examId = e.id
if (this.testPaper.length <= 0) { if (this.testPaper.length <= 0) {
this.getTestPage() this.getTestPage()
} }
// this.questIndexList = await this.getNowList('add') // this.questIndexList = await this.getNowList('add')
}, },
onHide() { onHide() {
@@ -165,7 +163,7 @@
}, },
beforeDestroy() { beforeDestroy() {
if (!this.isOvertime) { // 如果中途退出 if (!this.isOvertime) { // 如果中途退出
this.giveZero() // this.giveZero()
} }
}, },