mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 22:06:43 +08:00
提交加的弹窗
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div style="text-align: center;position: relative;">
|
||||
<!-- <span style="float: right;" @click="pop.show = false"><i style="font-size: 28px;color: #000000;" class="el-icon-close"></i></span> -->
|
||||
<el-image :src="baseUrl+pop.bgImage"></el-image>
|
||||
<div>
|
||||
<div style="margin-top: 30px;">
|
||||
<span v-if="pop.closeable" class="dlg-close" @click="pop.show = false"><i style="font-size: 28px;color: #999;" class="el-icon-close"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
78
src/components/Popup/Medal2023.vue
Normal file
78
src/components/Popup/Medal2023.vue
Normal file
@@ -0,0 +1,78 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-dialog :close-on-press-escape="false" :close-on-click-modal="false" class="medalbox" :visible.sync="show" :append-to-body="true" >
|
||||
<div style="text-align: center;position: relative;">
|
||||
<el-image :src="`${webBaseUrl}/images/medal/20230101.png`"></el-image>
|
||||
<div class="dlg-boot">
|
||||
<span class="dlg-close" @click="show = false"><i style="font-size: 28px;color: #999;" class="el-icon-close"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import apiYearMedal from '@/api/phase2/yearMedal.js';
|
||||
export default{
|
||||
data() {
|
||||
return {
|
||||
show:false,
|
||||
baseUrl:process.env.VUE_APP_FILE_BASE_URL
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
||||
let now=new Date();
|
||||
let min=new Date(2023,1,1,0,0,0);
|
||||
let max=new Date(2023,1,15,0,0,0);
|
||||
//console.log(now,min,max);
|
||||
//console.log(now.getTime(),min.getTime(),max.getTime());
|
||||
if(now.getTime()>min.getTime() && now.getTime()<max.getTime()){
|
||||
//console.log('open')
|
||||
apiYearMedal.has2023().then(rs=>{
|
||||
if(rs.status==200){
|
||||
if(!rs.result){
|
||||
this.show=true;
|
||||
apiYearMedal.save2023();
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.dlg-boot{
|
||||
height: 50px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
.dlg-close{
|
||||
//float: right;
|
||||
//margin-top: -90px;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 50%;
|
||||
|
||||
padding: 20px 10px 10px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.jinian-medal-img{
|
||||
text-align: center;
|
||||
padding-top: 10px;
|
||||
}
|
||||
.medalbox {
|
||||
background: transparent !important;
|
||||
::v-deep .el-dialog{
|
||||
background: transparent !important;
|
||||
box-shadow:none !important;
|
||||
.el-dialog__header{
|
||||
display: none !important;
|
||||
}
|
||||
.el-dialog__body{
|
||||
// width: 320px !important;
|
||||
// height: 420px !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -124,13 +124,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<popup></popup>
|
||||
<popup></popup><yearMedal></yearMedal>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { mapGetters, mapActions } from 'vuex';
|
||||
import apiMessage from '@/api/system/message.js';
|
||||
import popup from '@/components/AlertPopup.vue';
|
||||
import yearMedal from '@/components/Popup/Medal2023.vue';
|
||||
import apiBoeCourse from '@/api/boe/course.js';
|
||||
import {userAvatarText} from "@/utils/tools.js";
|
||||
export default {
|
||||
@@ -153,7 +154,7 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
components:{popup},
|
||||
components:{popup,yearMedal},
|
||||
computed: {
|
||||
...mapGetters(['userInfo', 'userMsg','identity','studyTaskCount']),
|
||||
|
||||
@@ -184,7 +185,7 @@ export default {
|
||||
//this.loadPopupConfig();
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
setCurIdentity(iden){
|
||||
this.$store.dispatch('SetCurIdentity',iden);
|
||||
},
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
<el-menu-item index="/examine/notapproved">
|
||||
<span class="textl"><el-badge :value="messagesBeReviewed" class="item" :hidden="messagesBeReviewed == 0">待审核的课程</el-badge></span>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/examine/notapproved1">
|
||||
<!-- <el-menu-item index="/course/opencourse/audit">
|
||||
<span class="textl">公开课审核</span>
|
||||
</el-menu-item>
|
||||
</el-menu-item> -->
|
||||
</el-submenu>
|
||||
<el-submenu index="manageFinish" v-show="curIdentity == 3">
|
||||
<template slot="title">
|
||||
|
||||
Reference in New Issue
Block a user