diff --git a/src/app/accounts/addcredit/addcredit-routing.module.ts b/src/app/accounts/addcredit/addcredit-routing.module.ts new file mode 100644 index 0000000..273407e --- /dev/null +++ b/src/app/accounts/addcredit/addcredit-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { AddcreditPage } from './addcredit.page'; + +const routes: Routes = [ + { + path: '', + component: AddcreditPage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class AddcreditPageRoutingModule {} diff --git a/src/app/accounts/addcredit/addcredit.module.ts b/src/app/accounts/addcredit/addcredit.module.ts new file mode 100644 index 0000000..3ba996c --- /dev/null +++ b/src/app/accounts/addcredit/addcredit.module.ts @@ -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 { AddcreditPageRoutingModule } from './addcredit-routing.module'; + +import { AddcreditPage } from './addcredit.page'; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + AddcreditPageRoutingModule + ], + declarations: [AddcreditPage] +}) +export class AddcreditPageModule {} diff --git a/src/app/accounts/addcredit/addcredit.page.html b/src/app/accounts/addcredit/addcredit.page.html new file mode 100644 index 0000000..5a141bb --- /dev/null +++ b/src/app/accounts/addcredit/addcredit.page.html @@ -0,0 +1,24 @@ + + + + + + + + + + + + + Add Credit + + + + + addcredit + + + + + + diff --git a/src/app/accounts/addcredit/addcredit.page.scss b/src/app/accounts/addcredit/addcredit.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/accounts/addcredit/addcredit.page.spec.ts b/src/app/accounts/addcredit/addcredit.page.spec.ts new file mode 100644 index 0000000..6716039 --- /dev/null +++ b/src/app/accounts/addcredit/addcredit.page.spec.ts @@ -0,0 +1,24 @@ +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { AddcreditPage } from './addcredit.page'; + +describe('AddcreditPage', () => { + let component: AddcreditPage; + let fixture: ComponentFixture; + + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [ AddcreditPage ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(AddcreditPage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/accounts/addcredit/addcredit.page.ts b/src/app/accounts/addcredit/addcredit.page.ts new file mode 100644 index 0000000..38a3a18 --- /dev/null +++ b/src/app/accounts/addcredit/addcredit.page.ts @@ -0,0 +1,18 @@ +import { Component, OnInit } from '@angular/core'; +import {NavController} from "@ionic/angular"; + +@Component({ + selector: 'app-addcredit', + templateUrl: './addcredit.page.html', + styleUrls: ['./addcredit.page.scss'], +}) +export class AddcreditPage implements OnInit { + + constructor(private navctr: NavController) { } + + ngOnInit() { + } + onBack() { + this.navctr.back(); + } +} diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index a284fb0..90379fa 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -242,6 +242,10 @@ const routes: Routes = [ path: 'locationmaps', loadChildren: () => import('./accounts/locationmaps/locationmaps.module').then(m => m.LocationmapsPageModule) }, + { + path: 'addcredit', + loadChildren: () => import('./accounts/addcredit/addcredit.module').then(m => m.AddcreditPageModule) + }, ]; @NgModule({ diff --git a/src/app/components/fastreward/fastreward.component.html b/src/app/components/fastreward/fastreward.component.html index fbfff65..efda27a 100644 --- a/src/app/components/fastreward/fastreward.component.html +++ b/src/app/components/fastreward/fastreward.component.html @@ -4,7 +4,7 @@ - + diff --git a/src/app/components/fastreward/fastreward.component.scss b/src/app/components/fastreward/fastreward.component.scss index 90d7511..ac8f075 100644 --- a/src/app/components/fastreward/fastreward.component.scss +++ b/src/app/components/fastreward/fastreward.component.scss @@ -23,7 +23,8 @@ ion-card{ } .title{ font-weight: bolder; - margin-left: 10px; + margin-left: 20px; + font-size: 28px; } .list_img { height: auto; diff --git a/src/app/pages/new-card/new-card.page.html b/src/app/pages/new-card/new-card.page.html index 20929ea..c33e8a5 100644 --- a/src/app/pages/new-card/new-card.page.html +++ b/src/app/pages/new-card/new-card.page.html @@ -1,11 +1,3 @@ - diff --git a/src/app/pages/transaction/transaction.page.html b/src/app/pages/transaction/transaction.page.html index da10f71..8047862 100644 --- a/src/app/pages/transaction/transaction.page.html +++ b/src/app/pages/transaction/transaction.page.html @@ -47,7 +47,6 @@
-
@@ -57,7 +56,7 @@ - + Add Credit diff --git a/src/app/pages/transaction/transaction.page.scss b/src/app/pages/transaction/transaction.page.scss index 45397b6..f6246ea 100644 --- a/src/app/pages/transaction/transaction.page.scss +++ b/src/app/pages/transaction/transaction.page.scss @@ -30,6 +30,12 @@ ion-content { padding: 2px; border-radius: 15px; } + .men_image{ + // height: 80px; + // width: auto; + border-radius: 100%; + margin-left: 10px; + } //.men_image{ // height: 200px; // width: auto; diff --git a/src/app/pages/transaction/transaction.page.ts b/src/app/pages/transaction/transaction.page.ts index f6d8d5b..bbbcbd4 100644 --- a/src/app/pages/transaction/transaction.page.ts +++ b/src/app/pages/transaction/transaction.page.ts @@ -32,6 +32,9 @@ export class TransactionPage implements OnInit { this.getPaymentHxData(); } + addCredit(item){ + this.router.navigate(['addcredit']); + } onReceipt(item) { this.router.navigate(['receipt']); }