add credit page
This commit is contained in:
@@ -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 {}
|
||||
@@ -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 {}
|
||||
@@ -0,0 +1,24 @@
|
||||
<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-buttons slot="end">
|
||||
<!-- <ion-button>-->
|
||||
<!-- <ion-icon name="ellipsis-horizontal-circle-outline"></ion-icon>-->
|
||||
<!-- </ion-button>-->
|
||||
</ion-buttons>
|
||||
<ion-title>Add Credit</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>addcredit</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 { AddcreditPage } from './addcredit.page';
|
||||
|
||||
describe('AddcreditPage', () => {
|
||||
let component: AddcreditPage;
|
||||
let fixture: ComponentFixture<AddcreditPage>;
|
||||
|
||||
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();
|
||||
});
|
||||
});
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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({
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col size="2" class="left-col_pic">
|
||||
|
||||
<!-- <ion-col class="title">Reward a Kid</ion-col>-->
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<ion-list [inset]="true">
|
||||
|
||||
@@ -23,7 +23,8 @@ ion-card{
|
||||
}
|
||||
.title{
|
||||
font-weight: bolder;
|
||||
margin-left: 10px;
|
||||
margin-left: 20px;
|
||||
font-size: 28px;
|
||||
}
|
||||
.list_img {
|
||||
height: auto;
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
<!--
|
||||
Authors : initappz (Rahul Jograna)
|
||||
Website : https://initappz.com/
|
||||
App Name : E-Learning App Template
|
||||
This App Template Source code is licensed as per the
|
||||
terms found in the Website https://initappz.com/license
|
||||
Copyright and Good Faith Purchasers © 2021-present initappz.
|
||||
-->
|
||||
<ion-header mode="ios" class="ion-no-border">
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start" (click)="onBack()">
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
<!-- </div>-->
|
||||
<div class="video wallets" *ngFor="let item of walletData">
|
||||
<div class="left">
|
||||
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url(https://www.wrenchboard.com/assets/images/apps/currency/'+item.code.toLowerCase()+'.svg)'"></div>
|
||||
</div>
|
||||
<div class="text">
|
||||
@@ -57,7 +56,7 @@
|
||||
<ion-row>
|
||||
<ion-col></ion-col>
|
||||
<ion-col>
|
||||
<!-- <ion-button size="small" expand="block">Add Credit</ion-button>-->
|
||||
<ion-button size="small" expand="block" (click)="addCredit(item)">Add Credit</ion-button>
|
||||
</ion-col>
|
||||
|
||||
<ion-col>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -32,6 +32,9 @@ export class TransactionPage implements OnInit {
|
||||
this.getPaymentHxData();
|
||||
}
|
||||
|
||||
addCredit(item){
|
||||
this.router.navigate(['addcredit']);
|
||||
}
|
||||
onReceipt(item) {
|
||||
this.router.navigate(['receipt']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user