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.score.peacetimeScore}} + + + + + - @@ -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}} + + + + - - + + + \ 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 @@ 未生成成绩 -