setTop() {
var _this = this
wx.getSystemInfo({
success: function (res) {
let nav_top = res.statusBarHeight + 4;
if (res.platform.toLowerCase() == 'android') {
nav_top += 4;
}
_this.setData({
global_top: nav_top
})
}
})
let boundHig = wx.getMenuButtonBoundingClientRect()
this.setData({
global_top1: this.data.global_top + boundHig.height + 7
})
}