|
@@ -648,7 +648,11 @@ var vm = new Vue({
|
|
|
},
|
|
|
calcStickyOffset: function () {
|
|
|
setTimeout(function () {
|
|
|
- var headerHeight = $('.jy-app-header')[0].clientHeight
|
|
|
+ try{
|
|
|
+ var headerHeight = $('.jy-app-header')[0].clientHeight // 微信端没有header
|
|
|
+ }catch(e){
|
|
|
+ headerHeight = 0
|
|
|
+ }
|
|
|
var tabHeight = $('.analysis-tab')[0].clientHeight
|
|
|
this.stickyOffset = headerHeight + tabHeight - 5
|
|
|
}.bind(this), 1000)
|