market detail
This commit is contained in:
@@ -64,6 +64,10 @@ ionic generate component tracking
|
||||
ionic generate page addcredit
|
||||
|
||||
|
||||
ionic generate component latest-market
|
||||
|
||||
|
||||
|
||||
|
||||
https://masteringionic.com/blog/working-with-capacitor-googlemaps-in-ionic
|
||||
ionic generate interface interfaces/location
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<div *ngIf="show_activejob == true;">
|
||||
<ion-grid>
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
</div>
|
||||
@@ -0,0 +1,6 @@
|
||||
ion-grid{
|
||||
margin: 0px;
|
||||
background-color: #3dc2ff;
|
||||
border-radius: 10px;
|
||||
min-height: 120px;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { LatestMarketComponent } from './latest-market.component';
|
||||
|
||||
describe('LatestMarketComponent', () => {
|
||||
let component: LatestMarketComponent;
|
||||
let fixture: ComponentFixture<LatestMarketComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ LatestMarketComponent ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(LatestMarketComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,25 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {MarketDataService} from "../../store/market-data.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-latest-market',
|
||||
templateUrl: './latest-market.component.html',
|
||||
styleUrls: ['./latest-market.component.scss'],
|
||||
})
|
||||
export class LatestMarketComponent implements OnInit {
|
||||
|
||||
show_activejob:boolean = false;
|
||||
|
||||
constructor( public marketDataService:MarketDataService,) { }
|
||||
jobData:[];
|
||||
ngOnInit() {
|
||||
|
||||
this.jobData= this.marketDataService.jobsData;
|
||||
// debugger;
|
||||
}
|
||||
|
||||
ionViewWillEnter(){
|
||||
this.jobData= this.marketDataService.jobsData;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -12,6 +12,7 @@ import {FamilypendingComponent} from "../../components/familypending/familypendi
|
||||
import { TrackingComponent } from "../../components/tracking/tracking.component";
|
||||
import { FastrewardComponent } from "../../components/fastreward/fastreward.component";
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import {LatestMarketComponent} from "../../components/latest-market/latest-market.component";
|
||||
|
||||
// @NgModule({
|
||||
// schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
@@ -24,7 +25,7 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
IonicModule,
|
||||
HomePageRoutingModule
|
||||
],
|
||||
declarations: [HomePage,SuggestedlistComponent,FamilypendingComponent,TrackingComponent,FastrewardComponent],
|
||||
declarations: [HomePage,SuggestedlistComponent,FamilypendingComponent,TrackingComponent,FastrewardComponent,LatestMarketComponent],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
export class HomePageModule { }
|
||||
|
||||
@@ -118,6 +118,7 @@
|
||||
</ion-buttons>
|
||||
<!-- <ion-title>{{walletDescription}}</ion-title>-->
|
||||
</ion-toolbar>
|
||||
<app-latest-market></app-latest-market>
|
||||
<app-fastreward></app-fastreward>
|
||||
<ion-card class="map-sec" *ngIf="enableTracking > 0">
|
||||
<app-tracking></app-tracking>
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
<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-title>{{jobData.title}}</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/taskbanners/'+item_banner+')'">
|
||||
<div class="ion-padding">
|
||||
<ion-icon slot="start" name="arrow-back" class="back" (click)="onBack()"></ion-icon>
|
||||
<!-- <ion-icon slot="start" name="arrow-back" class="back" (click)="onBack()"></ion-icon>-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,7 +22,7 @@
|
||||
<!-- <ion-icon slot="end" name="bookmark-outline" color="primary"></ion-icon>-->
|
||||
<!-- </div>-->
|
||||
<div class="flex">
|
||||
<ion-label class="bold_text">{{jobData.title}}</ion-label>
|
||||
<!-- <ion-label class="bold_text">{{jobData.title}}</ion-label>-->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
@@ -1,15 +1,25 @@
|
||||
<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-title>Past Due Task</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/taskbanners/'+item_banner+')'">
|
||||
<div class="ion-padding">
|
||||
<ion-icon slot="start" name="arrow-back" class="back" (click)="onBack()"></ion-icon>
|
||||
<!-- <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_red">Past Due Task</ion-label>
|
||||
<!-- <ion-label class="bold_text_red">Past Due Task</ion-label>-->
|
||||
<!-- <ion-icon slot="end" name="bookmark-outline" color="primary"></ion-icon>-->
|
||||
</div>
|
||||
<div class="flex">
|
||||
|
||||
@@ -1,15 +1,25 @@
|
||||
<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-title>In Review</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/taskbanners/'+item_banner+')'">
|
||||
<div class="ion-padding">
|
||||
<ion-icon slot="start" name="arrow-back" class="back" (click)="onBack()"></ion-icon>
|
||||
<!-- <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_green">In Review</ion-label>
|
||||
<!-- <ion-label class="bold_text_green">In Review</ion-label>-->
|
||||
<!-- <ion-icon slot="end" name="bookmark-outline" color="primary"></ion-icon>-->
|
||||
</div>
|
||||
<div class="flex">
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
<ion-button color="secondary" expand="block" (click)="sendJobInterestMessage()">Send Interest Request to task</ion-button>
|
||||
<ion-button color="secondary" expand="block" (click)="sendJobInterestMessage()">Send Interest Request to Owner</ion-button>
|
||||
<ion-label class="description">{{interest_status}}
|
||||
</ion-label>
|
||||
</ion-card-content>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {NavController} from "@ionic/angular";
|
||||
import {LoadingController, NavController} from "@ionic/angular";
|
||||
import {Router} from "@angular/router";
|
||||
import { WrenchService } from 'src/app/services/wrench.service';
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
@@ -23,7 +23,8 @@ export class MarketdetailPage implements OnInit {
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService,
|
||||
private waitingInterestService:WaitingInterestService
|
||||
private waitingInterestService:WaitingInterestService,
|
||||
private loadingCtrl: LoadingController
|
||||
) {
|
||||
|
||||
this.jobData = this.router.getCurrentNavigation().extras.state;
|
||||
@@ -66,7 +67,12 @@ export class MarketdetailPage implements OnInit {
|
||||
interest_msg_status:string = "";
|
||||
|
||||
InterestReqResult:any;
|
||||
sendJobInterestMessage(){
|
||||
async sendJobInterestMessage(){
|
||||
const loading = await this.loadingCtrl.create({
|
||||
message: 'Sending Message',
|
||||
duration: 3000,
|
||||
});
|
||||
|
||||
this.reqData = {action:13033,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
@@ -75,6 +81,7 @@ export class MarketdetailPage implements OnInit {
|
||||
offer_code:this.jobData.offer_code,
|
||||
yourmessage:''}
|
||||
|
||||
loading.present();
|
||||
this.wrenchService.sendMarketInterest(this.reqData).subscribe(
|
||||
reqResult => {
|
||||
this.InterestReqResult = reqResult;
|
||||
|
||||
Reference in New Issue
Block a user