mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-15 05:46:46 +08:00
搜索
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
<view class="course-info">
|
||||
<view class="course-info-left">
|
||||
<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-title one-line-ellipsis" style="margin-bottom: auto"><text
|
||||
style="font-size: 32upx; font-weight: 500;" v-html="task.cmtask_name"></text>
|
||||
@@ -298,7 +299,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-modal>
|
||||
<u-popup :show="showSearch" mode="top" @close="close" @open="open">
|
||||
<u-popup :show="showSearch" mode="top">
|
||||
<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>
|
||||
<view class="searchView" style="margin-left: 70rpx;" v-show="tabIndex===0">
|
||||
@@ -355,8 +356,8 @@
|
||||
typeData: [
|
||||
{name: '全部',value: 1},
|
||||
{name: '领导力必修',value: 2},
|
||||
{name: '专业力必修',value: 3},
|
||||
{name: '定制化学习',value: 4},
|
||||
{name: '定制化学习',value: 3},
|
||||
{name: '专业力必修',value: 4},
|
||||
// {name: '通用力学习',value: 5},
|
||||
],
|
||||
statusData: [
|
||||
@@ -747,6 +748,13 @@
|
||||
}
|
||||
}else if(task.cmtask_type==3){
|
||||
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¶ms='+params;
|
||||
}else{
|
||||
taskUrl='/pages/forward?to=/student-h5/projectdetails¶ms='+params;
|
||||
}
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: taskUrl
|
||||
@@ -773,7 +781,7 @@
|
||||
if (this.cmtask_name) {
|
||||
params.cmtask_name = this.keyWord;
|
||||
}
|
||||
if(this.typeListData == 1){
|
||||
if(this.typeListData == 2){
|
||||
if(Object.keys(this.detailData).length){
|
||||
if(this.boeStatus === '' || this.boeStatus == this.detailData.studyStatus){
|
||||
this.detailData.cmtask_name = this.detailData.growName
|
||||
@@ -814,6 +822,8 @@
|
||||
title: '获取任务失败',
|
||||
icon: 'none'
|
||||
});
|
||||
this.taskHasMore = false;
|
||||
this.loadStatus='noMore';
|
||||
}
|
||||
|
||||
|
||||
@@ -1947,11 +1957,25 @@
|
||||
|
||||
|
||||
/deep/ .course-info-left {
|
||||
position: relative;
|
||||
display: flex;
|
||||
// line-height: 40upx;
|
||||
margin-top: 5px;
|
||||
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 {
|
||||
// width: 152upx;
|
||||
// height: 88upx;
|
||||
|
||||
Reference in New Issue
Block a user