index.js 316 B

123456789101112131415161718
  1. var app = getApp();
  2. Page({
  3. data: {
  4. archiveList:[]
  5. },
  6. onLoad: function (options) {
  7. var that = this;
  8. app.request('/archive/index', {}, function (data, ret) {
  9. that.setData({
  10. archiveList: data.archiveList
  11. });
  12. }, function (data, ret) {
  13. app.error(ret.msg);
  14. });
  15. },
  16. })