提交 44f33edd 编写于 作者: chengxiang.li's avatar chengxiang.li

更新优化昨日得奖排名逻辑

上级 52120e48
...@@ -562,10 +562,6 @@ ...@@ -562,10 +562,6 @@
// alert(isYesterdayRankShow); alert(res.data.nowToTodayEndMillis) // alert(isYesterdayRankShow); alert(res.data.nowToTodayEndMillis)
if( isYesterdayRankShow ){ if( isYesterdayRankShow ){
return; return;
}else{
if(res.data && res.data.nowToTodayEndMillis){
setCookie('isYesterdayRankShow', 1, 7, '.yunqueyi.com', res.data.nowToTodayEndMillis);
}
} }
if(vm.doctorInfo.userYesterdayRank==1){ if(vm.doctorInfo.userYesterdayRank==1){
...@@ -580,6 +576,12 @@ ...@@ -580,6 +576,12 @@
}else{ }else{
vm.awardModalShow = false; vm.awardModalShow = false;
} }
if(vm.awardModalShow){
if(res.data && res.data.nowToTodayEndMillis){
setCookie('isYesterdayRankShow', 1, 7, '.yunqueyi.com', res.data.nowToTodayEndMillis);
}
}
}else{ }else{
vm.$toast(res.message); vm.$toast(res.message);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册