Add credit
This commit is contained in:
@@ -15,10 +15,368 @@
|
||||
</ion-header>
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>addcredit</ion-title>
|
||||
<ion-title>{{currency_description}} Wallet</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url(https://www.wrenchboard.com/assets/images/apps/redeem.jpg)'">
|
||||
<div class="ion-padding">
|
||||
<!-- <ion-icon slot="start" name="arrow-back" class="back" (click)="onBack()"></ion-icon>-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ion-padding">
|
||||
<div class="boxed_contents">
|
||||
<!-- <div class="flex">-->
|
||||
<!-- <ion-label class="bold_text">{{currency_description}} Wallet</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<ion-label class="color_text">Balance: {{curr_balance| number : '1.2-2'}} {{currency_description}}</ion-label>
|
||||
|
||||
|
||||
<ion-segment class="common_segment" [(ngModel)]="tabs">
|
||||
<ion-segment-button value="bank_redeem">
|
||||
<ion-label>To Bank</ion-label>
|
||||
</ion-segment-button>
|
||||
<!-- <ion-segment-button value="lesson">-->
|
||||
<!-- <ion-label>My Banks</ion-label>-->
|
||||
<!-- </ion-segment-button>-->
|
||||
<ion-segment-button value="reports">
|
||||
<ion-label>Reports</ion-label>
|
||||
</ion-segment-button>
|
||||
</ion-segment>
|
||||
|
||||
<div *ngIf="tabs =='bank_redeem'" class="about">
|
||||
<div *ngIf="curr_page =='redeem_start'" >
|
||||
<ion-card>
|
||||
<ion-card-header>
|
||||
<ion-card-title>Redeem from {{currency_code}} Wallet</ion-card-title>
|
||||
<!-- <ion-card-subtitle>Redeem from {{currency_code}} Wallet</ion-card-subtitle>-->
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
|
||||
<ion-grid class="send-grid">
|
||||
<ion-row>
|
||||
<ion-col class="intr">Amount({{currency_code}})</ion-col>
|
||||
<ion-col>
|
||||
<ion-input (ionChange)="refreshFee()" type="number" label="Amount(ggg)" placeholder="Enter Amount" [(ngModel)]='amount'></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col class="intr">Fee</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Fee" type="number" placeholder="0" [(ngModel)]='fee_display' [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col class="intr">Total</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Total" type="number" placeholder="0" [(ngModel)]='total_display' [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>Recipient</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<ion-select (ionChange)="checkSelectVal()" placeholder="Select Recipient" [(ngModel)]='recipient' size="block">
|
||||
<!-- <ion-select-option value="" >Select Recipient</ion-select-option>-->
|
||||
<ion-select-option value="{{item.recipient_uid}}" *ngFor="let item of myRecipientsData">{{item.recipient}}</ion-select-option>
|
||||
<!-- <ion-select-option value="ADD_NEW_RECIP" >Add Recipient</ion-select-option>-->
|
||||
</ion-select>
|
||||
<!-- <ion-label>{{recipient_name}}</ion-label>-->
|
||||
</ion-col>
|
||||
<!-- <ion-col size="3" style="text-align: right;">-->
|
||||
<!-- <ion-button style="padding: 0px; font-size: 90%; font-weight: bolder;" (click)="addNewBank()">-->
|
||||
<!-- <ion-icon slot="icon-only" name="add"></ion-icon>-->
|
||||
<!-- </ion-button>-->
|
||||
<!-- </ion-col>-->
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
{{recipient_name}}
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<ion-button expand="block" shape="round" color="secondary" (click)="contineRedeem()">Continue</ion-button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
</ion-grid>
|
||||
|
||||
|
||||
<!-- <ion-list>-->
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label>Amount({{currency_code}})</ion-label>-->
|
||||
<!-- <ion-input (ionChange)="refreshFee()" type="number" label="Amount(ggg)" placeholder="Enter Amount" [(ngModel)]='amount'></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label >Fee</ion-label>-->
|
||||
<!-- <ion-input label="Fee" type="number" placeholder="0" [(ngModel)]='fee_display' [readonly]="true"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label>Total</ion-label>-->
|
||||
<!-- <ion-input label="Total" type="number" placeholder="0" [(ngModel)]='total_display' [readonly]="true"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!--<!– <ion-item>–>-->
|
||||
<!--<!– <ion-select-option value="" >Select Recipient</ion-select-option>–>-->
|
||||
<!--<!–<!– <ion-select placeholder="Select Recipient" [(ngModel)]='recipient' size="block">–>–>-->
|
||||
<!--<!–<!–<!– <ion-select-option value="" >Select Recipient</ion-select-option>–>–>–>-->
|
||||
<!--<!–<!– <ion-select-option value="{{item.recipient_uid}}" *ngFor="let item of myRecipientsData">{{item.recipient}}</ion-select-option>–>–>-->
|
||||
<!--<!–<!– </ion-select>–>–>-->
|
||||
<!--<!–<!– <ion-label>{{recipient_name}}</ion-label>–>–>-->
|
||||
<!--<!– </ion-item>–>-->
|
||||
|
||||
<!-- <div>-->
|
||||
<!-- <ion-select placeholder="Select Recipient" [(ngModel)]='recipient' size="block">-->
|
||||
<!-- <!– <ion-select-option value="" >Select Recipient</ion-select-option>–>-->
|
||||
<!-- <ion-select-option value="{{item.recipient_uid}}" *ngFor="let item of myRecipientsData">{{item.recipient}}</ion-select-option>-->
|
||||
<!-- </ion-select>-->
|
||||
<!-- <ion-label>{{recipient_name}}</ion-label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </ion-list>-->
|
||||
|
||||
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
</div>
|
||||
|
||||
<div *ngIf="curr_page =='redeem_confirm'" >
|
||||
<ion-card>
|
||||
<ion-card-header>
|
||||
<ion-card-title>Confirm Wallet Withdraw</ion-card-title>
|
||||
<!-- <ion-card-subtitle>Redeem from {{currency_code}} Wallet</ion-card-subtitle>-->
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
|
||||
<!-- <ion-list>-->
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label>Amount({{currency_code}})</ion-label>-->
|
||||
<!-- <ion-input label="Fee" type="number" placeholder="0" value="{{amount}}" [readonly]="true"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label >Fee</ion-label>-->
|
||||
<!-- <ion-input label="Fee" type="number" placeholder="0" [(ngModel)]='fee' [readonly]="true"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label>Total</ion-label>-->
|
||||
<!-- <ion-input label="Total" type="number" placeholder="0" [(ngModel)]='total' [readonly]="true"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label>To:</ion-label>-->
|
||||
<!-- <ion-label>{{recipient_name}}</ion-label>-->
|
||||
<!-- </ion-item>-->
|
||||
<!-- </ion-list>-->
|
||||
|
||||
<!-- <ion-button expand="block" color="secondary" (click)="confirmRedeem()">Confirm</ion-button>-->
|
||||
|
||||
<ion-grid class="send-grid">
|
||||
<ion-row>
|
||||
<ion-col class="intr">Amount({{currency_code}})</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Fee" type="number" placeholder="0" value="{{amount}}" [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col class="intr">Fee</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Fee" type="number" placeholder="0" [(ngModel)]='fee_display' [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col class="intr">Total</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Total" type="number" placeholder="0" [(ngModel)]='total_display' [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>Recipient</ion-col>
|
||||
</ion-row>
|
||||
<!-- <ion-row>-->
|
||||
<!-- <ion-col>-->
|
||||
<!-- <ion-select placeholder="Select Recipient" [(ngModel)]='recipient' size="block">-->
|
||||
<!-- <!– <ion-select-option value="" >Select Recipient</ion-select-option>–>-->
|
||||
<!-- <ion-select-option value="{{item.recipient_uid}}" *ngFor="let item of myRecipientsData">{{item.recipient}}</ion-select-option>-->
|
||||
<!-- </ion-select>-->
|
||||
<!-- <!– <ion-label>{{recipient_name}}</ion-label>–>-->
|
||||
<!-- </ion-col>-->
|
||||
<!-- </ion-row>-->
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
{{recipient_name}}
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<ion-button expand="block"
|
||||
shape="round"
|
||||
color="secondary"
|
||||
(click)="confirmRedeem()"
|
||||
[disabled]="isDisabled"
|
||||
>Confirm</ion-button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
</ion-grid>
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div *ngIf="curr_page =='redeem_result'" >
|
||||
<ion-card>
|
||||
<ion-card-header>
|
||||
<ion-card-title>Withdraw Result</ion-card-title>
|
||||
<!-- <ion-card-subtitle>Redeem from {{currency_code}} Wallet</ion-card-subtitle>-->
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
<ion-grid class="send-grid">
|
||||
<ion-row>
|
||||
<ion-col class="intr">Amount({{currency_code}})</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Fee" type="number" placeholder="0" value="{{amount}}" [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col class="intr">Fee</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Fee" type="number" placeholder="0" [(ngModel)]='fee_display' [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col class="intr">Total</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Total" type="number" placeholder="0" [(ngModel)]='total_display' [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>Recipient</ion-col>
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
{{recipient_name}}
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
<ion-col class="intr">Confirmation</ion-col>
|
||||
<ion-col>
|
||||
{{confirmation}}
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
Estimated delivery time is 2 to 4 Hours.
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
</ion-grid>
|
||||
|
||||
|
||||
<!-- <ion-list>-->
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label>Amount({{currency_code}})</ion-label>-->
|
||||
<!-- <ion-input label="Amount" type="number" placeholder="0" value="{{amount| number : '1.2-2'}}" [readonly]="true"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label >Fee</ion-label>-->
|
||||
<!-- <ion-input label="Fee" type="number" placeholder="0" [(ngModel)]='fee' [readonly]="true"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label>Total</ion-label>-->
|
||||
<!-- <ion-input label="Total" type="number" placeholder="0" [(ngModel)]='total' [readonly]="true"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label>Recipient</ion-label>-->
|
||||
<!-- <ion-label>{{recipient_name}}</ion-label>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-label>Confirmation</ion-label>-->
|
||||
<!-- <ion-label>{{confirmation}}</ion-label>-->
|
||||
<!-- </ion-item>-->
|
||||
<!-- </ion-list>-->
|
||||
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div *ngIf="tabs =='reports'" class="lesson">
|
||||
|
||||
<div class="video" *ngFor="let item of paymentData">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/money-cycle.svg)'"></div>
|
||||
|
||||
<div class="text">
|
||||
<!-- <ion-label class="bold_text">Why Using Figma ?</ion-label>-->
|
||||
<!-- <ion-label class="grey_text">10 mins</ion-label>-->
|
||||
|
||||
<div class="bold_text" [innerHTML]="item.recipient"></div>
|
||||
<ion-label class="grey_text">{{item.confirmation}}- {{item.amount}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="total">-->
|
||||
<!-- <div class="star-rate">-->
|
||||
<!-- <ion-icon name="star-half-outline" color="warning"></ion-icon>-->
|
||||
<!-- <ion-label class="bold">4.8 (5456 Reviews)</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- <ion-label class="color">See all</ion-label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</ion-content>
|
||||
<!--<ion-content>-->
|
||||
<!--<div>-->
|
||||
<!-- <div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/card.png)'"></div>-->
|
||||
|
||||
<!-- <ion-item lines="none">-->
|
||||
<!-- <ion-input type="text" placeholder="Card Holder"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item lines="none">-->
|
||||
<!-- <ion-input type="number" placeholder="Card Number"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item lines="none">-->
|
||||
<!-- <ion-input type="number" placeholder="Expiry Date"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <ion-item lines="none">-->
|
||||
<!-- <ion-input type="number" placeholder="CVV"></ion-input>-->
|
||||
<!-- </ion-item>-->
|
||||
<!--</div>-->
|
||||
|
||||
|
||||
|
||||
<!--</ion-content>-->
|
||||
|
||||
@@ -0,0 +1,407 @@
|
||||
|
||||
ion-content {
|
||||
ion-card{
|
||||
margin: 10px 0px 10px 0px;
|
||||
}
|
||||
ion-card-title{
|
||||
font-size: 18px;
|
||||
}
|
||||
.back_image {
|
||||
width: 100%;
|
||||
height: 110px;
|
||||
|
||||
.back {
|
||||
font-size: 25px;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.send-grid{
|
||||
background-color: #eff2f4;
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: bolder;
|
||||
ion-select, ion-input{
|
||||
border-radius: 10px;
|
||||
border-color: #383a3e;
|
||||
background-color: white;
|
||||
text-align: right;
|
||||
}
|
||||
.intr{
|
||||
text-align: right;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
ion-icon {
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 10px;
|
||||
|
||||
.bg_text {
|
||||
color: var(--ion-color-primary);
|
||||
background: #dfe1f3;
|
||||
font-size: 12px;
|
||||
padding: 2px 5px;
|
||||
border-radius: 5px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.rate {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.review {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.color_text {
|
||||
margin-top: 10px;
|
||||
font-size: 22px;
|
||||
font-family: 'semi-bold';
|
||||
color: var(--ion-color-primary);
|
||||
}
|
||||
|
||||
.items {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 20px;
|
||||
border-bottom: 1px solid lightgrey;
|
||||
padding-bottom: 10px;
|
||||
|
||||
.stud {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
ion-icon {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
ion-label {
|
||||
color: grey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.about {
|
||||
margin-top: 10px;
|
||||
|
||||
.head_text {
|
||||
font-size: 18px;
|
||||
font-family: 'semi-bold';
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.mentor {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
|
||||
.left {
|
||||
display: flex;
|
||||
|
||||
.men_image {
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.bold {
|
||||
font-family: 'semi-bold';
|
||||
}
|
||||
|
||||
.grey {
|
||||
color: grey;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
ion-icon {
|
||||
font-size: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
color: grey;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.lesson {
|
||||
margin-top: 20px;
|
||||
|
||||
.bold {
|
||||
font-family: 'semi-bold';
|
||||
}
|
||||
|
||||
.color {
|
||||
color: var(--ion-color-primary);
|
||||
}
|
||||
|
||||
.grey {
|
||||
color: grey;
|
||||
}
|
||||
|
||||
.sec {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.video {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: white;
|
||||
padding: 15px;
|
||||
box-shadow: 0px 0px 20px 1px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 10px;
|
||||
margin-top: 20px;
|
||||
|
||||
.left {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.men_image {
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.text {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.bold_text {
|
||||
font-size: 16px;
|
||||
font-family: 'bold';
|
||||
}
|
||||
|
||||
.grey_text {
|
||||
font-size: 14px;
|
||||
color: grey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.review_tab {
|
||||
margin-top: 20px;
|
||||
|
||||
.total {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.star-rate {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.bold {
|
||||
font-size: 17px;
|
||||
font-family: 'semi-bold';
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.color {
|
||||
color: var(--ion-color-primary);
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.story-item {
|
||||
overflow: scroll;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-top: 20px;
|
||||
|
||||
.menu {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
.item {
|
||||
padding: 5px;
|
||||
margin: 5px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
|
||||
ion-thumbnail {
|
||||
border-radius: 15px;
|
||||
width: max-content;
|
||||
height: 60px;
|
||||
width: 60px;
|
||||
--border-radius: 50%;
|
||||
}
|
||||
|
||||
ion-label {
|
||||
font-size: 14px;
|
||||
font-family: "medium";
|
||||
color: var(--ion-color-medium);
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
|
||||
.select {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border: 1px solid var(--ion-color-primary);
|
||||
border-radius: 20px;
|
||||
padding: 2px 15px;
|
||||
margin-right: 10px;
|
||||
|
||||
.rate_num {
|
||||
margin-left: 5px;
|
||||
color: var(--ion-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.show {
|
||||
background-color: var(--ion-color-primary);
|
||||
}
|
||||
|
||||
.white {
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.choice {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.reviw_list {
|
||||
margin-top: 25px;
|
||||
|
||||
.profile {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 10px;
|
||||
|
||||
.left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.men_image {
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
|
||||
.bold {
|
||||
font-family: 'semi-bold';
|
||||
}
|
||||
|
||||
.grey {
|
||||
color: grey;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.select {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border: 1px solid var(--ion-color-primary);
|
||||
border-radius: 20px;
|
||||
padding: 2px 15px;
|
||||
margin-right: 10px;
|
||||
|
||||
.rate_num {
|
||||
margin-left: 5px;
|
||||
color: var(--ion-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
ion-icon {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.like {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 10px;
|
||||
|
||||
.heart {
|
||||
font-size: 25px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.count {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.time {
|
||||
color: grey;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.bold_text {
|
||||
font-size: 20px;
|
||||
font-family: 'bold';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ion-footer {
|
||||
--background: white;
|
||||
|
||||
ion-toolbar {
|
||||
--border-width: 0px;
|
||||
padding: 10px;
|
||||
align-items: center;
|
||||
|
||||
ion-icon {
|
||||
color: white;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.button {
|
||||
background-color: var(--ion-color-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
border-radius: 30px;
|
||||
padding: 12px 0;
|
||||
|
||||
.text {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {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";
|
||||
import {UserWalletService} from "../../store/user-wallet.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-addcredit',
|
||||
@@ -7,12 +12,66 @@ import {NavController} from "@ionic/angular";
|
||||
styleUrls: ['./addcredit.page.scss'],
|
||||
})
|
||||
export class AddcreditPage implements OnInit {
|
||||
walletData:any;
|
||||
tabs = 'bank_redeem';
|
||||
curr_balance:number =0;
|
||||
currency_description : string='';
|
||||
currency_code:string='';
|
||||
wallet_uid:string='';
|
||||
isDisabled:boolean=false;
|
||||
curr_page:string= 'redeem_start';
|
||||
|
||||
constructor(private navctr: NavController) { }
|
||||
constructor(private navctr: NavController,
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService,
|
||||
public blogDataService: BlogDataService,
|
||||
public userWalletService: UserWalletService) {
|
||||
this.walletData = this.router.getCurrentNavigation().extras.state;
|
||||
if ( this.walletData != undefined ){
|
||||
this.curr_balance = this.walletData.amount*0.01;
|
||||
this.currency_code = this.walletData.code;
|
||||
this.currency_description = this.walletData.description;
|
||||
this.wallet_uid= this.walletData.wallet_uid;
|
||||
}
|
||||
else{
|
||||
this.onBack();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
onBack() {
|
||||
this.navctr.back();
|
||||
}
|
||||
|
||||
usrData: {
|
||||
action:number, member_id: number, uid: string, sessionid: string, limit:20, page:1,offset: 0
|
||||
};
|
||||
|
||||
usersCardsTotalData:any;
|
||||
usersCardsData: [];
|
||||
getUsersCardsList(){
|
||||
this.usrData =
|
||||
{
|
||||
action:11055,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
limit:20, page:1,offset: 0
|
||||
};
|
||||
|
||||
this.wrenchService.getusersCardList(this.usrData).subscribe(
|
||||
usersCardsTotalData => {
|
||||
this.usersCardsTotalData = usersCardsTotalData;
|
||||
console.log("usersCardsTotalData TOTAL RETURN->", this.usersCardsTotalData);
|
||||
this.usersCardsData = this.usersCardsTotalData.result_list;
|
||||
// debugger;
|
||||
console.log("usersCardsData RETURN DATA->", this.usersCardsData);
|
||||
//this.total_family = this.familyData.length;
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,40 +1,56 @@
|
||||
<ion-grid class="fast1">
|
||||
<ion-row>
|
||||
<ion-col class="title">Reward a Kid</ion-col>
|
||||
</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">
|
||||
<ion-item [button]="true" *ngFor="let item of familyData" (click)="familyMemebr(item)">
|
||||
<ion-note slot="start">
|
||||
<img class="list_img" alt="WrenchBoard" src="{{session_image_server}}}/{{curr_session}}/family/{{item.family_uid}}" />
|
||||
</ion-note>
|
||||
<ion-label>{{item.firstname}} ({{item.age}})</ion-label>
|
||||
</ion-item>
|
||||
<!-- <ion-item [button]="true">-->
|
||||
<!-- <ion-icon color="tertiary" slot="start" name="list-circle" size="large"></ion-icon>-->
|
||||
<!-- <ion-label>Shopping</ion-label>-->
|
||||
<!-- <ion-note slot="end">15</ion-note>-->
|
||||
<!-- </ion-item>-->
|
||||
<!-- <ion-item [button]="true">-->
|
||||
<!-- <ion-icon color="success" slot="start" name="list-circle" size="large"></ion-icon>-->
|
||||
<!-- <ion-label>Cleaning</ion-label>-->
|
||||
<!-- <ion-note slot="end">3</ion-note>-->
|
||||
<!-- </ion-item>-->
|
||||
<ion-item [button]="true" (click)="familyAcc()">
|
||||
<!-- <ion-icon color="warning" slot="start" name="list-circle" size="large"></ion-icon>-->
|
||||
<ion-label>Family Acounts</ion-label>
|
||||
<ion-note slot="end"></ion-note>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
<div *ngIf = "total_family == 0;">
|
||||
</div>
|
||||
<div *ngIf = "total_family > 0;">
|
||||
<ion-grid class="fast1">
|
||||
<ion-row>
|
||||
<ion-col class="title">Reward a Kid</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col size="2" class="left-col_pic">
|
||||
<!-- <ion-col class="title">Reward a Kid</ion-col>-->
|
||||
<img alt="" src="{{session_image_server}}}/{{curr_session}}/reward/{{sessionDataProviderService.member_uid}}" />
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<ion-list [inset]="true">
|
||||
<ion-item [button]="true" *ngFor="let item of familyData" (click)="familyMemebr(item)">
|
||||
<ion-note slot="start">
|
||||
<img class="list_img" alt="" src="{{session_image_server}}}/{{curr_session}}/family/{{item.family_uid}}" />
|
||||
</ion-note>
|
||||
<ion-label>{{item.firstname}} ({{item.age}})</ion-label>
|
||||
</ion-item>
|
||||
<!-- <ion-item [button]="true">-->
|
||||
<!-- <ion-icon color="tertiary" slot="start" name="list-circle" size="large"></ion-icon>-->
|
||||
<!-- <ion-label>Shopping</ion-label>-->
|
||||
<!-- <ion-note slot="end">15</ion-note>-->
|
||||
<!-- </ion-item>-->
|
||||
<!-- <ion-item [button]="true">-->
|
||||
<!-- <ion-icon color="success" slot="start" name="list-circle" size="large"></ion-icon>-->
|
||||
<!-- <ion-label>Cleaning</ion-label>-->
|
||||
<!-- <ion-note slot="end">3</ion-note>-->
|
||||
<!-- </ion-item>-->
|
||||
<!-- ? <ion-item>-->
|
||||
<!-- <ion-item>-->
|
||||
<!-- -->
|
||||
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<!-- </ion-item>-->
|
||||
|
||||
|
||||
<!--<!– <!– <ion-icon color="warning" slot="start" name="list-circle" size="large"></ion-icon>–>–>-->
|
||||
<!--<!– <ion-label></ion-label>–>-->
|
||||
<!--<!– <ion-note slot="end"></ion-note>–>-->
|
||||
<!-- </ion-item>-->
|
||||
</ion-list>
|
||||
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<ion-button shape="round" size="small" expand="block" (click)="familyAcc()">Family Acounts</ion-button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
</div>
|
||||
|
||||
</ion-grid>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,9 +10,14 @@ ion-card{
|
||||
}
|
||||
}
|
||||
.left-col_pic{
|
||||
background-image: url("/assets/images/reward.png");
|
||||
// background-image: url("/assets/images/reward.png");
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
margin: auto 5px auto 5px;
|
||||
img {
|
||||
border-radius: 4px;
|
||||
width: 150px;
|
||||
}
|
||||
}
|
||||
.fast1{
|
||||
ion-list{
|
||||
@@ -22,6 +27,7 @@ ion-card{
|
||||
}
|
||||
}
|
||||
.title{
|
||||
//font-family: "Lucida Console", "Courier New", monospace;
|
||||
font-weight: bolder;
|
||||
margin-left: 20px;
|
||||
font-size: 28px;
|
||||
@@ -32,7 +38,7 @@ ion-card{
|
||||
border-radius: 100%;
|
||||
}
|
||||
margin:20px 0px 0px 0px;
|
||||
height: 250px;
|
||||
//height: 250px;
|
||||
padding: 0px;
|
||||
background: aliceblue; // rgba(78, 61, 130, 0.86);
|
||||
border-radius: 20px;
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<ion-row>
|
||||
<ion-col></ion-col>
|
||||
<ion-col>
|
||||
<ion-button size="small" expand="block" (click)="addCredit(item)">Add Credit</ion-button>
|
||||
<ion-button size="small" shape="round" expand="block" (click)="addCredit(item)">Add Credit</ion-button>
|
||||
</ion-col>
|
||||
|
||||
<ion-col>
|
||||
|
||||
@@ -33,7 +33,8 @@ export class TransactionPage implements OnInit {
|
||||
}
|
||||
|
||||
addCredit(item){
|
||||
this.router.navigate(['addcredit']);
|
||||
// debugger;
|
||||
this.router.navigate(['addcredit'],{state: item});
|
||||
}
|
||||
onReceipt(item) {
|
||||
this.router.navigate(['receipt']);
|
||||
|
||||
@@ -243,8 +243,10 @@ ion-content{
|
||||
}
|
||||
.common_segment{
|
||||
background-color: #3dc2ff;
|
||||
border-radius: 20px;
|
||||
font-weight: bolder;
|
||||
ion-segment-button{
|
||||
border-radius: 20px;
|
||||
ion-label{
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
+6
-2
@@ -6,7 +6,7 @@
|
||||
<widget id="com.wrenchboard.users" version="13.1.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<title>WrenchBoard</title>
|
||||
<description></description>
|
||||
<author email="support@wrenchboard.com" href="https://www.wrenchboard.com/">WrenchBoard Team</author>
|
||||
<author email="support@wrenchboard.com" href="https://www.wrenchboard.com/"></author>
|
||||
<base href="/" />
|
||||
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
@@ -32,7 +32,11 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body style="background-image: url('https://www.wrenchboard.com/assets/images/apps/wrench-app-main.jpg');
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
">
|
||||
<app-root></app-root>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user