mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 06:46:43 +08:00
提交修改
This commit is contained in:
@@ -427,7 +427,7 @@
|
||||
</div>
|
||||
<portal-footer></portal-footer>
|
||||
<portalFloatTools></portalFloatTools>
|
||||
<interest-Collection ref="userCollection"></interest-Collection> <!-- 兴趣偏好 -->
|
||||
<interest-Collection ref="userCollection" @close="closeCollection"></interest-Collection> <!-- 兴趣偏好 -->
|
||||
<guide-box ref="guide" @close="closeGuide"></guide-box> <!-- 引导页 -->
|
||||
<!-- <medalDlg></medalDlg> -->
|
||||
<!--登录勋章-->
|
||||
@@ -494,28 +494,35 @@
|
||||
},
|
||||
created() {
|
||||
this.$store.dispatch('refrashStudyTaskCount');
|
||||
let $this=this;
|
||||
//判断是否弹出登录勋章,设置截止日期
|
||||
var nowDate = new Date();
|
||||
var endDate = new Date('2022-11-18');//先设置时间是11月18日
|
||||
if(nowDate<endDate){
|
||||
let $this=this;
|
||||
apiStat.getUserLoginMedal().then(rs=>{
|
||||
if(rs.status==200){
|
||||
if(rs.result.show){
|
||||
//弹出勋章
|
||||
$this.showLoginMedal=true;
|
||||
//设置是否需要显示纪念勋章
|
||||
$this.needLoginMedal=true;
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
//提取需要提示勋章
|
||||
// apiStat.getUserMedalTips().then(res=>{
|
||||
// if(res.status==200){
|
||||
// $this.medalTips=res.result;
|
||||
// }
|
||||
// })
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showLoginMedal:false,//是否显示登录勋章
|
||||
needLoginMedal:false,//是否需要显示纪念勋章
|
||||
medalTips:[
|
||||
{medalId:1,medalLevel:5},
|
||||
{medalId:3,medalLevel:4}
|
||||
{medalId:1,medalLevel:5,isShow:false},
|
||||
{medalId:3,medalLevel:4,isShow:false}
|
||||
],
|
||||
lastStudy:{},
|
||||
overlayShow:false,
|
||||
@@ -695,6 +702,11 @@
|
||||
this.$refs.userCollection.show();
|
||||
}
|
||||
},
|
||||
closeCollection(){
|
||||
if(this.needLoginMedal){
|
||||
this.showLoginMedal=true;
|
||||
}
|
||||
},
|
||||
jumstudy(){
|
||||
this.$router.push({path:'../views/study/TaskList.vue'});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user