settlementDetail.js 1.0 KB

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