From a9f706e96fea9bb33099b69c91017d3b39e3ef05 Mon Sep 17 00:00:00 2001
From: "@fawn-nine" <1271023382@qq.com>
Date: Wed, 4 Sep 2024 17:10:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/classInfoWorkBlank.vue | 4 +-
pages.json | 7 +
pages/miniClass/addHomeWork.vue | 7 +-
pages/miniClass/classInfo.vue | 10 +-
pages/miniClass/classInfoMan.vue | 80 +---
pages/miniClass/classInfoWork.vue | 429 ++++++++++---------
pages/miniClass/paperBack.vue | 616 +++++++++++++++++++++++++++
pages/miniClass/taskDetail.vue | 6 +-
pages/miniClass/taskDetailForMan.vue | 2 +-
pages/miniClass/test.vue | 605 +++++++++++++++++---------
pages/miniClass/xindeList.vue | 294 ++++++++-----
11 files changed, 1491 insertions(+), 569 deletions(-)
create mode 100644 pages/miniClass/paperBack.vue
diff --git a/components/classInfoWorkBlank.vue b/components/classInfoWorkBlank.vue
index a6f36cd..77ee6fb 100644
--- a/components/classInfoWorkBlank.vue
+++ b/components/classInfoWorkBlank.vue
@@ -30,13 +30,13 @@
思考题评分
-
考试评分
-
+ -->
diff --git a/pages.json b/pages.json
index c71dbdb..fe9e4c7 100644
--- a/pages.json
+++ b/pages.json
@@ -717,6 +717,13 @@
{
"navigationBarTitleText" : "考试页面"
}
+ },
+ {
+ "path" : "pages/miniClass/paperBack",
+ "style" :
+ {
+ "navigationBarTitleText" : "查看答案页面"
+ }
}
],
"globalStyle": {
diff --git a/pages/miniClass/addHomeWork.vue b/pages/miniClass/addHomeWork.vue
index 3d10a78..283abad 100644
--- a/pages/miniClass/addHomeWork.vue
+++ b/pages/miniClass/addHomeWork.vue
@@ -51,7 +51,7 @@
-
+
他人不可见
@@ -133,7 +133,10 @@ import $http from '@/config/requestConfig.js';
console.log('收到的值', e);
if(e.sort != 'undefined' && e.sort){
this.form.sort = e.sort
- }
+ }
+ if(e.type = 2){
+ this.form.display = '0'
+ }
this.pageType = e.type
this.form.classId = e.classId
this.form.type = e.type
diff --git a/pages/miniClass/classInfo.vue b/pages/miniClass/classInfo.vue
index 91774cf..5df062b 100644
--- a/pages/miniClass/classInfo.vue
+++ b/pages/miniClass/classInfo.vue
@@ -209,13 +209,13 @@
-
+
- 全部同学的
+ 全部同学的
- 只看我自己的
+ 只看我自己的
@@ -472,7 +472,7 @@
tijiaoTitleId: '0',
taskList: [], // 任务列表
taskHaveMore: false, // 是否还有更多
- myExperience: '0',
+ myExperience: '1',
performanceScore: {
task1Score: 0,
experienceScore: 0,
@@ -833,7 +833,7 @@
console.log('e班内提交子按钮', this.tijiaoTitleId);
this.pPage = 0
this.taskList = []
- this.myExperience = 0
+ this.myExperience = '1'
this.getList()
},
getUserInfo() {
diff --git a/pages/miniClass/classInfoMan.vue b/pages/miniClass/classInfoMan.vue
index 2d516fa..00e5075 100644
--- a/pages/miniClass/classInfoMan.vue
+++ b/pages/miniClass/classInfoMan.vue
@@ -369,9 +369,9 @@
电话:{{thisStudent.student.tel}}
-
+
@@ -407,11 +407,7 @@
> -->
-
-
+
@@ -441,20 +437,7 @@
buttonColor: '#007AFF',
iconColor: '#fff'
},
- fabContent: [{
- iconPath: '/static/icon/pigai2.png',
- selectedIconPath: '/static/icon/pigai2.png',
- text: '发布作业',
- active: false
- },
- {
- iconPath: '/static/icon/pigai1.png',
- selectedIconPath: '/static/icon/pigai1.png',
- text: '发布医案',
- active: false
- },
- ],
-
+
thisClass: {
showOverBtn: false
},
@@ -541,17 +524,17 @@
onLoad(e) {
uni.hideTabBar();
this.classId = e.id
-
- this.interval = setInterval(() => {
- if (this.thisClass.id) {
- uni.showLoading({
- title: '加载中'
- })
+this.getRealRole()
+ // this.interval = setInterval(() => {
+ // if (this.thisClass.id) {
+ // uni.showLoading({
+ // title: '加载中'
+ // })
this.getUserInfo()
- clearInterval(this.interval)
- console.log('定时清了吗');
- }
- }, 500)
+ // clearInterval(this.interval)
+ // console.log('定时清了吗');
+ // }
+ // }, 500)
},
onPullDownRefresh() {
@@ -662,7 +645,7 @@
url: "common/class/getUserRole",
method: "POST",
data: {
- "classId": this.thisClass.id
+ "classId": this.classId
},
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'
@@ -870,31 +853,7 @@
},
closeManager() {
this.showMan = false
- },
- fabClick() {
- // uni.showToast({
- // title: '点击了悬浮按钮',
- // icon: 'none'
- // })
- },
- fabTrigger(e) {
- console.log(e)
- this.fabContent[e.index].active = !e.item.active
- var _url = '/pages/miniClass/addHomeWork'
- var _type = '0'
- if (e.index == 0) {
- // 发布作业/医案
- _type = '0'
- } else {
- _type = '1'
- }
- this.$refs.fab.close()
- setTimeout(() => {
- uni.navigateTo({
- url: `${_url}?classId=${this.thisClass.id}&type=${_type}`
- })
- }, 200)
- },
+ },
// 获取固定作业的数量
async getHomeWorkLength() {
var list = []
@@ -1639,6 +1598,7 @@
.item {
border: 1px solid #fff;
+ padding: 10rpx;
}
}
@@ -1860,14 +1820,14 @@
color: #666;
font-size: 30rpx;
margin-top: 20rpx;
- }
+ }
.zhengshu{width: 80rpx; height: 80rpx; background-size: contain;}
.Azheng{background-image: url(@/static/icon/Az.png);}
.Bzheng{background-image: url(@/static/icon/Bz.png);}
.scoreBox{
- align-items: center;
+ align-items: center; border: 1px solid #f1f1f1;
margin-top: 20rpx;
- text-align: center; background-color: #fff; padding: 20rpx;
+ text-align: center; background-color: #fff; padding: 10rpx 20rpx;
.ciyao{color: #999;}
.score{color: #258feb; font-weight: bold; font-size: 36rpx;}
.seePaper{width: 50rpx; height: 50rpx;
diff --git a/pages/miniClass/classInfoWork.vue b/pages/miniClass/classInfoWork.vue
index a5260bb..914701d 100644
--- a/pages/miniClass/classInfoWork.vue
+++ b/pages/miniClass/classInfoWork.vue
@@ -4,14 +4,12 @@
-
-
+
{{getClassStatus}}
@@ -24,7 +22,7 @@
等待开班
-
+
@@ -35,39 +33,113 @@
- 共
- {{students.length}} 名学员
-
+
+ 共
+ {{students.length}} 名学员
+
+
+
+
+ 普通用户
+
+
+ 超级VIP
+
+
+ 医学VIP
+
+
+ 国学VIP
+
+
+
+
+ A证:
+ 20 人
+
+
+ B证:
+ 20 人
+
+
+ 不合格:
+ 20 人
+
+
+
-
-
-
-
-
-
-
- {{item.student.nickname}}
-
- ({{item.student.tel}})
-
-
-
-
- 匿名用户
-
-
+
+
+
+
+
+
+ 平时成绩
+
+ {{item.student.score.peacetimeScore}}
+
+
+
+
+
+ 未考试
+
+
+
+
+ 考试成绩
+
+ 0
+
+
+
+
+
+ 等待公布分数
+
+
+
+
+ 考试成绩
+
+ {{item.student.score.testScoreNumber}}
+
+
+
+
+
+
-
@@ -77,18 +149,18 @@
-
+
创建日期
{{thisClass.createTime.substring(0,10)}}
-
+
开班日期
{{thisClass.startTime.substring(0,10)}}
-
+
结班日期
{{thisClass.endTime.substring(0,10)}}
@@ -184,19 +256,51 @@
电话:{{thisStudent.student.tel}}
-
+
+
+
+
+ 平时成绩
+
+ {{thisStudent.student.score.peacetimeScore}}
+
+
+
+
+
+ 未参加考试
+
+
+
+
+
+
+ {{index1 == 0 ? '一' : '二'}}次考试成绩
+
+
+ {{item1.score}}
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
\ No newline at end of file
diff --git a/pages/miniClass/taskDetail.vue b/pages/miniClass/taskDetail.vue
index 3f5dedd..6aa101a 100644
--- a/pages/miniClass/taskDetail.vue
+++ b/pages/miniClass/taskDetail.vue
@@ -33,7 +33,7 @@
-
+
全部同学的提交
@@ -124,7 +124,7 @@
-
+
他人不可见
@@ -168,7 +168,7 @@
form: {
taskId: undefined,
id: undefined,
- display: "1", //0不展示1展示
+ display: "0", //0不展示1展示
content: "",
img: ""
},
diff --git a/pages/miniClass/taskDetailForMan.vue b/pages/miniClass/taskDetailForMan.vue
index 07e1b4a..12fe9a1 100644
--- a/pages/miniClass/taskDetailForMan.vue
+++ b/pages/miniClass/taskDetailForMan.vue
@@ -115,7 +115,7 @@
未生成成绩
-
+
分数
diff --git a/pages/miniClass/test.vue b/pages/miniClass/test.vue
index 0eacbfa..ab8af8a 100644
--- a/pages/miniClass/test.vue
+++ b/pages/miniClass/test.vue
@@ -1,8 +1,9 @@
-
- 考试说明
+
+ 考试说明
@@ -11,84 +12,100 @@
本次考试卷面成绩为:90分
-
+
-
+
-
- ①、每位学员共有两次考试的机会,考试成绩以两次成绩的最高分作为最终的卷面成绩,请认真对待每次考试;
- ②、请在倒计时结束前完成答题,倒计时结束后将自动交卷;
+
+ -->
+
+
- {{curIndex1+1}} / {{testPaper.length}}
+ {{curIndex1+1}}
+ / {{testPaper.length}}
剩余时间:
-
+
-
-
-
-
-
- {{curQuestion.type == 0 ? '单选题' : '多选题'}}
-
-
- {{curQuestion.content}}
-
-
+
+
+
+
+ {{curQuestion.type == 0 ? '单选题' : '多选题'}}
+
+
+ {{curQuestion.content}}
+
+
-
-
- {{item.content}}
+
+
+ {{item.content}}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 题目索引
+
+
+
+ {{index}}
+
+
+
-
考试说明
- ①、每位学员共有两次考试的机会,考试成绩以两次成绩的最高分作为最终的卷面成绩,请认真对待每次考试;
- ②、请在倒计时结束前完成答题,倒计时结束后将自动交卷;
- ③、考试结束前中途离开视为放弃此次考试,成绩为0分。
-
+ ①、每位学员共有两次考试的机会,考试成绩以两次成绩的最高分作为最终的卷面成绩,请认真对待每次考试;
+ ②、请在倒计时结束前完成答题,倒计时结束后将自动交卷;
+ ③、考试结束前中途离开视为放弃此次考试,成绩为0分。
+
-
+
+
+ .scroll-Y {
+ height: 300rpx;
+ }
+
+ .scroll-view_H {
+ white-space: nowrap;
+ width: 100%;
+ }
+
+ .scroll-view-item {
+ // height: 300rpx;
+ line-height: 300rpx;
+ text-align: center;
+ font-size: 36rpx;
+ }
+
+ .scroll-view-item_H {
+ display: inline-block;
+ width: 13%;
+ // height: 300rpx;
+ overflow: hidden;
+ // line-height: 300rpx;
+ text-align: center;
+ font-size: 36rpx;
+ }
+
+ .haveResult {
+ background-color: #fff;
+ padding: 20rpx;
+ text-align: center;
+ }
+
+ .scoreBox {
+ margin-top: 100rpx;
+ color: #333;
+ margin-bottom: 50rpx;
+ }
+
+ .score {
+ font-size: 50rpx;
+ }
+
+ .question {
+ padding: 20rpx;
+ padding-top: 100rpx;
+ background-color: #fff;
+ position: relative;
+ }
+
+ .optionsBox {
+ margin: 30rpx 0;
+
+ .item {
+ border: 1px solid #eee;
+ padding: 24rpx 20rpx;
+ margin-bottom: 20rpx;
+ }
+
+ .choosed {
+ border-color: #b3d8ff;
+ color: #409eff;
+ background-color: #ecf5ff;
+ }
+
+ .right {
+ border-color: #c2e7b0;
+ color: #67c23a;
+ background-color: #f0f9eb;
+ }
+
+ .wrong {
+ border-color: #fbc4c4;
+ color: #f56c6c;
+ background-color: #fef0f0;
+ }
+ }
+
+ .result_imgBox {
+ width: 100%;
+
+ image {
+ width: 100%;
+ height: 100%;
+ }
+ }
+
+ .timeBox {
+ background-color: #fff;
+ margin-bottom: 20rpx;
+ }
+
+ .questIndx {
+ .cur {
+ background-color: #409eff;
+ color: #fff;
+ }
+ }
+
+ .btnBox {
+ .item {
+ width: 40%;
+ display: flex;
+ justify-content: center;
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/miniClass/xindeList.vue b/pages/miniClass/xindeList.vue
index 2b85595..7281216 100644
--- a/pages/miniClass/xindeList.vue
+++ b/pages/miniClass/xindeList.vue
@@ -2,26 +2,26 @@
-
+
{{item.title}}
-
+
- {{item.content}}
-
+ {{item.content}}
+
-
- 分数:{{item.score}}
-
- 未评分
-
- {{item.createTime}}
-
-
+
+ 分数:{{item.score}}
+
+ 未评分
+
+ {{item.createTime}}
+
+
@@ -30,13 +30,14 @@
-
+
心得详情
-
+
@@ -52,7 +53,7 @@
学员信息:{{curReplay.createUser.nickname != null && curReplay.createUser.nickname != '' ? curReplay.createUser.nickname : '匿名用户'}}
/ {{curReplay.createUser.tel}}
-
+
分数:{{curReplay.score}}
@@ -60,13 +61,15 @@
未生成成绩
-
+
分数
-
- {{item}} 分
-
+
+ {{item}} 分
+