mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
修改
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
<u-icon style="margin-left: 18upx;" name="arrow-down"></u-icon>
|
<u-icon style="margin-left: 18upx;" name="arrow-down"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="sea-show" v-show="statusSelectShow">
|
<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}}
|
{{status.name}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -288,6 +288,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
Applistatus:'',
|
||||||
autonomyStatusShow: false,
|
autonomyStatusShow: false,
|
||||||
delData: {},
|
delData: {},
|
||||||
btnsShow: false, // 我报名的删除弹出
|
btnsShow: false, // 我报名的删除弹出
|
||||||
@@ -538,7 +539,8 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
autonomyStatus(num) {
|
autonomyStatus(num) {
|
||||||
this.status = num;
|
console.log(num)
|
||||||
|
this.Applistatus = num;
|
||||||
this.getLearning();
|
this.getLearning();
|
||||||
},
|
},
|
||||||
taskStatus(num) {
|
taskStatus(num) {
|
||||||
@@ -727,7 +729,7 @@
|
|||||||
pageIndex: 1, //第几页
|
pageIndex: 1, //第几页
|
||||||
pageSize: 200,
|
pageSize: 200,
|
||||||
courseName: this.learkeyword,
|
courseName: this.learkeyword,
|
||||||
status: this.status,
|
status: this.Applistatus,
|
||||||
}
|
}
|
||||||
await apicourseStudy.myStudyList(lear).then(res => {
|
await apicourseStudy.myStudyList(lear).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
@@ -745,7 +747,6 @@
|
|||||||
data.push(...res.result.list);
|
data.push(...res.result.list);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// }
|
|
||||||
let learData = {
|
let learData = {
|
||||||
page: 1,
|
page: 1,
|
||||||
size: 200,
|
size: 200,
|
||||||
@@ -824,12 +825,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 自主学习选择状态事件
|
// 自主学习选择状态事件
|
||||||
chooseStatus(e) {
|
// chooseStatus(e) {
|
||||||
this.statusSelectShow = false;
|
// this.statusSelectShow = false;
|
||||||
this.statusBtnName = e.value[0].name;
|
// this.statusBtnName = e.value[0].name;
|
||||||
this.autonomy.status = e.value[0].value;
|
// this.autonomy.status = e.value[0].value;
|
||||||
this.searchData();
|
// this.searchData();
|
||||||
},
|
// },
|
||||||
// 自主学习选择类型事件
|
// 自主学习选择类型事件
|
||||||
// chooseStatust(e) {
|
// chooseStatust(e) {
|
||||||
// this.statusSelecShow = false;
|
// this.statusSelecShow = false;
|
||||||
@@ -840,28 +841,28 @@
|
|||||||
|
|
||||||
// },
|
// },
|
||||||
// 历史记录选择类型事件
|
// 历史记录选择类型事件
|
||||||
hischooseStatus(e) {
|
// hischooseStatus(e) {
|
||||||
this.hisstatusSelectShow = false;
|
// this.hisstatusSelectShow = false;
|
||||||
this.hisstatusBtnName = e.value[0].name;
|
// this.hisstatusBtnName = e.value[0].name;
|
||||||
this.hisswitch = e.value[0].value;
|
// this.hisswitch = e.value[0].value;
|
||||||
if (this.hisswitch == 10) {
|
// if (this.hisswitch == 10) {
|
||||||
this.hisclassType = 10
|
// this.hisclassType = 10
|
||||||
this.history()
|
// this.history()
|
||||||
} else {
|
// } else {
|
||||||
this.hisclassType = 20
|
// this.hisclassType = 20
|
||||||
this.history()
|
// this.history()
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
loadchooseStatust(e) {
|
// loadchooseStatust(e) {
|
||||||
this.boeStatus = e;
|
// this.boeStatus = e;
|
||||||
this.loadBoeData()
|
// this.loadBoeData()
|
||||||
},
|
// },
|
||||||
Application(e) {
|
// Application(e) {
|
||||||
this.classType = e;
|
// this.classType = e;
|
||||||
this.autonomy.type = e;
|
// this.autonomy.type = e;
|
||||||
this.searchData();
|
// this.searchData();
|
||||||
this.getLearning();
|
// this.getLearning();
|
||||||
},
|
// },
|
||||||
displayWord(data) {
|
displayWord(data) {
|
||||||
if (data.progress == 0) {
|
if (data.progress == 0) {
|
||||||
return '未开始'
|
return '未开始'
|
||||||
@@ -1063,7 +1064,7 @@
|
|||||||
}
|
}
|
||||||
.sea-index {
|
.sea-index {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
margin-right: 16rpx;
|
// margin-right: 16rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user