Commit 4fbfd1f7 authored by prumde's avatar prumde

Updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174502 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 54140570
...@@ -210,7 +210,6 @@ md-card { ...@@ -210,7 +210,6 @@ md-card {
.payment-option{ .payment-option{
display: block; display: block;
border-bottom: 1px solid #f3f3f3;
padding: 15px 0; padding: 15px 0;
padding-left: 15px; padding-left: 15px;
} }
...@@ -282,6 +281,21 @@ md-card { ...@@ -282,6 +281,21 @@ md-card {
left: calc(50% - 100px); left: calc(50% - 100px);
} }
.cvv-field {
display: inline-block;
padding-right: 20px;
}
.cvv-input {
height: 30px;
vertical-align: inherit;
}
.cvv-form-container {
padding-left: 50px;
padding-bottom: 20px;
}
.payment-button[disabled], .save-button[disabled] { .payment-button[disabled], .save-button[disabled] {
background: #e0e0e0; background: #e0e0e0;
color: #fff; color: #fff;
...@@ -392,35 +406,44 @@ md-card { ...@@ -392,35 +406,44 @@ md-card {
/* Review Order End*/ /* Review Order End*/
/* .example-headers-align .mat-expansion-panel-header-title, */ /* Material Expansion CSS */
/* .example-headers-align .mat-expansion-panel-header-description { */
/* flex-basis: 0; */
/* } */
.example-headers-align .mat-expansion-panel-header-description { .checkout-page > div .mat-stepper-vertical > .mat-step {
justify-content: flex-end; box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
align-items: initial; background: white;
margin: 10px;
} }
.mat-expansion-panel { .mat-vertical-content-container.mat-stepper-vertical-line::BEFORE {
margin: 10px 0 !important; content: initial;
}
.mat-expansion-panel-header-title {
line-height: 35px;
} }
.mat-expansion-panel-header { /* End */
padding: 0 !important;
}
.login-descr { .login-descr {
justify-content: space-between !important; justify-content: space-between !important;
} }
.popular-bank {
padding: 0 30px 30px 0;
width: 200px;
font-size: 15px;
}
.netBankingContainer {
padding-left: 50px;
}
.popular-bank-title {
font-size: 18px;
font-weight: 700;
padding: 15px 0;
}
.cod-order {
padding-left: 45px;
}
......
import { Component, OnInit, ViewChild, ElementRef, Input, Output, EventEmitter } from '@angular/core'; import { Component, OnInit, ViewChild, ElementRef, Input, Output, EventEmitter } from '@angular/core';
import { FormBuilder, Validators,NgForm,NgModel } from '@angular/forms'; import { FormBuilder, Validators,NgForm,NgModel,FormGroup } from '@angular/forms';
import { ItemDetail } from '../../ecm-model/product-detail-model'; import { ItemDetail } from '../../ecm-model/product-detail-model';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/map'; import 'rxjs/add/operator/map';
import { Location } from '@angular/common'; import { Location } from '@angular/common';
import { MdSnackBar } from '@angular/material'; import { MdSnackBar } from '@angular/material';
import {MatVerticalStepper} from '@angular/material/stepper';
import { Store } from '@ngrx/store'; import { Store } from '@ngrx/store';
import {AppState} from '../../ecm-store/reducers'; import {AppState} from '../../ecm-store/reducers';
...@@ -29,16 +30,15 @@ export class EcmCheckoutComponent implements OnInit { ...@@ -29,16 +30,15 @@ export class EcmCheckoutComponent implements OnInit {
@ViewChild('userForm') currentForm: NgForm; @ViewChild('userForm') currentForm: NgForm;
@Input() unAuthorized: boolean = false; @Input() unAuthorized: boolean = false;
userForm: NgForm;
checked = false; checked = false;
cartItemsDetail: ItemDetail[];
totalPrice:number = 0; totalPrice:number = 0;
activeNGForm: NgForm; cartItems;
cartItems: Observable<ItemDetail[]>;
userData: any; userData: any;
selectedStep;
@ViewChild( 'cardScreen' ) child: CardScreenComponent; @ViewChild( 'cardScreen' ) child: CardScreenComponent;
@ViewChild('addrAddScreen') addScreen: AddressScreenComponent; @ViewChild('addrAddScreen') addScreen: AddressScreenComponent;
@ViewChild('stepper') stepper: MatVerticalStepper;
cardList; cardList;
newCard: Card = new Card(); newCard: Card = new Card();
selectedPaymntOpt; selectedPaymntOpt;
...@@ -46,10 +46,15 @@ export class EcmCheckoutComponent implements OnInit { ...@@ -46,10 +46,15 @@ export class EcmCheckoutComponent implements OnInit {
newAddress: Address = new Address(); newAddress: Address = new Address();
selectedAddress: Address; selectedAddress: Address;
userInfo; userInfo;
cvv;
public childForm; public childForm;
public editForm; public editForm;
constructor(private formBuilder: FormBuilder, private store: Store<AppState>,public checkoutService: EcmCheckoutService,private _location: Location, private cartActions: CartActions, public breadcrumbSerivce: Breadcrumbs, private cardActions: SavedCardAction, private profileActions: ProfileActions, private addressActions: AdressAction, public snackBar: MdSnackBar) { loginFormGroup: FormGroup;
addressFormGroup: FormGroup;
cardFormGroup: FormGroup;
constructor(private formBuilder: FormBuilder, private store: Store<AppState>,public checkoutService: EcmCheckoutService,private _location: Location, private cartActions: CartActions, public breadcrumbSerivce: Breadcrumbs, private cardActions: SavedCardAction, private profileActions: ProfileActions, private addressActions: AdressAction, public snackBar: MdSnackBar, private _formBuilder: FormBuilder) {
this.store.dispatch(this.profileActions.loadProfile()); this.store.dispatch(this.profileActions.loadProfile());
this.store.dispatch(this.addressActions.loadAddress()); this.store.dispatch(this.addressActions.loadAddress());
this.store.dispatch(this.cardActions.loadSavedCards()); this.store.dispatch(this.cardActions.loadSavedCards());
...@@ -57,11 +62,7 @@ export class EcmCheckoutComponent implements OnInit { ...@@ -57,11 +62,7 @@ export class EcmCheckoutComponent implements OnInit {
ngOnInit() { ngOnInit() {
window.scrollTo(0,0); window.scrollTo(0,0);
var userInfo = localStorage.getItem( 'userInfo' ); this.createUserData();
console.log( 'EcmUserOptionComponent getUserInfo ::' + userInfo );
if ( userInfo !== 'undefined' && userInfo !== null && userInfo !== 'null' ) {
this.userData = JSON.parse( userInfo );
}
this.getCartItems(); this.getCartItems();
let breadcrumb = [{label: 'Home', url: '/home'}, {label: 'Checkout', url: 'javascript:void(0)'}]; let breadcrumb = [{label: 'Home', url: '/home'}, {label: 'Checkout', url: 'javascript:void(0)'}];
......
...@@ -46,10 +46,6 @@ export class CardScreenComponent implements OnInit { ...@@ -46,10 +46,6 @@ export class CardScreenComponent implements OnInit {
cvv: ['', [<any>Validators.required]] cvv: ['', [<any>Validators.required]]
}); });
if(!this.isPaymentsPage) {
this.card.cvv = "123";
}
if(this.editMode == 'V'){ if(this.editMode == 'V'){
this.getCardDetails(this.card.acctNumber); this.getCardDetails(this.card.acctNumber);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment