1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- // lionfish_comshop/pages/groupCenter/settlementDetail.js
- var page = 1;
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- containerHeight: "",
- LoadingComplete: !1,
- loadText: "没有更多订单了~",
- orderDetail: {},
- rewardList: []
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- var sysInfo = wx.getSystemInfoSync();
- this.setData({
- containerHeight: sysInfo.windowHeight,
- orderDetail: options
- })
- },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
- },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
- page = 1, wx.showLoading({
- title: "加载中...",
- mask: true
- }), this.data.rewardList = [], this.getDetailInfo();
- },
- /**
- * 获取订单详情
- */
- getDetailInfo: function(){
- console.log(211)
- wx.hideLoading();
- },
- getMoreList: function () {
- wx.showLoading({
- title: "加载中...",
- mask: true
- }), this.data.LoadingComplete ? (page += 1, this.getDetailInfo()) : wx.hideLoading();
- }
- })
|