detail.js 745 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. var is_more = !1;
  2. Page({
  3. data: {},
  4. onLoad: function(e) {
  5. getApp().page.onLoad(this, e);
  6. var t = this;
  7. t.setData(e), getApp().core.showLoading({
  8. title: "加载中"
  9. }), getApp().request({
  10. url: getApp().api.recharge.detail,
  11. method: "GET",
  12. data: {
  13. order_type: e.order_type,
  14. id: e.id
  15. },
  16. success: function(e) {
  17. getApp().core.hideLoading(), 0 == e.code ? t.setData({
  18. list: e.data
  19. }) : getApp().core.showModal({
  20. title: "提示",
  21. content: e.msg
  22. })
  23. }
  24. })
  25. },
  26. onReady: function() {
  27. getApp().page.onReady(this)
  28. },
  29. onShow: function() {
  30. getApp().page.onShow(this)
  31. },
  32. onHide: function() {
  33. getApp().page.onHide(this)
  34. },
  35. onUnload: function() {
  36. getApp().page.onUnload(this)
  37. }
  38. });