Commit 515649dae76c91b5912b0e986d9b664a97b9e11b

Authored by Palak Handa
1 parent 122d14616b
Exists in master and in 1 other branch paytm

update changes

Showing 2 changed files with 32 additions and 14 deletions   Show diff stats
pages/registration.html
... ... @@ -29,7 +29,8 @@
29 29 <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" data-toggle="collapse" ng-click="register('chennai')">Apply</button>
30 30 </div>
31 31 <div class="clearfix"></div>
32   - <label class="card-sub-title"><span style="color:red"> Early bird deadline</span> : <span id="chennai"></span>*</label>
  32 + <!-- <label class="card-sub-title"><span style="color:red"> Early bird deadline</span> : <span id="chennai"></span>*</label> -->
  33 + <label class="card-sub-title"><span style="color:red"> Extended deadline expires in</span> : <span id="chennai"></span>*</label>
33 34 </div>
34 35 <div class="card-text2">
35 36 <span><b>Location</b></span>
... ...
... ... @@ -59,7 +59,7 @@
59 59 hide: false
60 60 };
61 61  
62   - var chennai = new Date("Nov 7, 2017 00:00:00").getTime();
  62 + var chennai = new Date("Nov 9, 2017 00:00:00").getTime();
63 63 // Update the count down every 1 second
64 64 var x = setInterval(function() {
65 65 // Get todays date and time
... ... @@ -78,6 +78,7 @@
78 78 + minutes + "m " + seconds + "s ";
79 79 // If the count down is over, write some text
80 80 if (distance < 0) {
  81 + // $scope.extendedAmount =
81 82 clearInterval(x);
82 83 document.getElementById("chennai").innerHTML = "EXPIRED";
83 84 }
... ... @@ -482,20 +483,34 @@
482 483 $scope.detail = result;
483 484 data.applicantId = result.data.id;
484 485 //$scope.userId = result.data.id;
485   -
486   - if ($scope.data.stage == "Idea") {
487   - console.log("$scope.data", $scope.data)
488   - $scope.ticketAmnt = 500;
  486 + if($scope.data.citymeetup == "chennai"){
  487 + if ($scope.data.stage == "Idea") {
  488 + console.log("$scope.data", $scope.data)
  489 + $scope.ticketAmnt = 750;
  490 + }
  491 +
  492 + if ($scope.data.stage == "Product") {
  493 + $scope.ticketAmnt = 1500;
  494 + }
  495 +
  496 + if ($scope.data.stage == "Growth") {
  497 + $scope.ticketAmnt = 1500;
  498 + }
489 499 }
490   -
491   - if ($scope.data.stage == "Product") {
492   - $scope.ticketAmnt = 1000;
  500 + else{
  501 + if ($scope.data.stage == "Idea") {
  502 + console.log("$scope.data", $scope.data)
  503 + $scope.ticketAmnt = 500;
  504 + }
  505 +
  506 + if ($scope.data.stage == "Product") {
  507 + $scope.ticketAmnt = 1000;
  508 + }
  509 +
  510 + if ($scope.data.stage == "Growth") {
  511 + $scope.ticketAmnt = 1000;
  512 + }
493 513 }
494   -
495   - if ($scope.data.stage == "Growth") {
496   - $scope.ticketAmnt = 1000;
497   - }
498   -
499 514 // if ($scope.data.stage == "Visitor") {
500 515 // $scope.ticketAmnt = 500;
501 516 // }
... ... @@ -507,6 +522,7 @@
507 522 }
508 523  
509 524 var taxAmount = $scope.ticketAmnt - $scope.discountAmount
  525 + console.log("$scope.taxTotal----",taxAmount)
510 526 $scope.taxTotal = (taxAmount * 18)/100
511 527 $scope.payingAmnt = taxAmount + $scope.taxTotal
512 528 console.log("taxincludedamount----", $scope.payingAmnt)
... ... @@ -558,6 +574,7 @@
558 574 //$scope.payingAmnt = ($scope.payingAmnt + $scope.taxTotal) * 100;
559 575  
560 576 $scope.payingAmnt = $scope.payingAmnt * 100;
  577 + console.log("$scope.taxTotal----", $scope.payingAmnt)
561 578 var options = {
562 579 "key": "rzp_live_mhSE1uOBlXvFyJ",
563 580 "amount": $scope.payingAmnt ,
... ...