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