You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 年之前
123456789101112131415161718192021222324252627282930313233
  1. const reqInterface = require("../../../../api/models");
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. title: '',
  8. content: '',
  9. total: 0,
  10. },
  11. onLoad(options) {
  12. reqInterface.GetGuide().then(res => {
  13. this.setData({
  14. title: res.title,
  15. content: res.content
  16. })
  17. })
  18. reqInterface.GetQuotaGet().then(res => {
  19. this.setData({
  20. total: res.remaining
  21. })
  22. })
  23. },
  24. toApplyFor() {
  25. wx.navigateTo({
  26. url: '/pages/info/index/index',
  27. })
  28. }
  29. })