暂存
This commit is contained in:
@@ -697,12 +697,12 @@
|
||||
console.log('this.classId', this.classId);
|
||||
this.getUserRole()
|
||||
this.getUserInfo()
|
||||
uni.$on('refreshData', () => {
|
||||
console.log('开始刷新列表数据');
|
||||
this.pPage = 0
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
})
|
||||
// uni.$on('refreshData', () => {
|
||||
// console.log('开始刷新列表数据');
|
||||
// this.pPage = 0
|
||||
// this.taskList = []
|
||||
// this.getList()
|
||||
// })
|
||||
|
||||
// uni.$on('refreshUserAnswerList',() => {
|
||||
// console.log('开始刷新用户提交列表');
|
||||
@@ -713,8 +713,10 @@
|
||||
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.status != 2 && this.status != 3) {
|
||||
this.getList()
|
||||
if(this.tijiaoTitleId != 3){
|
||||
if (this.status != 2 && this.status != 3) {
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
@@ -723,9 +725,9 @@
|
||||
console.log('this.tabId------', this.tabId);
|
||||
this.getClassInfo()
|
||||
this.getScore()
|
||||
this.pPage = 0
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
// this.pPage = 0
|
||||
// this.taskList = []
|
||||
// this.getList()
|
||||
uni.stopPullDownRefresh()
|
||||
},
|
||||
async onShow() {
|
||||
@@ -859,7 +861,7 @@
|
||||
}
|
||||
// return _list
|
||||
if (_list.length > 0) {
|
||||
console.log('是否进入了这里666666666666');
|
||||
console.log('是否进入了这里666666666666',this.tijiaoTitleIndex);
|
||||
this.tijiaoTitleList = _list
|
||||
this.titleClick(this.tijiaoTitleList[this.tijiaoTitleIndex], this.tijiaoTitleIndex)
|
||||
// this.tijiaoTitleId = this.tijiaoTitleList[0].id
|
||||
@@ -889,6 +891,7 @@
|
||||
methods: {
|
||||
// 获得思考题列表及答案
|
||||
async getQuestionsList() {
|
||||
console.log('是否进入了思考题请求????????????');
|
||||
var list = []
|
||||
await $http.request({
|
||||
url: "common/class/getThinkQuestionListStudent",
|
||||
@@ -1113,7 +1116,7 @@
|
||||
},
|
||||
})
|
||||
.then(res => {
|
||||
console.log('考试周班状态下,学员的信息', this.classId, res, );
|
||||
// console.log('考试周班状态下,学员的信息', this.classId, res, );
|
||||
// this.userMsg = res.user
|
||||
// list = studentList
|
||||
if (res.code == 0) {
|
||||
@@ -1157,7 +1160,7 @@
|
||||
return
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/miniClass/test?classId=${this.thisClass.id}`
|
||||
url: `/pages/miniClass/test?classId=${this.thisClass.id}&testDuration=${this.classModel.examTime}`
|
||||
})
|
||||
},
|
||||
changeZheDie(item, index) {
|
||||
@@ -1276,7 +1279,7 @@
|
||||
.then(async (res) => {
|
||||
if (res.code == 0) {
|
||||
this.performanceScore = res.result
|
||||
console.log('平时成绩e-------', this.performanceScore);
|
||||
// console.log('平时成绩e-------', this.performanceScore);
|
||||
if (this.performanceScore.userScore < 60 && this.thisClass.state == '2') {
|
||||
this.getNewCLassInfo()
|
||||
} else {
|
||||
@@ -1486,7 +1489,7 @@
|
||||
},
|
||||
|
||||
getList() {
|
||||
console.log('进入函数了吗');
|
||||
console.log('进入函数了吗--------------------------------------');
|
||||
this.status = 1;
|
||||
if (this.loadFlag) {
|
||||
console.log("有未完成的进程");
|
||||
@@ -1505,7 +1508,9 @@
|
||||
"myExperience": this.tijiaoTitleId != 2 ? "0" : "1", //0全部心得1我的心得 this.myExperience
|
||||
"title": ""
|
||||
}
|
||||
console.log('data任务/心得', data);
|
||||
console.log('data任务/心得', this.pPage ,data);
|
||||
// let that = this
|
||||
const pp = this.pPage
|
||||
$http.request({
|
||||
url: "common/class/getClassTaskListStudent",
|
||||
method: "POST",
|
||||
@@ -1516,27 +1521,30 @@
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
// that.pPage = 3
|
||||
if (res.page.records.length > 0) {
|
||||
console.log('数据获取成功', res.page.records);
|
||||
var lis = res.page.records
|
||||
lis.forEach(item => {
|
||||
item.zhedie = false
|
||||
})
|
||||
this.taskList = this.taskList.concat(lis)
|
||||
if (res.page.pages > 1) {
|
||||
this.taskHaveMore = true
|
||||
}
|
||||
if (res.page.pages > this.pPage) {
|
||||
this.taskList = this.taskList.concat(lis)
|
||||
if (res.page.pages > pp) {
|
||||
this.status = 0;
|
||||
} else {
|
||||
this.status = 2;
|
||||
}
|
||||
console.log('res.page.pages > this.pPage',res.page.pages,pp,this.status);
|
||||
} else {
|
||||
this.status = 3; // 暂无数据
|
||||
}
|
||||
this.loadFlag = false;
|
||||
|
||||
console.log('res', res);
|
||||
uni.hideLoading()
|
||||
setTimeout(()=>{
|
||||
this.loadFlag = false;
|
||||
},400)
|
||||
|
||||
} else {
|
||||
console.log('数据获取失败.......', res);
|
||||
}
|
||||
@@ -1551,10 +1559,18 @@
|
||||
});
|
||||
},
|
||||
async titleClick(item, textIndex) {
|
||||
|
||||
console.log('进来了吗', item);
|
||||
|
||||
if(this.loadFlag){
|
||||
uni.showToast({
|
||||
title:'操作太快了,休息一下吧',
|
||||
icon:'none',
|
||||
})
|
||||
return
|
||||
}
|
||||
if (item.id == '3') {
|
||||
this.tijiaoTitleId = item.id
|
||||
this.tijiaoTitleIndex = textIndex
|
||||
this.questionsList = await this.getQuestionsList()
|
||||
if (this.questionsList.length > 0) {
|
||||
this.curCourseId = this.questionsList[this.curCourseIndex].courseEntity.id
|
||||
@@ -1562,11 +1578,8 @@
|
||||
return item.courseEntity
|
||||
})
|
||||
}
|
||||
}
|
||||
// if (this.tijiaoTitleId == item.id) {
|
||||
// console.log(5555555555555555, this.tijiaoTitleId,item.id);
|
||||
// return
|
||||
// }
|
||||
return
|
||||
}
|
||||
this.tijiaoTitleId = item.id
|
||||
this.tijiaoTitleIndex = textIndex
|
||||
console.log('e班内提交子按钮', this.tijiaoTitleId);
|
||||
|
||||
Reference in New Issue
Block a user