提交 43842e07 编写于 作者: huangwensu's avatar huangwensu

头部样式调整

上级 5a618f91
...@@ -72,9 +72,9 @@ export default { ...@@ -72,9 +72,9 @@ export default {
if(minValue < 100 ) { if(minValue < 100 ) {
htmlText = `还差<span style="color">${100 - minValue}</span>分,就有资格瓜分<span style="color: #FFE8A5">100</span>万云鹊豆啦!` htmlText = `还差<span style="color">${100 - minValue}</span>分,就有资格瓜分<span style="color: #FFE8A5">100</span>万云鹊豆啦!`
} else if(minValue < 200) { } else if(minValue < 200) {
htmlText = `已经有资格瓜分<span style="color: #FFE8A5">100</span>万云鹊豆啦,继续努力还能瓜分<span style="color: #FFE8A5">200</span>万!` htmlText = `已经有资格瓜分<span style="color: #FFE8A5">100</span>万云鹊豆啦,</br>继续努力还能瓜分<span style="color: #FFE8A5">200</span>万!`
} else if(minValue < 300) { } else if(minValue < 300) {
htmlText = `已经有资格瓜分<span style="color: #FFE8A5">300</span>万云鹊豆啦,继续努力还能瓜分<span style="color: #FFE8A5">200</span>万!` htmlText = `已经有资格瓜分<span style="color: #FFE8A5">300</span>万云鹊豆啦,</br>继续努力还能瓜分<span style="color: #FFE8A5">200</span>万!`
} else { } else {
htmlText = `天啦撸,你有资格瓜分500万云鹊豆哦!` htmlText = `天啦撸,你有资格瓜分500万云鹊豆哦!`
} }
...@@ -98,12 +98,13 @@ export default { ...@@ -98,12 +98,13 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.status-wrapper { .status-wrapper {
background: #9A1F36; background: #9A1F36;
height: 88px; height: 100px;
.status-text { .status-text {
text-align: center; text-align: center;
font-size: 12px; font-size: 12px;
padding: 10px 0 13px; padding: 10px 0 13px;
color: #fff; color: #fff;
height: 35px;
.no-login { .no-login {
color: #FFE8A5 color: #FFE8A5
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<img :src="headerLeftIcon" /> <img :src="headerLeftIcon" />
</div> </div>
<div :class="{ active: isScroll }" class="content title"> <div :class="{ active: isScroll }" class="content title">
<span>{{ shareTitle1 }}</span> <span>国际医生节特辑活动</span>
</div> </div>
<div <div
v-show="isShowRightIcon" v-show="isShowRightIcon"
......
...@@ -194,12 +194,38 @@ export default { ...@@ -194,12 +194,38 @@ export default {
_this.getUserInfo(); _this.getUserInfo();
}; };
_this.getActivityTime(); _this.getActivityTime();
let timeOutId = null;
window.addEventListener(
'scroll',
() => {
if (timeOutId) {
clearTimeout(timeOutId);
}
timeOutId = setTimeout(this.handleScroll, 50);
},
false
);
_this.$sendBuriedData({ _this.$sendBuriedData({
action: '查看量', action: '查看量',
component_tag: '360#360000' component_tag: '360#360000'
}); });
}, },
methods: { methods: {
handleScroll() {
// const contentDiv = document.getElementsByClassName('content-box')[1];
var scrollTop =
window.pageYOffset ||
document.documentElement.scrollTop ||
document.body.scrollTop;
// console.log(scrollTop)
if (scrollTop > 25) {
this.isScroll = true;
} else {
this.isScroll = false;
}
},
// 获取服务器当前时间 // 获取服务器当前时间
getActivityTime() { getActivityTime() {
getActivityTime().then(res => { getActivityTime().then(res => {
...@@ -475,8 +501,8 @@ export default { ...@@ -475,8 +501,8 @@ export default {
.top-container { .top-container {
position: relative; position: relative;
width: 100%; width: 100%;
height: 430px; height: 264px;
background-image:url('../static/images/head_bg.png'); background-image:url('../static/images/head_bg_new.png');
background-size: 100% 100%; background-size: 100% 100%;
.rule { .rule {
position: absolute; position: absolute;
...@@ -491,7 +517,7 @@ export default { ...@@ -491,7 +517,7 @@ export default {
.progress-container { .progress-container {
position: absolute; position: absolute;
left: 0; left: 0;
top: 330px; top: 190px;
width: 94%; width: 94%;
margin: 0px 10px 15px; margin: 0px 10px 15px;
.score-info { .score-info {
...@@ -533,7 +559,6 @@ export default { ...@@ -533,7 +559,6 @@ export default {
} }
.progress-bar { .progress-bar {
padding: 5px 17px; padding: 5px 17px;
height: 87px;
border-radius: 0px 0px 10px 10px; border-radius: 0px 0px 10px 10px;
} }
} }
...@@ -542,7 +567,7 @@ export default { ...@@ -542,7 +567,7 @@ export default {
width: 100%; width: 100%;
} }
.title-text.st { .title-text.st {
margin-top: 65px; margin-top: 90px;
} }
.activity-step { .activity-step {
margin: 0 10px 15px; margin: 0 10px 15px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册