public getList () {
this.http.get("lottery/activity/activity-list", {
// params: {pageSize: "20"},
})
.subscribe((res: any) => {
if (res.resultCode == 200) {
this.activityList = res.resultData;
console.log(this.activityList);//
return res.resultData; //tsservice
}
//
}, (err: any) => {
});
}
public OnInit () {
this.activityList = this.activityService.getList();
console.log(this.activityList);//
}