Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
Y
year-end-activitiy
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.foundation.frontend
year-end-activitiy
提交
a2c0f8de
提交
a2c0f8de
编写于
12月 13, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
判断是否登录,从app中获取登录状态
上级
4d8fd075
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
36 行增加
和
16 行删除
+36
-16
index.vue
pages/awards-list/index.vue
+35
-15
mixins.js
plugins/mixins.js
+1
-1
未找到文件。
pages/awards-list/index.vue
浏览文件 @
a2c0f8de
...
...
@@ -4,10 +4,8 @@
v-if=
"!isWeb"
title=
"云鹊奖2019"
:isOpacity=
"false"
:shareObj=
"shareObj"
@
checkAuth=
"handleLoginCheck"
/>
<div
class=
"top-container"
:style=
"
{ marginTop: `${44+statusBarHeight}Px`}">
:shareObj=
"shareObj"
/>
<div
class=
"top-container"
:style=
"
{ marginTop: isWeb?0:`${44+statusBarHeight}Px`}">
<img
src=
"~/assets/img/stage3/rule-btn.png"
alt=
""
>
</div>
<!--已登录及个人未参加-->
...
...
@@ -34,9 +32,9 @@
</div>
<div
class=
"my-grade"
@
click=
"goMyGrade"
>
我的成绩
</div>
<div
class=
"bottom"
>
<p
class=
"text"
>
参与人数
{{
mainInfo
.
count
}}
</p>
<p
class=
"text"
>
参与人数
{{
joinDeatils
.
count
}}
</p>
<p
class=
"line"
></p>
<p
class=
"text"
>
参与机构数
{{
mainInfo
.
hospitalCount
}}
</p>
<p
class=
"text"
>
参与机构数
{{
joinDeatils
.
hospitalCount
}}
</p>
</div>
</div>
<!--未登录-->
...
...
@@ -44,29 +42,29 @@
<div
class=
"description"
>
登录查看个人和机构排名
</div>
<div
class=
"my-grade"
>
立即登录
</div>
<div
class=
"bottom"
>
<p
class=
"text"
>
参与人数
28788348
</p>
<p
class=
"text"
>
参与人数
{{
joinDeatils
.
count
}}
</p>
<p
class=
"line"
></p>
<p
class=
"text"
>
参与机构数
28788348
</p>
<p
class=
"text"
>
参与机构数
{{
joinDeatils
.
hospitalCount
}}
</p>
</div>
</div>
<!--个人机构均未参加-->
<div
class=
"person-details not-join"
v-if=
"isLogin&&mainInfoType==2&&!isWeb"
>
<div
class=
"description"
>
您和您的机构未参加本次活动
</div>
<div
class=
"bottom"
>
<p
class=
"text"
>
参与人数
28788348
</p>
<p
class=
"text"
>
参与人数
{{
joinDeatils
.
count
}}
</p>
<p
class=
"line"
></p>
<p
class=
"text"
>
参与机构数
28788348
</p>
<p
class=
"text"
>
参与机构数
{{
joinDeatils
.
hospitalCount
}}
</p>
</div>
</div>
<!--微信打开页面-->
<div
class=
"person-details in-wx"
v-if=
"isWeb"
>
<div
class=
"wx-left wx-item"
>
<p
class=
"num"
>
28788348
</p>
<p
class=
"num"
>
{{
joinDeatils
.
count
}}
</p>
<p
class=
"text"
>
参与人数
</p>
</div>
<div
class=
"line"
></div>
<div
class=
"wx-left wx-item"
>
<p
class=
"num"
>
28788348
</p>
<p
class=
"num"
>
{{
joinDeatils
.
hospitalCount
}}
</p>
<p
class=
"text"
>
参与机构数
</p>
</div>
</div>
...
...
@@ -118,6 +116,7 @@
import
h5header
from
'@/components/h5header'
;
import
{
wxShare
}
from
'@/configs/wxShare'
;
import
{
setCookie
,
getCookie
,
delCookie
}
from
'@/utils/cookieFun'
;
export
default
{
name
:
"index"
,
components
:
{
...
...
@@ -133,20 +132,41 @@
}
},
async
asyncData
()
{
const
{
data
}
=
await
getMainRank
()
const
{
data
}
=
await
getMainRank
()
;
return
{
joinDeatils
:{
count
:
data
.
count
,
hospitalCount
:
data
.
hospitalCount
},
//参加人数参加机构
hospitalTopVoList
:
data
.
hospitalTopVoList
,
doctorTopVo
:
data
.
doctorTopVo
||
{}
}
},
created
()
{
getMainRank
()
},
mounted
()
{
this
.
getMainInfo
();
this
.
shareObj
.
shareUrl
=
location
.
href
this
.
shareObj
.
shareUrl
=
location
.
href
;
//微信分享链接
/*从app获取用户信息*/
this
.
$rocNative
.
appInit
();
this
.
getUserInfo
();
const
_this
=
this
window
.
__refresh
=
function
(
params
)
{
_this
.
getUserInfo
();
// 判断是否登录
}
},
methods
:
{
getUserInfo
()
{
// 判断是否登录
this
.
$rocNative
.
getUserInfo
().
then
(
res
=>
{
if
(
res
.
userToken
){
setCookie
(
'token'
,
res
.
userToken
);
}
else
{
this
.
isLogin
=
false
}
})
},
goMyGrade
()
{
//跳转我的成绩页
this
.
$router
.
push
(
'/awards-list/personal-grade'
)
},
...
...
plugins/mixins.js
浏览文件 @
a2c0f8de
...
...
@@ -4,7 +4,7 @@ import Vue from 'vue';
const
mixins
=
{
data
()
{
return
{
statusBarHeight
:
0
,
statusBarHeight
:
2
0
,
homeIndicatorHeight
:
0
,
statusBarColor
:
'#fff'
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录