mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 11:56:47 +08:00
提交
This commit is contained in:
@@ -66,7 +66,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{"path" : "pages/plus/addQuestion","style" : {"navigationBarTitleText": "提问题"}},
|
{"path" : "pages/plus/addQuestion","style" : {"navigationBarTitleText": "提问题"}},
|
||||||
{"path" : "pages/plus/editQuestion","style" : {"navigationBarTitleText": "编辑问题"}},
|
{"path" : "pages/plus/editQuestion","style" : {"navigationBarTitleText": "编辑问题"}},
|
||||||
|
{"path" : "pages/plus/editAnser","style" : {"navigationBarTitleText": "编辑回答"}},
|
||||||
{"path" : "pages/plus/feedback","style" : {"navigationBarTitleText": "提意见"}},
|
{"path" : "pages/plus/feedback","style" : {"navigationBarTitleText": "提意见"}},
|
||||||
{"path" : "pages/login/next","style" : {"navigationBarTitleText": "修改密码"}},
|
{"path" : "pages/login/next","style" : {"navigationBarTitleText": "修改密码"}},
|
||||||
{"path" : "pages/login/headPortrait","style" : {"navigationBarTitleText": "修改头像"}},
|
{"path" : "pages/login/headPortrait","style" : {"navigationBarTitleText": "修改头像"}},
|
||||||
|
|||||||
@@ -415,7 +415,6 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
removecour(item){
|
removecour(item){
|
||||||
console.log(item);
|
|
||||||
item.delcour = !item.delcour
|
item.delcour = !item.delcour
|
||||||
},
|
},
|
||||||
rowbtn(row) {
|
rowbtn(row) {
|
||||||
@@ -576,6 +575,7 @@
|
|||||||
loadBoeData(flag) {
|
loadBoeData(flag) {
|
||||||
if (flag) {
|
if (flag) {
|
||||||
this.taskPageIndex = 1; //回到首页
|
this.taskPageIndex = 1; //回到首页
|
||||||
|
this.couresList = [];
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
page: this.taskPageIndex,
|
page: this.taskPageIndex,
|
||||||
@@ -587,12 +587,12 @@
|
|||||||
params.cmtask_name = this.keyWord;
|
params.cmtask_name = this.keyWord;
|
||||||
}
|
}
|
||||||
apiBoeCourse.cmtaskList(params).then(res => {
|
apiBoeCourse.cmtaskList(params).then(res => {
|
||||||
this.taskCount = res.result.count;
|
this.taskCount = res.result.count;
|
||||||
res.result.list.forEach(item => {
|
res.result.list.forEach(item => {
|
||||||
let time = this.formatDate(item.created_at * 1000);
|
let time = this.formatDate(item.created_at * 1000);
|
||||||
item.created_at = time.split(' ')[0];
|
item.created_at = time.split(' ')[0];
|
||||||
});
|
});
|
||||||
this.couresList = res.result.list;
|
this.couresList.push(...res.result.list);
|
||||||
if (this.taskCount > this.taskPageIndex * this.taskPageSize) {
|
if (this.taskCount > this.taskPageIndex * this.taskPageSize) {
|
||||||
this.taskHasMore = true;
|
this.taskHasMore = true;
|
||||||
} else {
|
} else {
|
||||||
@@ -648,12 +648,12 @@
|
|||||||
},
|
},
|
||||||
clicktab(idx) {
|
clicktab(idx) {
|
||||||
this.tabIndex = idx;
|
this.tabIndex = idx;
|
||||||
if (this.tabIndex == 1) {
|
if (this.tabIndex == 1 && this.studyList.length == 0) {
|
||||||
this.getLearning()
|
this.getLearning()
|
||||||
// this.searchData();
|
// this.searchData();
|
||||||
} else if (this.tabIndex == 2) {
|
} else if (this.tabIndex == 2) {
|
||||||
this.history()
|
this.history()
|
||||||
} else if (this.tabIndex == 0) {
|
} else if (this.tabIndex == 0 && this.couresList.length == 0) {
|
||||||
this.loadBoeData()
|
this.loadBoeData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user