mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
提交修改
This commit is contained in:
@@ -152,6 +152,12 @@ const getRanking = function(queryData) {
|
||||
return ajax.get(baseURL,'/xboe/m/stat/medal/login-medal');
|
||||
}
|
||||
|
||||
/**
|
||||
* 提取需要提示的勋章
|
||||
*/
|
||||
const getUserMedalTips = function() {
|
||||
return ajax.get(baseURL,'/xboe/m/stat/medal/tips');
|
||||
}
|
||||
|
||||
export default {
|
||||
sendEvent,
|
||||
@@ -166,5 +172,6 @@ export default {
|
||||
getRanking,
|
||||
getUserStatTotalInfo,
|
||||
userDynamicfollows,
|
||||
getUserLoginMedal
|
||||
getUserLoginMedal,
|
||||
getUserMedalTips
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
//15天控制
|
||||
this.interestCollection = false;
|
||||
localStorage.setItem('notYet'+this.userInfo.aid,new Date());
|
||||
this.$emit('close');
|
||||
},
|
||||
...mapActions({
|
||||
getSysTypeTree: 'sysType/getSysTypeTree',
|
||||
@@ -90,6 +91,7 @@
|
||||
closeDialog() {
|
||||
//本地登录的设置
|
||||
sessionStorage.setItem('user-hobby-'+this.userInfo.aid,1);
|
||||
this.$emit('close');
|
||||
},
|
||||
saveInterest() {
|
||||
let data = []
|
||||
@@ -134,6 +136,7 @@
|
||||
});
|
||||
}
|
||||
})
|
||||
this.$emit('close');
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
|
||||
@@ -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