This commit is contained in:
zhangsir
2024-07-11 09:23:37 +08:00
parent 046351c883
commit 9a8d02d68a
2 changed files with 30 additions and 6 deletions

View File

@@ -80,7 +80,7 @@
reach(){ reach(){
this.bandIndexs = [] this.bandIndexs = []
this.bandItem = [] this.bandItem = []
this.indexs = [0] this.indexs = []
this.posiData = [] this.posiData = []
this.bandFirst = '' this.bandFirst = ''
this.bandEnd = '' this.bandEnd = ''

View File

@@ -64,6 +64,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 class="text">{{task.cmtask_type != 4 ?'定制化学习':'领导力必修'}}</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>
@@ -298,7 +299,7 @@
</view> </view>
</view> </view>
</u-modal> </u-modal>
<u-popup :show="showSearch" mode="top" @close="close" @open="open"> <u-popup :show="showSearch" mode="top">
<view class="popup_item"> <view class="popup_item">
<u-icon @click="showSearch = false" style="width: 30rpx;height: 30rpx;position: absolute;left: 20rpx;top: 40rpx;" name="arrow-left"></u-icon> <u-icon @click="showSearch = false" style="width: 30rpx;height: 30rpx;position: absolute;left: 20rpx;top: 40rpx;" name="arrow-left"></u-icon>
<view class="searchView" style="margin-left: 70rpx;" v-show="tabIndex===0"> <view class="searchView" style="margin-left: 70rpx;" v-show="tabIndex===0">
@@ -355,8 +356,8 @@
typeData: [ typeData: [
{name: '全部',value: 1}, {name: '全部',value: 1},
{name: '领导力必修',value: 2}, {name: '领导力必修',value: 2},
{name: '专业力必修',value: 3}, {name: '定制化学习',value: 3},
{name: '定制化学习',value: 4}, {name: '专业力必修',value: 4},
// {name: '通用力学习',value: 5}, // {name: '通用力学习',value: 5},
], ],
statusData: [ statusData: [
@@ -747,6 +748,13 @@
} }
}else if(task.cmtask_type==3){ }else if(task.cmtask_type==3){
taskUrl='/pages/study/loaddetail?id=' + task.cmtask_id taskUrl='/pages/study/loaddetail?id=' + task.cmtask_id
}else if(task.cmtask_type==4){
let params=encodeURIComponent('projectId='+task.cmtask_id);
if(this.$config.context=='/mobile-release'){
taskUrl='/pages/forward?to=/student-h5-release/projectdetails&params='+params;
}else{
taskUrl='/pages/forward?to=/student-h5/projectdetails&params='+params;
}
} }
uni.navigateTo({ uni.navigateTo({
url: taskUrl url: taskUrl
@@ -773,7 +781,7 @@
if (this.cmtask_name) { if (this.cmtask_name) {
params.cmtask_name = this.keyWord; params.cmtask_name = this.keyWord;
} }
if(this.typeListData == 1){ 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.detailData.cmtask_name = this.detailData.growName this.detailData.cmtask_name = this.detailData.growName
@@ -814,6 +822,8 @@
title: '获取任务失败', title: '获取任务失败',
icon: 'none' icon: 'none'
}); });
this.taskHasMore = false;
this.loadStatus='noMore';
} }
@@ -1947,11 +1957,25 @@
/deep/ .course-info-left { /deep/ .course-info-left {
position: relative;
display: flex; display: flex;
// line-height: 40upx; // line-height: 40upx;
margin-top: 5px; margin-top: 5px;
align-items: center; align-items: center;
.text{
position: absolute;
bottom: 10px;
left: 0;
text-align: center;
line-height: 15px;
background-color: #7f7f7f;
font-size: 10px;
opacity: 0.7;
color: #FFFFFF;
z-index: 88;
padding: 1px 5px;
border-radius: 0px 10px 10px 0px;
}
uni-image { uni-image {
// width: 152upx; // width: 152upx;
// height: 88upx; // height: 88upx;