//index.js //获取应用实例 const app = getApp() Page({ data: { title: '', content1: '', content2: '', content3: '', content4: '', content5: '', arr: [], display: '', indicatorDots: true, autoplay: true, interval: 5000, duration: 2000, userInfo: {}, hasUserInfo: false, canIUse: wx.canIUse('button.open-type.getUserInfo'), }, //事件处理函数 bindViewTap: function() { wx.navigateTo({ url: '../logs/logs' }) }, onLoad() { let _this = this; _this.setData({ navH: app.globalData.navHeight }) } })