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
提交
0017236f
提交
0017236f
编写于
12月 04, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
封装电池栏,刘海屏下班、电池栏背景色
上级
90996730
变更
9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
41 行增加
和
47 行删除
+41
-47
normal-header.vue
components/normal-header.vue
+1
-13
ranking-header.vue
components/ranking-header.vue
+1
-13
nuxt.config.js
nuxt.config.js
+4
-0
index.vue
pages/hospital-ranking/index.vue
+1
-3
index.vue
pages/invite-details/index.vue
+1
-5
index.vue
pages/person-detail/index.vue
+1
-5
index.vue
pages/person-ranking/index.vue
+1
-3
index.vue
pages/yesterday-prize/index.vue
+1
-5
mixins.js
plugins/mixins.js
+30
-0
未找到文件。
components/normal-header.vue
浏览文件 @
0017236f
<
template
>
<section
class=
"header-section"
>
<div
class=
"navBar"
:style=
"
{height: `${
barHeight}Px`,backgroundColor: b
arColor}">
</div>
<div
class=
"navBar"
:style=
"
{height: `${
statusBarHeight}Px`,backgroundColor: statusB
arColor}">
</div>
<header
class=
"header-container"
>
<img
@
click=
"goBack"
src=
"~/assets/img/icon-back.png"
alt=
""
>
{{
title
}}
...
...
@@ -31,18 +31,6 @@
return
1
}
},
barHeight
:
{
type
:
Number
,
default
:
function
()
{
return
0
}
},
barColor
:
{
type
:
String
,
default
:
function
()
{
return
'#ffffff'
}
}
},
data
()
{
return
{}
...
...
components/ranking-header.vue
浏览文件 @
0017236f
<
template
>
<section
class=
"header-section"
>
<div
class=
"navBar"
:style=
"
{height: `${
barHeight}Px`,backgroundColor: b
arColor}">
</div>
<div
class=
"navBar"
:style=
"
{height: `${
statusBarHeight}Px`,backgroundColor: statusB
arColor}">
</div>
<header
class=
"header-container"
>
<img
@
click=
"goBack"
src=
"~/assets/img/icon-back.png"
alt=
""
>
<div
class=
"head-btn"
>
...
...
@@ -45,18 +45,6 @@
return
1
}
},
barHeight
:
{
type
:
Number
,
default
:
function
()
{
return
0
}
},
barColor
:
{
type
:
String
,
default
:
function
()
{
return
'#ffffff'
}
},
headBtn
:
{
type
:
Object
,
default
:
function
()
{
...
...
nuxt.config.js
浏览文件 @
0017236f
...
...
@@ -55,6 +55,10 @@ module.exports = {
{
src
:
'~plugins/vue-infinite-scroll'
,
ssr
:
false
},
{
src
:
'~plugins/mixins'
,
ssr
:
false
}
],
/*
...
...
pages/hospital-ranking/index.vue
浏览文件 @
0017236f
...
...
@@ -5,7 +5,7 @@
:activeBtnType=
"activeBtnType"
@
handleBtn=
"changeRanking"
>
</ranking-header>
<div
class=
"info-container"
:style=
"
{ marginTop: `${44+
b
arHeight}Px`}">
<div
class=
"info-container"
:style=
"
{ marginTop: `${44+
statusB
arHeight}Px`}">
<div
class=
"info info-hospital"
v-if=
"activeBtnType"
>
<img
src=
"~/assets/img/hospital-ranking/icon-hospital.png"
alt=
""
>
<div
class=
"content"
v-if=
"hospitalRanking.score"
>
...
...
@@ -97,8 +97,6 @@
return
{
showPop
:
false
,
title
:
'个人明细'
,
barHeight
:
0
,
barColor
:
'#fff'
,
headBtn
:
{
leftName
:
'机构排行榜'
,
rightName
:
'人员贡献榜'
...
...
pages/invite-details/index.vue
浏览文件 @
0017236f
...
...
@@ -2,11 +2,9 @@
<section
class=
"invite-details-wrap"
>
<normal-header
:title=
"title"
:barHeight=
"barHeight"
:barColor=
"barColor"
:backType=
"1"
>
</normal-header>
<div
class=
"main-container"
:style=
"
{ marginTop: `${44+
b
arHeight}Px`}">
<div
class=
"main-container"
:style=
"
{ marginTop: `${44+
statusB
arHeight}Px`}">
<div
class=
"invite-explain"
>
<p
class=
"title"
>
邀请形式
</p>
<div
class=
"picture-explain"
>
...
...
@@ -103,8 +101,6 @@
return
{
showPop
:
false
,
title
:
'邀请明细'
,
barHeight
:
0
,
barColor
:
'#fff'
,
inviteList
:
[],
recordTotal
:
0
,
recordType
:
1
,
...
...
pages/person-detail/index.vue
浏览文件 @
0017236f
...
...
@@ -2,11 +2,9 @@
<section
class=
"person-detail-wrap"
>
<normal-header
:title=
"title"
:barHeight=
"barHeight"
:barColor=
"barColor"
:backType=
"1"
>
</normal-header>
<div
class=
"info-container"
:style=
"
{ marginTop: `${44+
b
arHeight}Px`}">
<div
class=
"info-container"
:style=
"
{ marginTop: `${44+
statusB
arHeight}Px`}">
<div
class=
"info"
>
<img
src=
"https://file.yunqueyi.com/jpg/2019/01/30/1548836156602-019ADC3F.jpg"
alt=
""
>
<div
class=
"content"
>
...
...
@@ -75,8 +73,6 @@
return
{
showPop
:
false
,
title
:
'个人明细'
,
barHeight
:
0
,
barColor
:
'#fff'
,
personDetails
:
[],
busy
:
true
,
//分页参数--start
pageNo
:
0
,
...
...
pages/person-ranking/index.vue
浏览文件 @
0017236f
...
...
@@ -7,7 +7,7 @@
@
handleBtn=
"changeRanking"
@
handleRightBtn=
"handleRightBtn"
>
</ranking-header>
<div
class=
"info-container"
:style=
"
{ marginTop: `${44+
b
arHeight}Px`}">
<div
class=
"info-container"
:style=
"
{ marginTop: `${44+
statusB
arHeight}Px`}">
<div
class=
"info"
>
<img
:src=
"rankData.avatarImageUrl"
alt=
""
>
<div
class=
"right"
>
...
...
@@ -69,8 +69,6 @@
return
{
showPop
:
false
,
title
:
'个人明细'
,
barHeight
:
0
,
barColor
:
'#fff'
,
rankData
:
{},
rightBtn
:
'昨日获奖'
,
headBtn
:
{
...
...
pages/yesterday-prize/index.vue
浏览文件 @
0017236f
...
...
@@ -3,11 +3,9 @@
<normal-header
:title=
"title"
:rightText=
"rightText"
:barHeight=
"barHeight"
:barColor=
"barColor"
:backType=
"1"
>
</normal-header>
<div
class=
"prize-list"
:style=
"
{ marginTop: `${44+
b
arHeight}Px`}">
<div
class=
"prize-list"
:style=
"
{ marginTop: `${44+
statusB
arHeight}Px`}">
<div
class=
"item"
v-for=
"(item, index) in rewardsList"
>
<img
v-if=
"index
<
=
2
"
:src=
"dealRankIcon(index)"
alt=
""
class=
"ranking-icon"
>
<p
v-else
class=
"icon-num"
>
{{
index
+
1
}}
</p>
...
...
@@ -43,8 +41,6 @@
return
{
showPop
:
false
,
title
:
'昨日获奖名单'
,
barHeight
:
0
,
barColor
:
'#fff'
,
rightText
:
'如何领奖'
,
rewardsList
:
[],
btnText
:
'今日我要拿奖'
,
...
...
plugins/mixins.js
0 → 100644
浏览文件 @
0017236f
import
Vue
from
'vue'
;
// 设置电池栏高度
const
mixins
=
{
data
()
{
return
{
statusBarHeight
:
0
,
homeIndicatorHeight
:
0
,
statusBarColor
:
'#fff'
}
},
created
()
{
const
_this
=
this
;
if
(
!
_this
.
$rocNative
.
isWeb
)
{
_this
.
statusBarColor
=
_this
.
$rocNative
.
isAndroid
?
'#5C5C5C'
:
'#fff'
_this
.
$rocNative
.
getStatusBarHeight
().
then
(
res
=>
{
// resolve(data)
let
height
=
_this
.
$rocNative
.
isIOS
?
res
.
statusBarHeight
:
res
.
statusBarHeight
/
window
.
devicePixelRatio
;
_this
.
statusBarHeight
=
height
;
// 刘海屏底部高度
let
homeIndicatorHeight
=
_this
.
$rocNative
.
isIOS
?
res
.
homeIndicatorHeight
:
res
.
homeIndicatorHeight
/
window
.
devicePixelRatio
;
_this
.
homeIndicatorHeight
=
homeIndicatorHeight
;
})
}
},
mounted
()
{
},
};
Vue
.
mixin
(
mixins
);
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录