play ground

This commit is contained in:
CHIEFSOFT\ameye
2024-07-12 21:36:59 -04:00
parent fc3c7c4750
commit b11ee92bd5
9 changed files with 121 additions and 1 deletions
+5
View File
@@ -290,6 +290,11 @@ const routes: Routes = [
path: 'managependingoffers',
loadChildren: () => import('./pages/managependingoffers/managependingoffers.module').then(m => m.ManagependingoffersPageModule)
},
{
path: 'playgrdview',
loadChildren: () => import('./pages/playgrdview/playgrdview.module').then(m => m.PlaygrdviewPageModule)
},
@@ -36,6 +36,9 @@
</div>
<div class="video" *ngFor="let iteml of item.item_list.item">
<div class="left">
<!-- <div style="background-color: #3dc2ff; width: 200px; height: 200px;">-->
<!-- </div>-->
<div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/line.png)'"></div>
<div class="text">
@@ -43,7 +46,7 @@
<ion-label class="grey_text">{{iteml.description}}</ion-label>
</div>
</div>
<div class="right">
<div class="right" (click)="openPlayGrg(item,iteml)">
<ion-icon name="chevron-forward-outline"></ion-icon>
</div>
</div>
@@ -83,5 +83,10 @@ export class PlaygroundPage implements OnInit {
// alert(item);
this.tabMode = item.tab;
}
openPlayGrg(itm,itmL){
var groundData = { total: itm, spec: itmL};
// this.router.navigate([pageToNavigate],{state: item} );
this.router.navigate(['playgrdview'],{state: groundData});
}
}
@@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PlaygrdviewPage } from './playgrdview.page';
const routes: Routes = [
{
path: '',
component: PlaygrdviewPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class PlaygrdviewPageRoutingModule {}
@@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { PlaygrdviewPageRoutingModule } from './playgrdview-routing.module';
import { PlaygrdviewPage } from './playgrdview.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
PlaygrdviewPageRoutingModule
],
declarations: [PlaygrdviewPage]
})
export class PlaygrdviewPageModule {}
@@ -0,0 +1,14 @@
<ion-header mode="ios" class="ion-no-border">
<ion-toolbar>
<ion-buttons slot="start" (click)="onBack()">
<ion-button>
<ion-icon name="arrow-back-outline"></ion-icon>
</ion-button>
</ion-buttons>
<ion-title>Playground</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
</ion-content>
@@ -0,0 +1,24 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { PlaygrdviewPage } from './playgrdview.page';
describe('PlaygrdviewPage', () => {
let component: PlaygrdviewPage;
let fixture: ComponentFixture<PlaygrdviewPage>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ PlaygrdviewPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(PlaygrdviewPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,32 @@
import { Component, OnInit } from '@angular/core';
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";
@Component({
selector: 'app-playgrdview',
templateUrl: './playgrdview.page.html',
styleUrls: ['./playgrdview.page.scss'],
})
export class PlaygrdviewPage implements OnInit {
groundDetail:any;
constructor(
private navctr: NavController,
private router: Router,
public sessionDataProviderService: SessionDataProviderService,
private alertController:AlertController,
private wrenchService: WrenchService,
) {
debugger;
this.groundDetail = this.router.getCurrentNavigation().extras.state;
}
ngOnInit() {
}
onBack() {
this.navctr.back();
}
}