锶源昆仑会员+体验官
This commit is contained in:
40
pages/news/classify/index.js
Normal file
40
pages/news/classify/index.js
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
noticeData: [] //消息列表
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
// 获取消息通知列表
|
||||
this.noticeInfo();
|
||||
},
|
||||
|
||||
/**
|
||||
* 消息通知列表
|
||||
*/
|
||||
noticeInfo (){
|
||||
wx.$api.user.notice().then(res => {
|
||||
this.setData({
|
||||
noticeData: res.data
|
||||
})
|
||||
}).catch(err => {})
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user