mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +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');
|
return ajax.get(baseURL,'/xboe/m/stat/medal/login-medal');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提取需要提示的勋章
|
||||||
|
*/
|
||||||
|
const getUserMedalTips = function() {
|
||||||
|
return ajax.get(baseURL,'/xboe/m/stat/medal/tips');
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
sendEvent,
|
sendEvent,
|
||||||
@@ -166,5 +172,6 @@ export default {
|
|||||||
getRanking,
|
getRanking,
|
||||||
getUserStatTotalInfo,
|
getUserStatTotalInfo,
|
||||||
userDynamicfollows,
|
userDynamicfollows,
|
||||||
getUserLoginMedal
|
getUserLoginMedal,
|
||||||
|
getUserMedalTips
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
//15天控制
|
//15天控制
|
||||||
this.interestCollection = false;
|
this.interestCollection = false;
|
||||||
localStorage.setItem('notYet'+this.userInfo.aid,new Date());
|
localStorage.setItem('notYet'+this.userInfo.aid,new Date());
|
||||||
|
this.$emit('close');
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
getSysTypeTree: 'sysType/getSysTypeTree',
|
getSysTypeTree: 'sysType/getSysTypeTree',
|
||||||
@@ -90,6 +91,7 @@
|
|||||||
closeDialog() {
|
closeDialog() {
|
||||||
//本地登录的设置
|
//本地登录的设置
|
||||||
sessionStorage.setItem('user-hobby-'+this.userInfo.aid,1);
|
sessionStorage.setItem('user-hobby-'+this.userInfo.aid,1);
|
||||||
|
this.$emit('close');
|
||||||
},
|
},
|
||||||
saveInterest() {
|
saveInterest() {
|
||||||
let data = []
|
let data = []
|
||||||
@@ -134,6 +136,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.$emit('close');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
|
|||||||
@@ -427,7 +427,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<portal-footer></portal-footer>
|
<portal-footer></portal-footer>
|
||||||
<portalFloatTools></portalFloatTools>
|
<portalFloatTools></portalFloatTools>
|
||||||
<interest-Collection ref="userCollection"></interest-Collection> <!-- 兴趣偏好 -->
|
<interest-Collection ref="userCollection" @close="closeCollection"></interest-Collection> <!-- 兴趣偏好 -->
|
||||||
<guide-box ref="guide" @close="closeGuide"></guide-box> <!-- 引导页 -->
|
<guide-box ref="guide" @close="closeGuide"></guide-box> <!-- 引导页 -->
|
||||||
<!-- <medalDlg></medalDlg> -->
|
<!-- <medalDlg></medalDlg> -->
|
||||||
<!--登录勋章-->
|
<!--登录勋章-->
|
||||||
@@ -494,28 +494,35 @@
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$store.dispatch('refrashStudyTaskCount');
|
this.$store.dispatch('refrashStudyTaskCount');
|
||||||
|
let $this=this;
|
||||||
//判断是否弹出登录勋章,设置截止日期
|
//判断是否弹出登录勋章,设置截止日期
|
||||||
var nowDate = new Date();
|
var nowDate = new Date();
|
||||||
var endDate = new Date('2022-11-18');//先设置时间是11月18日
|
var endDate = new Date('2022-11-18');//先设置时间是11月18日
|
||||||
if(nowDate<endDate){
|
if(nowDate<endDate){
|
||||||
let $this=this;
|
|
||||||
apiStat.getUserLoginMedal().then(rs=>{
|
apiStat.getUserLoginMedal().then(rs=>{
|
||||||
if(rs.status==200){
|
if(rs.status==200){
|
||||||
if(rs.result.show){
|
if(rs.result.show){
|
||||||
//弹出勋章
|
//设置是否需要显示纪念勋章
|
||||||
$this.showLoginMedal=true;
|
$this.needLoginMedal=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//提取需要提示勋章
|
||||||
|
// apiStat.getUserMedalTips().then(res=>{
|
||||||
|
// if(res.status==200){
|
||||||
|
// $this.medalTips=res.result;
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showLoginMedal:false,//是否显示登录勋章
|
showLoginMedal:false,//是否显示登录勋章
|
||||||
|
needLoginMedal:false,//是否需要显示纪念勋章
|
||||||
medalTips:[
|
medalTips:[
|
||||||
{medalId:1,medalLevel:5},
|
{medalId:1,medalLevel:5,isShow:false},
|
||||||
{medalId:3,medalLevel:4}
|
{medalId:3,medalLevel:4,isShow:false}
|
||||||
],
|
],
|
||||||
lastStudy:{},
|
lastStudy:{},
|
||||||
overlayShow:false,
|
overlayShow:false,
|
||||||
@@ -695,6 +702,11 @@
|
|||||||
this.$refs.userCollection.show();
|
this.$refs.userCollection.show();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
closeCollection(){
|
||||||
|
if(this.needLoginMedal){
|
||||||
|
this.showLoginMedal=true;
|
||||||
|
}
|
||||||
|
},
|
||||||
jumstudy(){
|
jumstudy(){
|
||||||
this.$router.push({path:'../views/study/TaskList.vue'});
|
this.$router.push({path:'../views/study/TaskList.vue'});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user