+
- Why Using Figma ?
- 10 mins
+ {{item.amount*0.01}} {{item.currency}}
+ {{item.code}} - {{item.added}}
-
+ Redeem
-
- Section 2 - Figma Basic
- 60 min
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.amount*0.01}} {{item.currency}}
+ {{item.code}} - {{item.added}}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/pages/mycoupons/mycoupons.page.ts b/src/app/pages/mycoupons/mycoupons.page.ts
index 2217b74..b96b5ef 100644
--- a/src/app/pages/mycoupons/mycoupons.page.ts
+++ b/src/app/pages/mycoupons/mycoupons.page.ts
@@ -1,6 +1,8 @@
import { Component, OnInit } from '@angular/core';
import {NavController} from "@ionic/angular";
import {Router} from "@angular/router";
+import {SessionDataProviderService} from "../../store/session-data-provider.service";
+import {WrenchService} from "../../services/wrench.service";
@Component({
selector: 'app-mycoupons',
@@ -13,10 +15,14 @@ export class MycouponsPage implements OnInit {
constructor(
private navctr: NavController,
- private router: Router
+ private router: Router,
+ public sessionDataProviderService: SessionDataProviderService,
+ private wrenchService: WrenchService,
) { }
ngOnInit() {
+ this.getMyCouponHxData();
+ this.getMyCouponPendData();
}
onBack() {
@@ -30,5 +36,49 @@ export class MycouponsPage implements OnInit {
onEnroll() {
this.router.navigate(['enroll']);
}
+ //getCouponHx(usrData)
+ usrData: {
+ action:number, member_id: number, uid: string, sessionid: string, limit:20, page:1,offset: 0
+ };
+ myCouponHxTotalData:any;
+ myCouponHx: [];
+ getMyCouponHxData(){
+ this.usrData = {action:85025,
+ member_id: this.sessionDataProviderService.member_id,
+ uid: this.sessionDataProviderService.member_uid,
+ sessionid: this.sessionDataProviderService.session ,
+ limit:20, page:1,offset: 0}
+//debugger;
+ this.wrenchService.getCouponHx(this.usrData).subscribe(
+ myCouponHxTotalData => {
+ this.myCouponHxTotalData = myCouponHxTotalData;
+ console.log("jobManagerJobsTotalData RETURN->", this.myCouponHxTotalData);
+ this.myCouponHx = this.myCouponHxTotalData.result_list;
+ // debugger;
+ console.log("myCouponHx RETURN DATA->", this.myCouponHx);
+ }
+ );
+
+ }
+
+ myCouponPendTotalData:any;
+ myCouponPend: [];
+ getMyCouponPendData(){
+ this.usrData = {action:85030,
+ member_id: this.sessionDataProviderService.member_id,
+ uid: this.sessionDataProviderService.member_uid,
+ sessionid: this.sessionDataProviderService.session ,
+ limit:20, page:1,offset: 0}
+ this.wrenchService.getCouponPending(this.usrData).subscribe(
+ myCouponPendTotalData => {
+ this.myCouponPendTotalData = myCouponPendTotalData;
+ console.log("myCouponPendTotalData RETURN->", this.myCouponPendTotalData);
+ this.myCouponPend = this.myCouponPendTotalData.result_list;
+ // debugger;
+ console.log("myCouponPend RETURN DATA->", this.myCouponPend);
+ }
+ );
+
+ }
}
diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts
index d80d81f..ca818c9 100644
--- a/src/app/services/wrench.service.ts
+++ b/src/app/services/wrench.service.ts
@@ -177,9 +177,17 @@ export class WrenchService {
return this.getPostData("sendmoneyfee", usrData);
}
+ getCouponHx(usrData){
+ return this.getPostData("couponhx", usrData);
+ }
+
+ getCouponPending(usrData){
+ return this.getPostData("couponpending", usrData);
+ }
sendMoneyAction(sendmoneyData){
return this.getPostData("sendmoney", sendmoneyData);
}
+
// END POINT FOR WORKER TO MARK TASK AS COMPLETED
workerJobAction(reqData) {
var postData = {