Commit d4d89329 authored by sujie@126.com's avatar sujie@126.com

dd\

parent 30ceaaba
......@@ -133,6 +133,7 @@ Page({
erpStudentId: 0,
backTopValue: false,
activeHonorTab: 1,
fixHonorTab:false
},
onLoad: function (options) { // Do some initialize when page load.
let that = this;
......@@ -224,11 +225,11 @@ Page({
let that = this;
let scrollTop = e.scrollTop;
let backTopValue = scrollTop > 800 ? true : false;
let fixHonorTab = scrollTop > 258 ? true : false;
this.debounce(() => {
that.setData({
backTopValue,
fixHonorTab
})
}, 200)()
},
......
......@@ -34,7 +34,7 @@
</view>
</view>
<view class="top-fix-wrapper" style="top: {{statusBarHeight}}px;">
<view class="top-fix-wrapper" style="{{fixHonorTab ? 'padding-top:'+statusBarHeight+'px' : ''}}">
<view class="top-fix">
<view class="header-tab">
<view class="tab-item {{bigtab == 1? 'active': ''}}" data-type="1" bindtap="bigTapEvent">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment