settlementDetail.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // lionfish_comshop/pages/groupCenter/settlementDetail.js
  2. var page = 1;
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. containerHeight: "",
  9. LoadingComplete: !1,
  10. loadText: "没有更多订单了~",
  11. orderDetail: {},
  12. rewardList: []
  13. },
  14. /**
  15. * 生命周期函数--监听页面加载
  16. */
  17. onLoad: function (options) {
  18. var sysInfo = wx.getSystemInfoSync();
  19. this.setData({
  20. containerHeight: sysInfo.windowHeight,
  21. orderDetail: options
  22. })
  23. },
  24. /**
  25. * 生命周期函数--监听页面初次渲染完成
  26. */
  27. onReady: function () {
  28. },
  29. /**
  30. * 生命周期函数--监听页面显示
  31. */
  32. onShow: function () {
  33. page = 1, wx.showLoading({
  34. title: "加载中...",
  35. mask: true
  36. }), this.data.rewardList = [], this.getDetailInfo();
  37. },
  38. /**
  39. * 获取订单详情
  40. */
  41. getDetailInfo: function(){
  42. console.log(211)
  43. wx.hideLoading();
  44. },
  45. getMoreList: function () {
  46. wx.showLoading({
  47. title: "加载中...",
  48. mask: true
  49. }), this.data.LoadingComplete ? (page += 1, this.getDetailInfo()) : wx.hideLoading();
  50. }
  51. })