tesk owner message
This commit is contained in:
@@ -121,122 +121,30 @@
|
||||
You have already sent a notice of interest. If the owner accepts, you will receive a notification to start.
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <div class="video">-->
|
||||
<!-- <div class="left">-->
|
||||
<!-- <div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/taskbanners/default.jpg)'"></div>-->
|
||||
|
||||
<!-- <div class="text">-->
|
||||
<!-- <ion-label class="bold_text">Why Using Figma ?</ion-label>-->
|
||||
<!-- <ion-label class="grey_text">10 mins</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="right">-->
|
||||
<!-- <ion-icon name="lock-closed-outline"></ion-icon>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
</div>
|
||||
|
||||
<div *ngIf="tabs =='message'" class="lesson">
|
||||
|
||||
<ion-card>
|
||||
<ion-card-header>
|
||||
<ion-card-subtitle>Send Message to task owner</ion-card-subtitle>
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
<ion-textarea label="Your Message to Job Owner" placeholder="Type something here" [(ngModel)]='yourmessage' ></ion-textarea>
|
||||
</ion-card-content>
|
||||
|
||||
<ion-button color="secondary" expand="block" (click)="sendJobmarketMessage()">Send Message</ion-button>
|
||||
<ion-label class="description">{{interest_msg_status}}
|
||||
</ion-label>
|
||||
</ion-card>
|
||||
|
||||
|
||||
<!-- <div class="video">-->
|
||||
|
||||
<!-- <div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/taskbanners/default.jpg)'"></div>-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <div class="story-item">-->
|
||||
<!-- <div class="menu">-->
|
||||
<!-- <div class="text">-->
|
||||
<!-- <div class="select show">-->
|
||||
<!-- <ion-icon slot="start" name="star" color="light" class="star_icon"></ion-icon>-->
|
||||
<!-- <ion-label class="rate_num white">All</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="select">-->
|
||||
<!-- <ion-icon slot="start" name="star" color="primary" class="star_icon"></ion-icon>-->
|
||||
<!-- <ion-label class="rate_num">1</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="select">-->
|
||||
<!-- <ion-icon slot="start" name="star" color="primary" class="star_icon"></ion-icon>-->
|
||||
<!-- <ion-label class="rate_num">2</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="select">-->
|
||||
<!-- <ion-icon slot="start" name="star" color="primary" class="star_icon"></ion-icon>-->
|
||||
<!-- <ion-label class="rate_num">3</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="select">-->
|
||||
<!-- <ion-icon slot="start" name="star" color="primary" class="star_icon"></ion-icon>-->
|
||||
<!-- <ion-label class="rate_num">4</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="select">-->
|
||||
<!-- <ion-icon slot="start" name="star" color="primary" class="star_icon"></ion-icon>-->
|
||||
<!-- <ion-label class="rate_num">5</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="reviw_list" *ngFor="let item of [1,2,3,4,5]">-->
|
||||
<!-- <div class="profile">-->
|
||||
<!-- <div class="left">-->
|
||||
<!-- <div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/p2.jpg)'"></div>-->
|
||||
<!-- <div style="margin-left: 10px;">-->
|
||||
<!-- <ion-label class="bold">Jonathon Williams</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="right">-->
|
||||
<!-- <div class="select">-->
|
||||
<!-- <ion-icon slot="start" name="star" color="primary" class="star_icon"></ion-icon>-->
|
||||
<!-- <ion-label class="rate_num">5</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- <ion-icon name="ellipsis-horizontal-circle-outline"></ion-icon>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <ion-label>The course is very good. the experience of the menter is very clear and easy to understand-->
|
||||
<!-- </ion-label>-->
|
||||
|
||||
<!-- <div class="like">-->
|
||||
<!-- <ion-icon slot="start" name="heart" color="danger" class="heart"></ion-icon>-->
|
||||
<!-- <ion-label class="count">330</ion-label>-->
|
||||
<!-- <ion-label class="time">2 Days ago</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div style="padding: 13px; width: 100%;">
|
||||
<div style="background-color: aliceblue; width: 100%; border-radius: 10px; ">
|
||||
<div style="font-size: 16px; font-weight: bolder; margin: 5px;">
|
||||
Send Message to Task Owner
|
||||
</div>
|
||||
<div style="padding: 5px;">
|
||||
<ion-textarea
|
||||
style="background-color: white; margin: 0px; height: 80px;"
|
||||
label="Your Message to Job Owner" placeholder="Type something here" [(ngModel)]='yourmessage' ></ion-textarea>
|
||||
</div>
|
||||
<div style="padding: 5px;">
|
||||
<ion-button color="secondary" shape="round" size="small" expand="block" (click)="sendJobmarketMessage()">Send Message</ion-button>
|
||||
</div>
|
||||
<div *ngIf="interest_msg_status!='';" style="text-align: center; font-weight: bolder; color: #3dc2ff;">
|
||||
<ion-label class="description">{{interest_msg_status}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
<!--<ion-footer>-->
|
||||
<!-- <ion-toolbar>-->
|
||||
<!-- <div class="button" (click)="onBack()">-->
|
||||
<!-- <ion-label class="text">Return</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- </ion-toolbar>-->
|
||||
<!--</ion-footer>-->
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ export class MarketdetailPage implements OnInit {
|
||||
) {
|
||||
|
||||
this.jobData = this.router.getCurrentNavigation().extras.state;
|
||||
console.log("XXXXX 1", this.router.getCurrentNavigation().extras);
|
||||
console.log("XXXXX 2", this.router.getCurrentNavigation().extras.state);
|
||||
// console.log("XXXXX 1", this.router.getCurrentNavigation().extras);
|
||||
// console.log("XXXXX 2", this.router.getCurrentNavigation().extras.state);
|
||||
//console.log("XXXXX 3", this.router.getCurrentNavigation().extras.state.ID);
|
||||
if (this.jobData==undefined){
|
||||
this.onBack();
|
||||
@@ -69,7 +69,7 @@ export class MarketdetailPage implements OnInit {
|
||||
InterestReqResult:any;
|
||||
async sendJobInterestMessage(){
|
||||
const loading = await this.loadingCtrl.create({
|
||||
message: 'Sending Message',
|
||||
message: 'Sending Interest...',
|
||||
duration: 3000,
|
||||
});
|
||||
|
||||
@@ -94,7 +94,12 @@ export class MarketdetailPage implements OnInit {
|
||||
}
|
||||
|
||||
//yourmessage:string='';
|
||||
sendJobmarketMessage(){
|
||||
async sendJobmarketMessage(){
|
||||
const loading = await this.loadingCtrl.create({
|
||||
message: 'Sending Message',
|
||||
duration: 3000,
|
||||
});
|
||||
|
||||
if (this.yourmessage.length < 5){
|
||||
alert("Enter Message to send");
|
||||
return;
|
||||
@@ -108,12 +113,16 @@ export class MarketdetailPage implements OnInit {
|
||||
offer_code:this.jobData.offer_code,
|
||||
yourmessage: this.yourmessage
|
||||
}
|
||||
|
||||
loading.present();
|
||||
this.wrenchService.sendMarketMessage(this.reqData).subscribe(
|
||||
reqResult => {
|
||||
this.InterestReqResult = reqResult;
|
||||
console.log("jobManagerJobsTotalData RETURN->", this.InterestReqResult);
|
||||
this.interest_msg_status = this.InterestReqResult?.status;
|
||||
this.yourmessage='';
|
||||
setTimeout(()=>{
|
||||
this.interest_msg_status='';
|
||||
},3000);
|
||||
this.waitingInterestService.getInterestList();
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user