From 054ce32cb2855171fac99a256872e963607f7d7f Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 30 Sep 2023 14:11:07 -0400 Subject: [PATCH] play ground --- .../playground/playground.page.html | 66 ++++--------------- .../playground/playground.page.ts | 42 ++++++++++-- src/app/services/wrench.service.ts | 6 +- 3 files changed, 54 insertions(+), 60 deletions(-) diff --git a/src/app/pages-family/playground/playground.page.html b/src/app/pages-family/playground/playground.page.html index 2cce867..7bfd941 100644 --- a/src/app/pages-family/playground/playground.page.html +++ b/src/app/pages-family/playground/playground.page.html @@ -45,64 +45,26 @@ +
-
- Section 1 - Introduction - -
+
+ {{item.name}} + +
-
-
-
+
+
+
-
- Why Using Figma ? - 10 mins +
+ {{iteml.title}} + {{iteml.description}} +
-
-
- -
-
- -
- Section 2 - Figma Basic - -
- - -
-
-
- -
- Why Using Figma ? - 10 mins +
+
-
- -
-
- -
- Section 3 - Let's Practice - -
- - -
-
-
- -
- Why Using Figma ? - 10 mins -
-
-
- -
diff --git a/src/app/pages-family/playground/playground.page.ts b/src/app/pages-family/playground/playground.page.ts index 256932f..c82af56 100644 --- a/src/app/pages-family/playground/playground.page.ts +++ b/src/app/pages-family/playground/playground.page.ts @@ -1,6 +1,9 @@ import { Component, OnInit } from '@angular/core'; -import {NavController} from "@ionic/angular"; +import {AlertController, NavController} from "@ionic/angular"; import {Router} from "@angular/router"; +import {SessionDataProviderService} from "../../store/session-data-provider.service"; +import {WrenchService} from "../../services/wrench.service"; +import {BlogDataService} from "../../store/blog-data.service"; @Component({ selector: 'app-playground', @@ -14,22 +17,47 @@ export class PlaygroundPage implements OnInit { constructor( private navctr: NavController, - private router: Router + private router: Router, + public sessionDataProviderService: SessionDataProviderService, + private alertController:AlertController, + private wrenchService: WrenchService, + public blogDataService: BlogDataService ) { } ngOnInit() { + this.paygroundData(); } onBack() { this.navctr.back(); } - onMentor() { - this.router.navigate(['mentor']); - } + usrData: { + action:number, member_id: number, uid: string, + sessionid: string, + 'limit': 30, + 'offset': 0 + }; + + playListTotalData:any; + playListData: []; + paygroundData(){ + + + this.usrData = {action:11201, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, + sessionid: this.sessionDataProviderService.session,'limit': 30, + 'offset': 0 } + + this.wrenchService.getMyPlayground(this.usrData).subscribe( + playListTotalData => { + this.playListTotalData = playListTotalData; + //debugger; + // console.log("REFER RETURN->", this.referTotalData); + this.playListData = this.playListTotalData.result_list; + console.log("playListTotalData RETURN DATA->", this.playListData); + } + ); - onEnroll() { - this.router.navigate(['enroll']); } diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts index 739a1d5..9063bf5 100644 --- a/src/app/services/wrench.service.ts +++ b/src/app/services/wrench.service.ts @@ -86,7 +86,11 @@ export class WrenchService { return this.getPostData('mynotifications',usrData); } - loginUser(loginData) { + getMyPlayground(usrData) { + return this.getPostData('playground',usrData); + } + + loginUser(loginData) { return this.getPostData('userlogin',loginData); }