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.

index.js 669B

1 년 전
1 년 전
1 년 전
12345678910111213141516171819202122232425262728293031323334353637383940
  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. if(wx.getStorageSync('token')) {
  26. wx.navigateTo({
  27. url: '/pages/info/index/index',
  28. })
  29. } else {
  30. wx.showToast({
  31. title: '请先登录',
  32. icon: 'none'
  33. })
  34. }
  35. }
  36. })