Commit b797594b authored by zhijie.xue's avatar zhijie.xue

头像计算提前

parent 26afd946
......@@ -562,6 +562,11 @@
return;
}
// 获取头像安全距离
let statusHeight = this.$app.$options.globalData.statusBarHeight || '';
this.setSafeAreaStyle('top:' + statusHeight + 'px');
this.searchStyle = 'top:' + (statusHeight + 12) + 'px';
// 获取分享人openid
if (query.openid) {
this.inviter = query.openid;
......@@ -582,11 +587,6 @@
// 获取活动信息
this.showActivity();
// 获取头像安全距离
let statusHeight = this.$app.$options.globalData.statusBarHeight || '';
this.setSafeAreaStyle('top:' + statusHeight + 'px');
this.searchStyle = 'top:' + (statusHeight + 12) + 'px';
wx.showShareMenu({
withShareTicket: false,
menus: ['shareAppMessage', 'shareTimeline']
......
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