mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-15 13:56:46 +08:00
修改专业力必修显示方式
This commit is contained in:
@@ -65,8 +65,7 @@
|
||||
<view class="course-info">
|
||||
<view class="course-info-left">
|
||||
<course-image :course="task" width="256upx" height="148upx"></course-image>
|
||||
<view v-if="task.taskNum != 14" class="text">{{task.cmtask_type != 4 ?'定制化学习':'领导力必修'}}</view>
|
||||
<view v-else class="text">{{'专业力必修'}}</view>
|
||||
<view class="text">{{task.cmtask_type != 4 ?task.cmtask_type == 5?'专业力必修':'定制化学习':'领导力必修'}}</view>
|
||||
<view class="course-text">
|
||||
<view class="course-title one-line-ellipsis" style="margin-bottom: auto"><text
|
||||
style="font-size: 32upx; font-weight: 500;" v-html="task.cmtask_name"></text>
|
||||
@@ -478,20 +477,20 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
getList(this.userInfo.aid).then(res=>{
|
||||
if(res.code == 200 ){
|
||||
this.detailData = res.data
|
||||
if(Object.keys(this.detailData).length){
|
||||
if(res.data.studyStatus == 1){
|
||||
this.detailData.studyStatus = 2
|
||||
}else if(res.data.studyStatus == 2){
|
||||
this.detailData.studyStatus = 1
|
||||
}
|
||||
this.detailData.cmtask_name = this.detailData.growName
|
||||
this.detailData.cmtask_user_status = this.detailData.studyStatus
|
||||
}
|
||||
}
|
||||
})
|
||||
// getList(this.userInfo.aid).then(res=>{
|
||||
// if(res.code == 200 ){
|
||||
// this.detailData = res.data
|
||||
// if(Object.keys(this.detailData).length){
|
||||
// if(res.data.studyStatus == 1){
|
||||
// this.detailData.studyStatus = 2
|
||||
// }else if(res.data.studyStatus == 2){
|
||||
// this.detailData.studyStatus = 1
|
||||
// }
|
||||
// this.detailData.cmtask_name = this.detailData.growName
|
||||
// this.detailData.cmtask_user_status = this.detailData.studyStatus
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.onReachBottom();
|
||||
@@ -725,12 +724,12 @@
|
||||
},
|
||||
// 学习任务跳转详情
|
||||
loaddetail(task) {
|
||||
if('growId' in task){
|
||||
uni.navigateTo({
|
||||
url:'/pages/learnPath/growPage'
|
||||
})
|
||||
return
|
||||
}
|
||||
// if('growId' in task){
|
||||
// uni.navigateTo({
|
||||
// url:'/pages/learnPath/growPage'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/study/loaddetail?id=' + task.cmtask_id
|
||||
// });
|
||||
@@ -759,6 +758,8 @@
|
||||
}else{
|
||||
taskUrl='/pages/forward?to=/student-h5/projectdetails¶ms='+params;
|
||||
}
|
||||
}else if(task.cmtask_type==5){
|
||||
taskUrl='/pages/learnPath/growPage'
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: taskUrl
|
||||
@@ -785,16 +786,16 @@
|
||||
if (this.cmtask_name) {
|
||||
params.cmtask_name = this.keyWord;
|
||||
}
|
||||
if(this.typeListData == 2){
|
||||
if(Object.keys(this.detailData).length){
|
||||
if(this.boeStatus === '' || this.boeStatus == this.detailData.studyStatus){
|
||||
this.couresList.push(this.detailData)
|
||||
}
|
||||
}
|
||||
this.taskHasMore = true;
|
||||
this.loadStatus='noMore';
|
||||
return
|
||||
}
|
||||
// if(this.typeListData == 2){
|
||||
// if(Object.keys(this.detailData).length){
|
||||
// if(this.boeStatus === '' || this.boeStatus == this.detailData.studyStatus){
|
||||
// this.couresList.push(this.detailData)
|
||||
// }
|
||||
// }
|
||||
// this.taskHasMore = true;
|
||||
// this.loadStatus='noMore';
|
||||
// return
|
||||
// }
|
||||
|
||||
apiManage.userTaskList(params).then(res => {
|
||||
if(res.code==200){
|
||||
@@ -807,9 +808,9 @@
|
||||
})
|
||||
this.taskCount = parseInt(res.data.total);
|
||||
this.couresList.push(...res.data.records);
|
||||
if(Object.keys(this.detailData).length&&this.detailData.growName.includes(this.loadkeyword)&&(this.boeStatus===''||this.detailData.studyStatus==this.boeStatus)){
|
||||
this.couresList.unshift(this.detailData)
|
||||
}
|
||||
// if(Object.keys(this.detailData).length&&this.detailData.growName.includes(this.loadkeyword)&&(this.boeStatus===''||this.detailData.studyStatus==this.boeStatus)){
|
||||
// this.couresList.unshift(this.detailData)
|
||||
// }
|
||||
if (this.taskCount > this.taskPageIndex * this.taskPageSize) {
|
||||
this.taskHasMore = true;
|
||||
this.loadStatus='more';
|
||||
|
||||
Reference in New Issue
Block a user