{"size": 511, "ext": "js", "max_stars_repo_path": "src/pages/user/system/system.js", "max_stars_repo_name": "NameLi/wechat-app-movie", "max_stars_repo_stars_event_min_datetime": "2018-04-10T07:28:33.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-08T10:39:08.000Z", "max_issues_repo_path": "src/pages/user/system/system.js", "max_issues_repo_name": "NameLi/wechat-app-movie", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/pages/user/system/system.js", "max_forks_repo_name": "NameLi/wechat-app-movie", "max_forks_repo_forks_event_min_datetime": "2018-04-10T07:33:44.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-01T06:54:36.000Z"}
{"max_stars_count": 34, "max_issues_count": null, "max_forks_count": 8, "avg_line_length": 15.4848484848, "max_line_length": 44, "alphanum_fraction": 0.5048923679}
var app = getApp()

Page({
  data: {

  },

  onLoad: function (options) {
    app.setBarColor()
  },
  
  logout() {
    app.http({
      method: 'delete',
      url: 'authorizations/current',
      data: {
        identity_type: 'miniprogram'
      }
    }).then(res => {
      wx.removeStorageSync('jwt')

      var pages = getCurrentPages()
      var prevPage = pages[pages.length - 2]
      prevPage.setData({
        isBind: false
      });

      wx.navigateBack({
        delta: 1
      })
    })
  }
})