|
@@ -270,30 +270,11 @@ define(['../base'], function(App) {
|
|
|
'group-inquiry-potential'
|
|
'group-inquiry-potential'
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if ($location.hash() === 'groups') {
|
|
if ($location.hash() === 'groups') {
|
|
|
$scope.openGroupPlanModal()
|
|
$scope.openGroupPlanModal()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $scope.openPayByInvoiceModal = function() {
|
|
|
|
|
- const path = `${window.location.pathname}${window.location.search}`
|
|
|
|
|
- history.replaceState(null, document.title, path + '#pay-by-invoice')
|
|
|
|
|
- $modal
|
|
|
|
|
- .open({
|
|
|
|
|
- templateUrl: 'groupPlanModalInquiryTemplate'
|
|
|
|
|
- })
|
|
|
|
|
- .result.finally(() =>
|
|
|
|
|
- history.replaceState(null, document.title, window.location.pathname)
|
|
|
|
|
- )
|
|
|
|
|
- eventTracking.send(
|
|
|
|
|
- 'subscription-funnel',
|
|
|
|
|
- 'plans-page',
|
|
|
|
|
- 'group-inquiry-potential'
|
|
|
|
|
- )
|
|
|
|
|
- }
|
|
|
|
|
- if ($location.hash() === 'pay-by-invoice') {
|
|
|
|
|
- $scope.openPayByInvoiceModal()
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
var eventLabel = (label, location) => label
|
|
var eventLabel = (label, location) => label
|
|
|
|
|
|
|
|
switchEvent = function(e, label, location) {
|
|
switchEvent = function(e, label, location) {
|
|
@@ -418,12 +399,5 @@ define(['../base'], function(App) {
|
|
|
plan_code = `group_${plan_code}_${size}_${usage}`
|
|
plan_code = `group_${plan_code}_${size}_${usage}`
|
|
|
window.location = `/user/subscription/new?planCode=${plan_code}¤cy=${currency}&itm_campaign=groups`
|
|
window.location = `/user/subscription/new?planCode=${plan_code}¤cy=${currency}&itm_campaign=groups`
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- $scope.payByInvoice = function() {
|
|
|
|
|
- $modal.open({
|
|
|
|
|
- templateUrl: 'groupPlanModalInquiryTemplate'
|
|
|
|
|
- })
|
|
|
|
|
- $scope.$close()
|
|
|
|
|
- }
|
|
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|