|
@@ -27,18 +27,18 @@ export class RecommendDetailComponent {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //预设值变量...
|
|
|
+ //预设值变量
|
|
|
view: Parse.Object | undefined;
|
|
|
- // 依赖注入...
|
|
|
+ // 依赖注入
|
|
|
constructor(private route: ActivatedRoute) {
|
|
|
- // 查询参数获取并赋值给this.view...
|
|
|
+ // 查询参数获取并赋值给this.view
|
|
|
this.route.queryParams.subscribe(params => {
|
|
|
this.getViewInfoById(params["id"])
|
|
|
})
|
|
|
}
|
|
|
async getViewInfoById(id: string) {
|
|
|
let query = new Parse.Query("PetRecommend")
|
|
|
- this.view = await query.get(id)
|
|
|
+ this.recommend = await query.get(id)
|
|
|
}
|
|
|
|
|
|
|