函数返回必须为箭头函数
getTopNewsList(){
uni.request({
url: "http://39.100.50.21:8080/jeecg-boot/phil/article/queryListByHomePageIsTrue",
success: (res) => {
this.articleList = res.data.result;
}
});
},
onLoad() {
this.getTopNewsList();
},