提交 ddf9a25a authored 作者: matian's avatar matian

课程有效期话术新增导入学员日期

上级 268556a9
......@@ -7,9 +7,7 @@
<el-button type="primary" @click="getCourseList('updated_time')"
>最近更新<i class="el-icon-caret-bottom el-icon--right"></i
></el-button>
<div class="coursr-top-text">
你的课程有效期为:{{ $store.state.user.student_info.expiration_time }},请在有效期内完成学习及考试
</div>
<div class="coursr-top-text">你的课程有效期为:{{ createdTime }}-{{ endTime }},请在有效期内完成学习及考试</div>
</div>
<app-container>
<div class="course-list" element-loading-text="加载中..." v-loading="!loaded">
......@@ -44,6 +42,18 @@ export default {
}
},
computed: {
createdTime() {
const year = this.$store.state.user.student_info.created_time.slice(0, 4)
const month = this.$store.state.user.student_info.created_time.slice(5, 7)
const day = this.$store.state.user.student_info.created_time.slice(8, 10)
return year + '年' + month + '月' + day + '日'
},
endTime() {
const year = this.$store.state.user.student_info.expiration_time.slice(0, 4)
const month = this.$store.state.user.student_info.expiration_time.slice(5, 7)
const day = this.$store.state.user.student_info.expiration_time.slice(8, 10)
return year + '年' + month + '月' + day + '日'.slice(0, 10)
},
currentList() {
if (!this.searchValue) {
return this.list
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论