task message
This commit is contained in:
@@ -46,9 +46,9 @@
|
||||
</ion-segment>
|
||||
|
||||
<div *ngIf="tabs =='about'" class="about">
|
||||
<ion-label class="head_text">Mentor</ion-label>
|
||||
<!-- <ion-label class="head_text">Mentor</ion-label>-->
|
||||
|
||||
<div class="mentor" (click)="onMentor()">
|
||||
<div class="mentor">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/taskbanners/'+jobData.banner+')'"></div>
|
||||
<div style="margin-left: 10px;">
|
||||
@@ -88,23 +88,23 @@
|
||||
<ion-textarea label="Your Message to Job Owner" placeholder="Type message here" [(ngModel)]='yourmessage' ></ion-textarea>
|
||||
</ion-card-content>
|
||||
|
||||
<ion-button color="secondary" expand="block" (click)="sendJobmarketMessage()">Send Updates</ion-button>
|
||||
<ion-button color="secondary" expand="block" (click)="sendActiveJobMessage()">Send Updates</ion-button>
|
||||
<ion-label class="description">{{interest_msg_status}}
|
||||
</ion-label>
|
||||
</ion-card>
|
||||
|
||||
<div class="video" *ngFor="let item of [1,2]">
|
||||
<div class="video {{item.who}}" *ngFor="let item of msgListData">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/line.png)'"></div>
|
||||
|
||||
<div class="text">
|
||||
<ion-label class="bold_text">Why Using Figma ?</ion-label>
|
||||
<ion-label class="grey_text">10 mins</ion-label>
|
||||
<ion-label class="bold_text">{{item.msg_date}}</ion-label>
|
||||
<ion-label class="grey_text">{{item.message}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="lock-closed-outline"></ion-icon>
|
||||
</div>
|
||||
<!-- <div class="right">-->
|
||||
<!--<!– <ion-icon name="lock-closed-outline"></ion-icon>–>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
|
||||
ion-content {
|
||||
.SENDER{
|
||||
background-color: yellow;
|
||||
margin-left: 50px;
|
||||
}
|
||||
.RECIPIENT{
|
||||
margin-right: 50px;
|
||||
}
|
||||
.back_image {
|
||||
width: auto; //100%;
|
||||
height: 130px;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {NavController} from "@ionic/angular";
|
||||
import {Router} from "@angular/router";
|
||||
import { SessionDataProviderService } from 'src/app/store/session-data-provider.service';
|
||||
import { BlogDataService } from 'src/app/store/blog-data.service';
|
||||
import { WrenchService } from 'src/app/services/wrench.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-activetask',
|
||||
@@ -8,14 +11,16 @@ import {Router} from "@angular/router";
|
||||
styleUrls: ['./activetask.page.scss'],
|
||||
})
|
||||
export class ActivetaskPage implements OnInit {
|
||||
|
||||
|
||||
@ViewChild('yourmessage') yourmessage;
|
||||
tabs = 'about';
|
||||
|
||||
jobData: any;
|
||||
constructor(
|
||||
private navctr: NavController,
|
||||
private router: Router
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService,
|
||||
public blogDataService: BlogDataService
|
||||
) {
|
||||
|
||||
this.jobData = this.router.getCurrentNavigation().extras.state;
|
||||
@@ -25,19 +30,107 @@ export class ActivetaskPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.activeJobMsgList();
|
||||
}
|
||||
|
||||
onBack() {
|
||||
this.navctr.back();
|
||||
}
|
||||
|
||||
onMentor() {
|
||||
this.router.navigate(['mentor']);
|
||||
/*
|
||||
sendTaskMessage(messageData){
|
||||
return this.getPostData("sendtaskmessage", messageData);
|
||||
}
|
||||
|
||||
activeJobMsgList(contractData){
|
||||
return this.getPostData("activejobmsglist", contractData);
|
||||
}
|
||||
|
||||
'member_id' => int 1
|
||||
'sessionid' => string '936571FD2E081B667930E7FFDF4D819938171883CA0CC951DC6C4FB184280EB3' (length=64)
|
||||
'uid' => string '3119b744-42ad-4834-bb83-b737588754ca' (length=36)
|
||||
'message' => string 'Lorem Ipsum comes from a latin text written in 45BC by Roman statesman, lawyer, scholar, and philosopher, Marcus Tullius Cicero' (length=127)
|
||||
'msg_type' => string 'TEXT' (length=4)
|
||||
'contract' => string '49BWBRW738' (length=10)
|
||||
'action' => int 14010
|
||||
*/
|
||||
|
||||
|
||||
contrData: {
|
||||
action:number,
|
||||
member_id: number,
|
||||
uid: string,
|
||||
sessionid: string,
|
||||
limit:20,
|
||||
contract:string,
|
||||
offset: 0
|
||||
};
|
||||
msgListTotalData:any;
|
||||
msgListData: [];
|
||||
activeJobMsgList(){
|
||||
this.contrData = {
|
||||
action:14011,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
limit:20,
|
||||
contract: this.jobData.contract,
|
||||
offset: 0}
|
||||
|
||||
this.wrenchService.activeJobMsgList(this.contrData).subscribe(
|
||||
msgListTotalData => {
|
||||
this.msgListTotalData = msgListTotalData;
|
||||
// console.log("REFER RETURN->", this.referTotalData);
|
||||
this.msgListData = this.msgListTotalData.result_list;
|
||||
console.log("REFER RETURN DATA->", this.msgListData);
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
onEnroll() {
|
||||
this.router.navigate(['enroll']);
|
||||
}
|
||||
/*
|
||||
'member_id' => int 1
|
||||
'sessionid' => string '936571FD2E081B667930E7FFDF4D819938171883CA0CC951DC6C4FB184280EB3' (length=64)
|
||||
'uid' => string '3119b744-42ad-4834-bb83-b737588754ca' (length=36)
|
||||
'message' => string 'Lorem Ipsum comes from a latin text written in 45BC by Roman statesman, lawyer, scholar, and philosopher, Marcus Tullius Cicero' (length=127)
|
||||
'msg_type' => string 'TEXT' (length=4)
|
||||
'contract' => string '49BWBRW738' (length=10)
|
||||
'action' => int 14010
|
||||
*/
|
||||
|
||||
reqData: {
|
||||
action:number, member_id: number, uid: string, sessionid: string, msg_type:string,
|
||||
contract:string,
|
||||
message:string
|
||||
};
|
||||
|
||||
interest_status:string = "";
|
||||
interest_msg_status:string = "";
|
||||
|
||||
msgReqResult:any;
|
||||
sendActiveJobMessage(){
|
||||
if (this.yourmessage.length < 5){
|
||||
alert("Enter Message to send");
|
||||
return;
|
||||
}
|
||||
|
||||
this.reqData = {action:14010,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
msg_type: "TEXT",
|
||||
contract:this.jobData.contract,
|
||||
message: this.yourmessage
|
||||
}
|
||||
|
||||
this.wrenchService.sendTaskMessage(this.reqData).subscribe(
|
||||
reqResult => {
|
||||
this.msgReqResult = reqResult;
|
||||
console.log("msgReqResult RETURN->", this.msgReqResult);
|
||||
this.interest_msg_status = this.msgReqResult?.status;
|
||||
this.activeJobMsgList();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ export class AllblogPage implements OnInit {
|
||||
constructor(
|
||||
private router: Router,
|
||||
private navctr: NavController,
|
||||
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService,
|
||||
public blogDataService: BlogDataService
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
<div style="display: flex;">
|
||||
<ion-label class="grey_text"> {{item.email}} </ion-label>
|
||||
</div>
|
||||
<ion-label>{{item.added_date}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
|
||||
@@ -48,11 +48,11 @@
|
||||
<ion-label class="bold_text"> {{item.title}}</ion-label>
|
||||
<div style="display: flex;">
|
||||
<ion-label class="grey_text"> {{item.job_description}} </ion-label>
|
||||
|
||||
</div>
|
||||
<ion-label>{{item.price*0.01}} {{item.currency}}</ion-label>
|
||||
<ion-label>Due : {{item.delivery_date}}</ion-label>
|
||||
|
||||
<div>
|
||||
<hr />
|
||||
<ion-label> {{item.delivery_date}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,10 @@ ion-card{
|
||||
}
|
||||
|
||||
ion-content {
|
||||
|
||||
.back_image{
|
||||
min-width: 50px;
|
||||
height: auto;
|
||||
}
|
||||
.grey_text {
|
||||
color: grey;
|
||||
font-size: 13px;
|
||||
|
||||
@@ -136,6 +136,16 @@ export class WrenchService {
|
||||
offferResponse(respData){
|
||||
return this.getPostData("offersresponse", respData);
|
||||
}
|
||||
|
||||
sendTaskMessage(messageData){
|
||||
return this.getPostData("sendtaskmessage", messageData);
|
||||
}
|
||||
|
||||
activeJobMsgList(contractData){
|
||||
return this.getPostData("activejobmsglist", contractData);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user