|
|
|
// pages/message/sysmessage/sysmessage.js
|
|
|
|
var Api = require('../../../utils/common.js');
|
|
|
|
var re = require('../../../utils/request.js');
|
|
|
|
Page({
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面的初始数据
|
|
|
|
*/
|
|
|
|
data: {
|
|
|
|
pageSize: 10,
|
|
|
|
page:1,
|
|
|
|
sysList:[
|
|
|
|
{time:'08-31 14:50',title:'俱乐部申请通过',content:'您创建的俱乐部已通过审核,可以使用提现功能,请遵守国家法律法规,文明发布活动。'},
|
|
|
|
{time:'08-31 14:50',title:'俱乐部申请通过',content:'您创建的俱乐部未通过审核,原因:(后台变量),请修改后重新提交。'},
|
|
|
|
{time:'08-31 14:50',title:'俱乐部申请通过',content:'您的提现申请已经审核中,请耐心等待。'},
|
|
|
|
{time:'08-31 14:50',title:'俱乐部申请通过',content:'您申请的42.30元提现,已经提现到钱包,请注意查收。'},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
|
|
onLoad: function (options) {
|
|
|
|
this.getSystemMessageList();
|
|
|
|
},
|
|
|
|
|
|
|
|
getSystemMessageList: function(){
|
|
|
|
var that = this;
|
|
|
|
let postData = {
|
|
|
|
pageSize: that.data.pageSize,
|
|
|
|
pageNum: that.data.page
|
|
|
|
};
|
|
|
|
var header = {
|
|
|
|
token: wx.getStorageSync('token'),
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
|
|
};
|
|
|
|
re.request(Api.getSystemMessagePage(), postData, header).then((res) => {
|
|
|
|
let datas = res.data.rows;
|
|
|
|
if(datas.length!=0){
|
|
|
|
that.setData({
|
|
|
|
sysList: datas
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
|
*/
|
|
|
|
onReady: function () {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面显示
|
|
|
|
*/
|
|
|
|
onShow: function () {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面隐藏
|
|
|
|
*/
|
|
|
|
onHide: function () {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面卸载
|
|
|
|
*/
|
|
|
|
onUnload: function () {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
|
|
*/
|
|
|
|
onPullDownRefresh: function () {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面上拉触底事件的处理函数
|
|
|
|
*/
|
|
|
|
onReachBottom: function () {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 用户点击右上角分享
|
|
|
|
*/
|
|
|
|
onShareAppMessage: function () {
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|