fix start page
This commit is contained in:
@@ -17,8 +17,27 @@
|
||||
<div class="boxed_contents">
|
||||
<div *ngIf="family_action=='FAMILY_ACTION_SEND_REWARD';">
|
||||
<div class="ion-padding">
|
||||
<div style="font-weight: bolder; color: #8b198e; font-size: 16px;">Your Wallet:</div>
|
||||
<div class="lesson">
|
||||
<div class="video" *ngFor="let item of walletData;">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url('+currency_url+'/'+item.code.toLowerCase()+'.svg'+etag+')'"></div>
|
||||
|
||||
<div class="text">
|
||||
<ion-label class="bold_text name_bg_text">{{item.description}}</ion-label>
|
||||
<!-- <ion-label class="grey_text"> {{item.last_login}}</ion-label>-->
|
||||
<ion-label class="extra_text"><span class="title">Balance {{item.amount*0.01 | number : '1.2-2'}}</span></ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="right">-->
|
||||
<!-- <ion-icon name="chevron-forward-outline" color="medium"></ion-icon>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="font-weight: bolder; color: #8b198e; font-size: 16px; margin-top: 10px;">Select kid to send reward to:</div>
|
||||
<div class="lesson">
|
||||
<div class="video" *ngFor="let item of familyData" (click)="familyMemebr(item)">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url('+session_image_server+'/'+curr_session+'/family/'+item.family_uid+'?'+etag+')'"></div>
|
||||
|
||||
@@ -4,6 +4,7 @@ import {Router} from "@angular/router";
|
||||
import { WrenchService } from 'src/app/services/wrench.service';
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
import {FamilysuggestPendingService} from "../../store/familysuggest-pending.service";
|
||||
import {UserWalletService} from "../../store/user-wallet.service";
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -23,12 +24,15 @@ export class FamilyPage implements OnInit {
|
||||
currFamState:any;
|
||||
family_action:string="DEFAULT_FAMILY_PAGE";
|
||||
page_title:string = 'Family Account';
|
||||
currency_url:string="https://www.wrenchboard.com/assets/images/apps/currency/";
|
||||
|
||||
walletData:[];
|
||||
constructor(
|
||||
private navctr: NavController,
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService,
|
||||
public userWalletService: UserWalletService,
|
||||
public familysuggestPendingService: FamilysuggestPendingService
|
||||
) {
|
||||
this.etag = '' + Date.now();
|
||||
@@ -37,6 +41,8 @@ export class FamilyPage implements OnInit {
|
||||
});
|
||||
this.page_title = 'Family Account';
|
||||
this.currFamState = this.router.getCurrentNavigation().extras.state;
|
||||
this.walletData = this.userWalletService.walletData;
|
||||
|
||||
if ( this.currFamState != undefined && this.currFamState != null){
|
||||
this.family_action = this.currFamState.family_action;
|
||||
this.page_title= "Send Reward";
|
||||
|
||||
Reference in New Issue
Block a user