You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
405 B
27 lines
405 B
const app = getApp();
|
|
Page({
|
|
data: {
|
|
tidings:[]
|
|
},
|
|
|
|
onLoad: function (options) {
|
|
|
|
},
|
|
|
|
onShow: function () {
|
|
app.api("users.tidings")().then(res=>{
|
|
console.log(res);
|
|
this.setData({tidings: res.tidings});
|
|
})
|
|
wx.hideTabBarRedDot({index: 1});
|
|
wx.removeTabBarBadge({index: 1});
|
|
},
|
|
|
|
onPullDownRefresh: function () {
|
|
|
|
},
|
|
|
|
onShareAppMessage: function () {
|
|
|
|
}
|
|
}) |