sign up country
This commit is contained in:
@@ -22,6 +22,8 @@ ionic generate page jobactive
|
||||
ionic generate component taskactivities
|
||||
ionic generate component suggestedlist
|
||||
|
||||
ionic generate component add-family
|
||||
|
||||
ionic generate component fastreward
|
||||
|
||||
ionic generate component familypending
|
||||
|
||||
@@ -15,8 +15,9 @@
|
||||
|
||||
<ion-item lines="none">
|
||||
<ion-select (ionChange)="verReg()" label="Select Country" placeholder="Select Country" [(ngModel)]='country'>
|
||||
<ion-select-option value="NG">Nigeria</ion-select-option>
|
||||
<ion-select-option value="US">United States</ion-select-option>
|
||||
<ion-select-option *ngFor="let item of signupCountry" value="{{item[0]}}">{{item[1]}}</ion-select-option>
|
||||
<!-- <ion-select-option value="NG">Nigeria</ion-select-option>-->
|
||||
<!-- <ion-select-option value="US">United States</ion-select-option>-->
|
||||
</ion-select>
|
||||
<!-- <ion-label>Nigeria</ion-label>-->
|
||||
<!-- <ion-icon name="caret-down-outline"></ion-icon>-->
|
||||
|
||||
@@ -61,10 +61,26 @@ export class RegisterPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
ngOnInit() {
|
||||
this.showSocial = environment.loginSocial;
|
||||
this.refreshSignupCountry();
|
||||
}
|
||||
|
||||
signupCountry:any;
|
||||
refreshSignupCountry(){
|
||||
//debugger;
|
||||
var reqD = {
|
||||
sessionid:"NOT_REQUIRED"
|
||||
}
|
||||
this.wrenchService.signUpCountry(reqD).subscribe((result)=>{
|
||||
|
||||
this.signupCountry = result.signup_country;
|
||||
console.log("this.signupCountry == > " ,this.signupCountry);
|
||||
});
|
||||
}
|
||||
onLogin() {
|
||||
this.router.navigate(['login']);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Router } from '@angular/router';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-slider',
|
||||
@@ -9,6 +10,7 @@ import { Component, OnInit } from '@angular/core';
|
||||
export class SliderPage implements OnInit {
|
||||
|
||||
constructor(
|
||||
private wrenchService: WrenchService,
|
||||
private router: Router
|
||||
) { }
|
||||
|
||||
@@ -19,4 +21,7 @@ export class SliderPage implements OnInit {
|
||||
this.router.navigate(['login']);
|
||||
}
|
||||
|
||||
signupCountry:any;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export class WrenchService {
|
||||
getPostData(reqPath:string, reqData): Observable<any> {
|
||||
|
||||
if (reqPath != 'userlogin' && reqPath != 'createuser'
|
||||
&& reqPath !='stepresetpass' && reqPath !='startresetpasword' && reqPath!='qrlogin'){
|
||||
&& reqPath !='stepresetpass' && reqPath !='startresetpasword' && reqPath!='qrlogin' && reqPath!= 'signupcountry'){
|
||||
const sessionId = this.sessionDataProviderService.session;
|
||||
if (sessionId.length==0){
|
||||
//debugger;
|
||||
@@ -56,6 +56,7 @@ export class WrenchService {
|
||||
return apiReturn;
|
||||
}
|
||||
|
||||
|
||||
startPassReset(reqData){
|
||||
return this.getPostData('startresetpasword', reqData);
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user