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

联调活动首页时间接口

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