//app.js
App({
  onLaunch: function () {
    
  },

  onShow: function (e) {
    var t = this;
    try {
      var n = wx.getUpdateManager();
      n.onCheckForUpdate(function (e) {
        console.log(e);
      }), n.onUpdateReady(function () {
        wx.showModal({
          title: "更新提示",
          content: "新版本已经准备好,重启应用?",
          showCancel: !1,
          success: function (e) {
            e.confirm && n.applyUpdate();
          }
        });
      });
    } catch (e) {
      console.log(e);
    }
  },

  globalData: {
    userInfo: null
  }
})