|
@@ -3,7 +3,7 @@ import { Router } from '@angular/router';
|
|
|
|
|
|
// 引入Parse第三方库
|
|
|
import * as Parse from "parse"
|
|
|
-(Parse as any).serverURL = "http://metapunk.cn:9999/parse"
|
|
|
+(Parse as any).serverURL = "http://web2023.fmode.cn:9999/parse"
|
|
|
Parse.initialize("dev")
|
|
|
|
|
|
@Component({
|
|
@@ -39,11 +39,11 @@ export class PageLessonComponent {
|
|
|
searchInput: string = ``
|
|
|
searchType: string = `foodName`
|
|
|
async search() {
|
|
|
- this.skip = 0; // 每次搜索条件变化,从第一条重新加载
|
|
|
+ this.skip = 0;
|
|
|
this.courseList = await this.getMenuData();
|
|
|
}
|
|
|
// 触底加载函数逻辑
|
|
|
- pageSize = 10
|
|
|
+ pageSize = 20
|
|
|
skip: number = 0 // 跳过多少条进行加载
|
|
|
async onBottomLoad(event: any, infiScroll: any) {
|
|
|
console.log("onBottomLoad", this.courseList.length)
|