12345678910111213141516171819202122232425262728293031323334353637383940 |
- const app = getApp(),
- {
- globalData: {
- util: {
- regeneratorRuntime,
- api: {
- newsList: url
- }
- }
- }
- } = app;
- Page({
- onLoad: function({
- title,
- type
- }) {
- wx.setNavigationBarTitle({
- title
- })
- this.setData({
- template: type,
- request: {
- url,
- data: {
- type
- },
- type: 'post'
- }
- })
- },
- onPullDownRefresh() {
- this.setData({
- reload: {}
- })
- }
- })
|