const app = getApp(),
  {
    globalData: {
      util: {
        regeneratorRuntime,
        api: {
          newsList: url
        }
      }
    }
  } = app;

Page({

  onLoad: function({
    title,
    type
  }) {
    debugger
    wx.setNavigationBarTitle({
      title
    })
    this.setData({
      template: type,
      request: {
        url,
        data: {
          type
        },
        type: 'post' 
      }
    })


  },
  onPullDownRefresh() {
    this.setData({
      reload: {}
    })
  }
})