This commit is contained in:
lmj
2022-11-16 18:15:21 +08:00
parent cecb06f35f
commit cfe5b7d6f5

View File

@@ -42,7 +42,7 @@
<u-icon style="margin-left: 18upx;" name="arrow-down"></u-icon>
</view>
<view class="sea-show" v-show="statusSelectShow">
<view v-for="(status,index) in statustList" :key="index" :class="[status === status.value? 'sea-active':'','sea-index']" @click="autonomyStatus(status.value)">
<view v-for="(status,index) in statustList" :key="index" :class="[Applistatus === status.value? 'sea-active':'','sea-index']" @click="autonomyStatus(status.value)">
{{status.name}}
</view>
</view>
@@ -288,6 +288,7 @@
},
data() {
return {
Applistatus:'',
autonomyStatusShow: false,
delData: {},
btnsShow: false, // 我报名的删除弹出
@@ -538,7 +539,8 @@
})
},
autonomyStatus(num) {
this.status = num;
console.log(num)
this.Applistatus = num;
this.getLearning();
},
taskStatus(num) {
@@ -727,7 +729,7 @@
pageIndex: 1, //第几页
pageSize: 200,
courseName: this.learkeyword,
status: this.status,
status: this.Applistatus,
}
await apicourseStudy.myStudyList(lear).then(res => {
if (res.status == 200) {
@@ -745,7 +747,6 @@
data.push(...res.result.list);
}
})
// }
let learData = {
page: 1,
size: 200,
@@ -824,12 +825,12 @@
}
},
// 自主学习选择状态事件
chooseStatus(e) {
this.statusSelectShow = false;
this.statusBtnName = e.value[0].name;
this.autonomy.status = e.value[0].value;
this.searchData();
},
// chooseStatus(e) {
// this.statusSelectShow = false;
// this.statusBtnName = e.value[0].name;
// this.autonomy.status = e.value[0].value;
// this.searchData();
// },
// 自主学习选择类型事件
// chooseStatust(e) {
// this.statusSelecShow = false;
@@ -840,28 +841,28 @@
// },
// 历史记录选择类型事件
hischooseStatus(e) {
this.hisstatusSelectShow = false;
this.hisstatusBtnName = e.value[0].name;
this.hisswitch = e.value[0].value;
if (this.hisswitch == 10) {
this.hisclassType = 10
this.history()
} else {
this.hisclassType = 20
this.history()
}
},
loadchooseStatust(e) {
this.boeStatus = e;
this.loadBoeData()
},
Application(e) {
this.classType = e;
this.autonomy.type = e;
this.searchData();
this.getLearning();
},
// hischooseStatus(e) {
// this.hisstatusSelectShow = false;
// this.hisstatusBtnName = e.value[0].name;
// this.hisswitch = e.value[0].value;
// if (this.hisswitch == 10) {
// this.hisclassType = 10
// this.history()
// } else {
// this.hisclassType = 20
// this.history()
// }
// },
// loadchooseStatust(e) {
// this.boeStatus = e;
// this.loadBoeData()
// },
// Application(e) {
// this.classType = e;
// this.autonomy.type = e;
// this.searchData();
// this.getLearning();
// },
displayWord(data) {
if (data.progress == 0) {
return '未开始'
@@ -1063,7 +1064,7 @@
}
.sea-index {
font-size: 26rpx;
margin-right: 16rpx;
// margin-right: 16rpx;
background-color: #fff;
}
}