From 1ef0fae0451fe576fc57daad4eadb5f98e72b891 Mon Sep 17 00:00:00 2001 From: apple Date: Tue, 23 Jul 2019 18:07:32 +0530 Subject: [PATCH] confirmation page change --- pages/confirmation.html | 16 +++++++--------- script.js | 44 ++++++++++++++++++++++++++++++++------------ 2 files changed, 39 insertions(+), 21 deletions(-) diff --git a/pages/confirmation.html b/pages/confirmation.html index 5732ca2..218b816 100644 --- a/pages/confirmation.html +++ b/pages/confirmation.html @@ -2,15 +2,13 @@ -
- -

Thank you for registering with us.

-

You will seen hear from us with further details :)

- +
+

Thank you for registering with us.

+

You will seen hear from us with further details :)

+
+
+

Your account status is disapprove.

+
diff --git a/script.js b/script.js index 51275e2..ec59e4f 100644 --- a/script.js +++ b/script.js @@ -44,7 +44,7 @@ // route for the confirmation page .when('/confirmation', { templateUrl: 'pages/confirmation.html', - controller: 'registrationController' + controller: 'confirmationController' }) .otherwise({ @@ -632,17 +632,16 @@ "currency": "INR", "status": "pending" } - var myParam = window.location.href.split('status=').splice(1).join('').split('&')[0] - console.log(window.location.href,"myParam",myParam) - if(myParam){ - if(myParam == "approved"){ - $scope.showResponse = true; - }else{ - $scope.disApprovedMsg = true; - } - }else{ - $scope.disApprovedMsg = true; - } + // var myParam = window.location.href.split('status=').splice(1).join('').split('&')[0] + // if(myParam){ + // if(myParam == "approved"){ + // $scope.showResponse = true; + // }else{ + // $scope.disApprovedMsg = true; + // } + // }else{ + // $scope.disApprovedMsg = true; + // } $scope.removeError = function() { $('#invalidEmail').css('display', 'none'); @@ -904,6 +903,27 @@ }); +scotchApp.controller('confirmationController', function($scope, $http, $location, $route, BASE_URL) { + $scope.approvedMsg = false; + $scope.disApprovedMsg = false; + + var myParam = window.location.href.split('status=').splice(1).join('').split('&')[0] + console.log(myParam) + // if(myParam){ + if(myParam == "approved"){ + $scope.approvedMsg = true; + $scope.disApprovedMsg = false; + }else{ + $scope.approvedMsg = false; + $scope.disApprovedMsg = true; + } + // }else{ + // $scope.disApprovedMsg = true; + // } + +}); + + scotchApp.controller('ambassadorController', function($scope, $http, $location, $route, BASE_URL) { $scope.data = {}; $scope.check = false; -- 2.0.0