suggest pages
This commit is contained in:
@@ -1,4 +1,25 @@
|
||||
|
||||
<div *ngIf = "suggested_count == 0; else elseFulltag">
|
||||
<ion-grid class="fam1">
|
||||
<ion-row>
|
||||
<ion-col class="famleft"></ion-col>
|
||||
<ion-col>
|
||||
<ion-button shape="round" (click)="suggestNewTasks()">Suggested Tasks</ion-button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
</div>
|
||||
|
||||
<ng-template #elseFulltag>
|
||||
|
||||
<div class="flex">
|
||||
<ion-label class="bold_text">My Suggested Task(s)</ion-label>
|
||||
<!-- <ion-label class="color_text" (click)="allSuggest()"> > </ion-label>-->
|
||||
</div>
|
||||
|
||||
<div class="lesson">
|
||||
|
||||
|
||||
<div class="video" *ngFor="let item of familySuggestData" (click)="getSuggestedDetails(item)">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url(https://www.wrenchboard.com/assets/images/apps/jobs/'+item.banner+''"></div>
|
||||
@@ -12,5 +33,6 @@
|
||||
<ion-icon name="chevron-forward-outline"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
|
||||
@@ -0,0 +1,398 @@
|
||||
|
||||
ion-content {
|
||||
.back_image {
|
||||
width: 100%;
|
||||
height: 230px;
|
||||
|
||||
.back {
|
||||
font-size: 25px;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.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';
|
||||
}
|
||||
}
|
||||
|
||||
.fam1{
|
||||
margin:10px 0px 10px 0px;
|
||||
background-color: aliceblue;
|
||||
min-height: 100px;
|
||||
.famleft{
|
||||
background-image: url("https://www.wrenchboard.com/assets/images/apps/family/kids-waiting.jpg");
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
width:100%;
|
||||
height: 130px;
|
||||
border-radius: 10px 0px 0px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ export class SuggestedlistComponent implements OnInit {
|
||||
|
||||
familySuggestResult:any;
|
||||
familySuggestData:any;
|
||||
suggested_count:number = 0;
|
||||
getFamilySuggestList(){
|
||||
this.usrData = {
|
||||
action:13010,
|
||||
@@ -42,6 +43,9 @@ export class SuggestedlistComponent implements OnInit {
|
||||
this.familySuggestResult = familySuggestResult;
|
||||
console.log("familySuggestResult RETURN->", this.familySuggestResult);
|
||||
this.familySuggestData = this.familySuggestResult.result_list;
|
||||
//debugger;
|
||||
this.suggested_count = this.familySuggestData.length;
|
||||
console.log("*** this.suggested_count ==== ",this.suggested_count)
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -52,4 +56,11 @@ export class SuggestedlistComponent implements OnInit {
|
||||
};
|
||||
this.router.navigate(['suggestdetails'],{state: stateParam});
|
||||
}
|
||||
|
||||
allSuggest(){
|
||||
|
||||
}
|
||||
suggestNewTasks(){
|
||||
this.router.navigate(['tabs/suggest']);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,18 +1,39 @@
|
||||
<ion-header class="ion-no-border">
|
||||
<ion-toolbar>
|
||||
<div class="heading">
|
||||
<div class="left">
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url('+profilePicture+')'"></div>
|
||||
<div>
|
||||
<ion-label class="grey_text">Hello</ion-label>
|
||||
<ion-label class="bold_text">{{firstname}}</ion-label>
|
||||
<div *ngIf = "accountType == 'FAMILY';">
|
||||
<ion-toolbar>
|
||||
<div class="heading">
|
||||
<div class="left">
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url('+profilePicture+')'"></div>
|
||||
<div>
|
||||
<ion-label class="grey_text">Hello</ion-label>
|
||||
<ion-label class="bold_text">{{firstname}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="right">-->
|
||||
<!-- <ion-icon name="notifications-outline" (click)="onNotification()"></ion-icon>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</ion-toolbar>
|
||||
</div>
|
||||
|
||||
<div *ngIf = "accountType == 'FULL';">
|
||||
<ion-toolbar>
|
||||
<div class="heading">
|
||||
<div class="left">
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url('+profilePicture+')'"></div>
|
||||
<div>
|
||||
<ion-label class="grey_text">Hello</ion-label>
|
||||
<ion-label class="bold_text">{{firstname}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="notifications-outline" (click)="onNotification()"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="notifications-outline" (click)="onNotification()"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
</ion-toolbar>
|
||||
</ion-toolbar>
|
||||
</div>
|
||||
|
||||
|
||||
</ion-header>
|
||||
|
||||
<ion-content class="ion-padding">
|
||||
@@ -24,17 +45,7 @@
|
||||
<div class="boxed_contents">
|
||||
|
||||
<div *ngIf = "accountType == 'FAMILY'; else elseFulltag">
|
||||
|
||||
<ion-grid class="fam1">
|
||||
<ion-row>
|
||||
<ion-col class="famleft"></ion-col>
|
||||
<ion-col>
|
||||
My Suggested Tasks
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
|
||||
<div class="lesson">
|
||||
<!-- <div class="lesson">-->
|
||||
<app-suggestedlist></app-suggestedlist>
|
||||
|
||||
<!-- <div class="video" *ngFor="let item of familySuggestData">-->
|
||||
@@ -50,7 +61,7 @@
|
||||
<!-- <ion-icon name="chevron-forward-outline"></ion-icon>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
<!-- </ion-card>-->
|
||||
<div class="ion-padding">
|
||||
<div class="lesson">
|
||||
<div class="flex">
|
||||
<ion-label class="bold">Wallet(s)</ion-label>
|
||||
<!-- <ion-label class="color">.</ion-label>-->
|
||||
</div>
|
||||
<!-- <div class="flex">-->
|
||||
<!-- <ion-label class="bold">Wallet(s)</ion-label>-->
|
||||
<!-- <!– <ion-label class="color">.</ion-label>–>-->
|
||||
<!-- </div>-->
|
||||
<div class="video wallets" *ngFor="let item of walletData" color="secondary">
|
||||
<div class="left">
|
||||
<!-- <div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/money-cycle.svg)'"></div>-->
|
||||
|
||||
Reference in New Issue
Block a user