暂存
This commit is contained in:
@@ -338,6 +338,9 @@
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.getClassInfo()
|
||||
this.pPage = 0
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
uni.stopPullDownRefresh()
|
||||
},
|
||||
onBackPress() {
|
||||
@@ -349,9 +352,7 @@
|
||||
},
|
||||
onShow() {
|
||||
this.getClassInfo()
|
||||
this.pPage = 0
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
|
||||
},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
@@ -454,6 +455,7 @@
|
||||
})
|
||||
},
|
||||
getList(){
|
||||
console.log('进入函数了吗');
|
||||
this.status = 1;
|
||||
if (this.loadFlag) {
|
||||
console.log("有未完成的进程");
|
||||
@@ -464,17 +466,20 @@
|
||||
})
|
||||
this.loadFlag = true;
|
||||
this.pPage++;
|
||||
var data = {
|
||||
|
||||
"limit": 10,
|
||||
"page": this.pPage,
|
||||
"classId": this.thisClass.id,
|
||||
"type": this.tijiaoTitleId+'', //类型 0班内任务1医案2心得
|
||||
"myExperience": this.myExperience, //0全部心得1我的心得
|
||||
"title": ""
|
||||
}
|
||||
console.log('data',data);
|
||||
$http.request({
|
||||
url: "common/class/getClassTaskListStudent",
|
||||
method: "POST",
|
||||
data: {
|
||||
"limit": 10,
|
||||
"page": this.pPage,
|
||||
"classId": this.thisClass.id,
|
||||
"type": this.tijiaoTitleId+'', //类型 0班内任务1医案2心得
|
||||
"myExperience": this.myExperience, //0全部心得1我的心得
|
||||
"title": ""
|
||||
},
|
||||
data,
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user