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