提交 d71713b5 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

吸低元素兼容ios刘海屏下巴高度

上级 4e1c95a4
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.personal-grade-wrap { .personal-grade-wrap {
.wrap-container { .wrap-container {
width: 100%; width: 100%;
/*min-height: 907px;*/ min-height: 907px;
background: url("../../img/stage3/personal-grade.png") no-repeat; background: url("../../img/stage3/personal-grade.png") no-repeat;
background-size: cover; background-size: cover;
position: relative; position: relative;
......
.rank-wrap { .rank-wrap {
.rank-list { .rank-list {
padding-left: 25px;
.rank-item { .rank-item {
padding: 20px 15px 20px 0; padding: 20px 15px 20px 25px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -97,10 +96,12 @@ ...@@ -97,10 +96,12 @@
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
background: #fff;
box-shadow: 0px -1Px 0px 0px #EDEDED;
.content { .content {
height: 50px; height: 50px;
background: #fff; background: #fff;
box-shadow: 0px -0.5px 0px 0px #EDEDED;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
......
...@@ -4,3 +4,6 @@ ...@@ -4,3 +4,6 @@
.padBott60 { .padBott60 {
padding-bottom: 60px; padding-bottom: 60px;
} }
.marginBott60 {
margin-bottom: 60px;
}
...@@ -56,6 +56,12 @@ ...@@ -56,6 +56,12 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
isGoHistory: { // 是否调用app goBack,'1',history.go(-1)
type: String,
default() {
return ''
}
},
}, },
data(){ data(){
return { return {
...@@ -108,7 +114,14 @@ ...@@ -108,7 +114,14 @@
component_tag: `301#301002` component_tag: `301#301002`
}); });
} }
if(this.isGoHistory == '1') {
this.$router.go(-1)
} else {
this.$rocNative.goBack(); this.$rocNative.goBack();
}
}, },
goShare(){ goShare(){
if(this.isStageTwoHomePage){ if(this.isStageTwoHomePage){
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<section class="hospital-grade-wrap rank-wrap"> <section class="hospital-grade-wrap rank-wrap">
<h5header <h5header
v-if="!isWeb" v-if="!isWeb"
:title="title" :title="title.hospitalType"
isGoHistory="1"
:isOpacity="false" :isOpacity="false"
:shareObj="shareObj"/> :shareObj="shareObj"/>
<div class="rank-list" :class="{'padBott60': isWeb}" :style="{ marginTop: isWeb?0:`${44+statusBarHeight}Px`}"> <div class="rank-list" :class="{'padBott60': isWeb}" :style="{ marginTop: isWeb?0:`${44+statusBarHeight}Px`}">
...@@ -20,8 +21,13 @@ ...@@ -20,8 +21,13 @@
<p class="name">勤奋分</p> <p class="name">勤奋分</p>
</div> </div>
</div> </div>
<div class="no-more" :style="{marginBottom: `${50+homeIndicatorHeight}` + 'Px'}">
<span class="line"></span>
<span class="text">到底啦</span>
<span class="line"></span>
</div> </div>
<div class="footer" v-if="!isWeb"> </div>
<div class="footer" v-if="!isWeb" :style="{height: `${50+homeIndicatorHeight}` + 'Px'}">
<div class="content"> <div class="content">
<div class="left"> <div class="left">
<p class="score">我的机构勤奋分<span>{{personalData.hospitalDiligence}}</span></p> <p class="score">我的机构勤奋分<span>{{personalData.hospitalDiligence}}</span></p>
...@@ -53,7 +59,12 @@ ...@@ -53,7 +59,12 @@
isWeb: false, isWeb: false,
personalData: {}, personalData: {},
shareObj: wxShare, shareObj: wxShare,
title: '星火榜榜单' title: {
0: '星火榜榜单',
1: '萌芽榜榜单',
2: '奋进榜榜单',
3: '超越榜榜单'
}
} }
}, },
async asyncData( { query } ) { async asyncData( { query } ) {
...@@ -68,6 +79,7 @@ ...@@ -68,6 +79,7 @@
mounted() { mounted() {
this.$rocNative.appInit(); this.$rocNative.appInit();
this.isWeb = this.$rocNative.isWeb; this.isWeb = this.$rocNative.isWeb;
this.shareObj.shareUrl = location.href; //微信分享链接
if(!this.isWeb) { if(!this.isWeb) {
this.getPersonScore(); this.getPersonScore();
}; };
......
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
<h5header <h5header
v-if="!isWeb" v-if="!isWeb"
title="云鹊奖2019" title="云鹊奖2019"
isGoHistory="1"
:isOpacity="false" :isOpacity="false"
:shareObj="shareObj"/> :shareObj="shareObj"/>
<div class="wrap-container" :style="{ marginTop: isWeb?0:`${44+statusBarHeight}Px`}"> <div class="wrap-container" :class="{'marginBott60': isWeb}" :style="{ marginTop: isWeb?0:`${44+statusBarHeight}Px`}">
<img src="~/assets/img/stage3/awards-title.png" alt="" class="title"> <img src="~/assets/img/stage3/awards-title.png" alt="" class="title">
<img :src="dealAwardsIcon()" alt="" class="awards-grade"> <img :src="dealAwardsIcon()" alt="" class="awards-grade">
<div class="personal-info"> <div class="personal-info">
...@@ -52,7 +53,7 @@ ...@@ -52,7 +53,7 @@
<p>{{rightText2}}</p> <p>{{rightText2}}</p>
</div> </div>
</div> </div>
<div class="task-details" :class="{'padBott60': isWeb}"> <div class="task-details">
<div class="task-item"> <div class="task-item">
<img src="~/assets/img/stage3/task-icon1.png" alt=""> <img src="~/assets/img/stage3/task-icon1.png" alt="">
<p class="num">{{myGrades.clockCount}}</p> <p class="num">{{myGrades.clockCount}}</p>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<h5header <h5header
v-if="!isWeb" v-if="!isWeb"
title="个人勤奋榜单" title="个人勤奋榜单"
isGoHistory="1"
:isOpacity="false" :isOpacity="false"
:shareObj="shareObj"/> :shareObj="shareObj"/>
<div class="rank-list" :class="{'padBott60': isWeb}" :style="{ marginTop: isWeb?0:`${44+statusBarHeight}Px`}"> <div class="rank-list" :class="{'padBott60': isWeb}" :style="{ marginTop: isWeb?0:`${44+statusBarHeight}Px`}">
...@@ -21,13 +22,13 @@ ...@@ -21,13 +22,13 @@
<p class="name">勤奋分</p> <p class="name">勤奋分</p>
</div> </div>
</div> </div>
<div class="no-more"> <div class="no-more" :style="{marginBottom: isWeb?0:`${50+homeIndicatorHeight}` + 'Px'}">
<span class="line"></span> <span class="line"></span>
<span class="text">到底啦</span> <span class="text">到底啦</span>
<span class="line"></span> <span class="line"></span>
</div> </div>
</div> </div>
<div class="footer" v-if="!isWeb"> <div class="footer" v-if="!isWeb" :style="{height: `${50+homeIndicatorHeight}` + 'Px'}">
<div class="content"> <div class="content">
<div class="left"> <div class="left">
<p class="score">我的勤奋分<span>{{personalData.diligence}}</span></p> <p class="score">我的勤奋分<span>{{personalData.diligence}}</span></p>
...@@ -72,6 +73,7 @@ ...@@ -72,6 +73,7 @@
mounted() { mounted() {
this.$rocNative.appInit(); this.$rocNative.appInit();
this.isWeb = this.$rocNative.isWeb; this.isWeb = this.$rocNative.isWeb;
this.shareObj.shareUrl = location.href; //微信分享链接
if(!this.isWeb) { if(!this.isWeb) {
this.getPersonScore(); this.getPersonScore();
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册