{"action":"closed","issue":{"url":"https://api.github.com/repos/zce/weapp-demo/issues/3","repository_url":"https://api.github.com/repos/zce/weapp-demo","labels_url":"https://api.github.com/repos/zce/weapp-demo/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/zce/weapp-demo/issues/3/comments","events_url":"https://api.github.com/repos/zce/weapp-demo/issues/3/events","html_url":"https://github.com/zce/weapp-demo/issues/3","id":180247291,"number":3,"title":"只是写的很不ES6,不知为什么要这么写呢","user":{"login":"wuyanwen","id":7331663,"avatar_url":"https://avatars.githubusercontent.com/u/7331663?v=3","gravatar_id":"","url":"https://api.github.com/users/wuyanwen","html_url":"https://github.com/wuyanwen","followers_url":"https://api.github.com/users/wuyanwen/followers","following_url":"https://api.github.com/users/wuyanwen/following{/other_user}","gists_url":"https://api.github.com/users/wuyanwen/gists{/gist_id}","starred_url":"https://api.github.com/users/wuyanwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuyanwen/subscriptions","organizations_url":"https://api.github.com/users/wuyanwen/orgs","repos_url":"https://api.github.com/users/wuyanwen/repos","events_url":"https://api.github.com/users/wuyanwen/events{/privacy}","received_events_url":"https://api.github.com/users/wuyanwen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-30T08:22:56Z","updated_at":"2016-10-01T08:48:23Z","closed_at":"2016-10-01T08:48:23Z","body":"`douban.find('coming_soon', 1, 3)\r\n      .then(d => this.setData({ movies: d.subjects, loading: false }))\r\n      .catch(e => {\r\n        console.error(e)\r\n        this.setData({ movies: [], loading: false })\r\n      })`\r\n\r\n\r\n`module.exports = {\r\n  find (type, page = 1, count = 20, search = '') {\r\n    const params = { start: (page - 1) * count, count: count }\r\n    return fetchApi(type, search ? Object.assign(params, { q: search }) : params)\r\n      .then(res => res.data)\r\n  },\r\n  findOne (id) {\r\n    return fetchApi('subject/' + id)\r\n      .then(res => res.data)\r\n  }\r\n}`\r\n** ES5+ES6，只是写的很不ES6 不知为什么要这么写呢**"}}
{"actor":{"display_login":"wuyanwen"}}