提交 b3520c4f 编写于 作者: tao.wu's avatar tao.wu

联调活动首页时间接口

上级 f6ba965b
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
export default { export default {
name: 'h5header', name: 'h5header',
props: { props: {
isOpacity: { // 是否需要透明背景
type: Boolean,
default: true
},
scrollVal: { // 实际滚动的距离 scrollVal: { // 实际滚动的距离
type: Number, type: Number,
default: 25 default: 25
...@@ -60,6 +64,7 @@ ...@@ -60,6 +64,7 @@
} }
}, },
mounted(){ mounted(){
this.isScroll = !this.isOpacity;
this.setHeaderHeight(); this.setHeaderHeight();
if(!this.setedScroll){ if(!this.setedScroll){
this.scrollHandleOwn(); this.scrollHandleOwn();
...@@ -68,7 +73,13 @@ ...@@ -68,7 +73,13 @@
watch: { watch: {
scrollVal(val){ scrollVal(val){
this.setScrollHandle(val); this.setScrollHandle(val);
} },
isScroll(val){
if(val){
this.leftIcon = leftimg2;
this.rightIcon = rightimg2;
}
}
}, },
methods: { methods: {
// 从APP获取电池栏高度并设置高度 // 从APP获取电池栏高度并设置高度
...@@ -83,7 +94,9 @@ ...@@ -83,7 +94,9 @@
this.bgColor = '#ccc'; this.bgColor = '#ccc';
this.statusBarHeight = res.statusBarHeight / dpr; this.statusBarHeight = res.statusBarHeight / dpr;
} }
this.$emit('getHeaderHeight', this.statusBarHeight + 44);
}) })
this.$emit('getHeaderHeight', 20 + 44);
}, },
goBack(){ goBack(){
this.$sendBuriedData({ this.$sendBuriedData({
......
<template> <template>
<div class="in-activity-wrap"> <div class="in-activity-wrap" :style="{paddingTop: padTop + 'px'}">
<h5header <h5header
v-if="!isWeb" v-if="!isWeb"
title="云鹊奖2019" title="云鹊奖2019"
:baseShowHeight="25" :baseShowHeight="0"
:isOpacity="false"
:shareObj="shareObj" :shareObj="shareObj"
:isCheckAuth="true" :isCheckAuth="true"
@checkAuth="handleLoginCheck" @checkAuth="handleLoginCheck"
@getHeaderHeight="getHeaderHeight"
/> />
<!-- 顶部的四个阶段 进度条 --> <!-- 顶部的四个阶段 进度条 -->
<ul class="top-process-bar"> <ul class="top-process-bar">
...@@ -279,7 +281,8 @@ ...@@ -279,7 +281,8 @@
bean: 5, bean: 5,
}, },
isWeb: false, isWeb: false,
shareObj: {} shareObj: {},
padTop: 0
} }
}, },
components: { components: {
...@@ -421,8 +424,8 @@ ...@@ -421,8 +424,8 @@
}, },
getUserActivityInfo() { // 获取用户及参加活动的具体信息 getUserActivityInfo() { // 获取用户及参加活动的具体信息
getUserScoreInfo().then(res => { getUserScoreInfo().then(res => {
alert('获取用户及分数信息。。。'); // alert('获取用户及分数信息。。。');
alert(JSON.stringify(res)); // alert(JSON.stringify(res));
vm.doctorInfo = res.data; vm.doctorInfo = res.data;
}); });
}, },
...@@ -967,7 +970,9 @@ ...@@ -967,7 +970,9 @@
} }
return text; return text;
}, },
getHeaderHeight(val){
this.padTop = val;
},
}, },
} }
</script>> </script>>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册