tpa confirmation updates
This commit is contained in:
parent
ade55f6e3d
commit
e4ab35b405
2 changed files with 39 additions and 25 deletions
|
|
@ -27,13 +27,18 @@
|
||||||
id="tpaConfirmationBodyTwo"
|
id="tpaConfirmationBodyTwo"
|
||||||
ref="tpaConfirmationBodyTwo"
|
ref="tpaConfirmationBodyTwo"
|
||||||
:customText="tpaConfirmationBodyTwo"
|
:customText="tpaConfirmationBodyTwo"
|
||||||
class="small text-color--darker-gray" />
|
class="small text-color--darker-gray mb-4" />
|
||||||
<div class="contact-carrier">
|
<textBlock
|
||||||
|
id="contactCarrierText"
|
||||||
|
ref="contactCarrierText"
|
||||||
|
:customText="contactCarrierText"
|
||||||
|
class="small text-color--darker-gray"
|
||||||
|
@click="setBailoutInfo()" />
|
||||||
|
<!-- <div class="contact-carrier">
|
||||||
<span
|
<span
|
||||||
v-for="copy in splitContactCarrierText"
|
v-for="copy in splitContactCarrierText"
|
||||||
:key="copy">
|
:key="copy">
|
||||||
<span
|
<span v-if="doesCopyContainRouterLink(copy)">
|
||||||
v-if="doesCopyContainRouterLink(copy)">
|
|
||||||
<routerLink
|
<routerLink
|
||||||
:to="{
|
:to="{
|
||||||
query: { issPage: `${getRouterLinkRouteFromCopy(copy)}` },
|
query: { issPage: `${getRouterLinkRouteFromCopy(copy)}` },
|
||||||
|
|
@ -45,15 +50,14 @@
|
||||||
v-html="copy">
|
v-html="copy">
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div> -->
|
||||||
<div>
|
<div>
|
||||||
<textBlock
|
<textBlock
|
||||||
id="tpaConfirmationOrderDetailsTitle"
|
id="tpaConfirmationOrderDetailsTitle"
|
||||||
ref="tpaConfirmationOrderDetailsTitle"
|
ref="tpaConfirmationOrderDetailsTitle"
|
||||||
:customText="orderDetailsTitle"
|
:customText="orderDetailsTitle"
|
||||||
:marginTopSizeOverride="4"
|
:marginTopSizeOverride="4"
|
||||||
class="order-details"
|
class="order-details" />
|
||||||
@click-event="navigateWithScenario()" />
|
|
||||||
<deductibleBox ref="deductibleBox" :value="deductibleBoxValue" />
|
<deductibleBox ref="deductibleBox" :value="deductibleBoxValue" />
|
||||||
</div>
|
</div>
|
||||||
<siteFooter
|
<siteFooter
|
||||||
|
|
@ -87,6 +91,7 @@ import BaseFormMixin from '@/mixins/base-form-mixin.js';
|
||||||
import { useMainStore } from '@/store';
|
import { useMainStore } from '@/store';
|
||||||
import widgetFields from '@/constants/cms-widget-fields';
|
import widgetFields from '@/constants/cms-widget-fields';
|
||||||
import { toTitleCase, toDisplayPhoneNumber, formatAmountInDollars } from '@/helpers/text-helper.js';
|
import { toTitleCase, toDisplayPhoneNumber, formatAmountInDollars } from '@/helpers/text-helper.js';
|
||||||
|
import bailoutMessage from '@/constants/bailoutMessage';
|
||||||
|
|
||||||
const VERIFYING_COVERAGE = 'Verifying coverage';
|
const VERIFYING_COVERAGE = 'Verifying coverage';
|
||||||
|
|
||||||
|
|
@ -123,17 +128,18 @@ export default {
|
||||||
return { mainStore };
|
return { mainStore };
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const { companyName } = toTitleCase(useMainStore().order.serviceLocation.provider.companyName ?? '');
|
// const { companyName } = toTitleCase(useMainStore().order.serviceLocation.provider.companyName ?? '');
|
||||||
return {
|
return {
|
||||||
widget: {
|
widget: {
|
||||||
tpaConfirmation: 'TPAConfirmationContent',
|
tpaConfirmation: 'TPAConfirmationContent',
|
||||||
orderDetails: 'OrderDetailsContent',
|
orderDetails: 'OrderDetailsContent',
|
||||||
contactCarrier: 'ContactCarrierContent'
|
contactCarrier: 'ContactCarrierContent'
|
||||||
},
|
|
||||||
companyName,
|
|
||||||
customValueMap: {
|
|
||||||
glassShop: companyName
|
|
||||||
}
|
}
|
||||||
|
// companyName,
|
||||||
|
// customValueMap: {
|
||||||
|
// glassShop: companyName,
|
||||||
|
// carrierPhoneNumber
|
||||||
|
// }
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -174,12 +180,20 @@ export default {
|
||||||
return this.getCmsContent('TPAConfirmationContent', 'Image');
|
return this.getCmsContent('TPAConfirmationContent', 'Image');
|
||||||
},
|
},
|
||||||
contactCarrierText() {
|
contactCarrierText() {
|
||||||
return this.getCmsContent(this.widget.contactCarrier, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
|
return this.getCmsContent(this.widget.contactCarrier, widgetFields.TEXT_BLOCK_WIDGET.TEXT)
|
||||||
|
.replaceAll('{custom:carrierPhoneNumber}', this.carrierPhoneNumber);
|
||||||
},
|
},
|
||||||
splitContactCarrierText() {
|
// TODO: Replace with carrier number when account service is ready
|
||||||
return this.splitCopyOnCMSPlaceHolder(this.contactCarrierText);
|
carrierPhoneNumber() {
|
||||||
|
return '800-000-0000';
|
||||||
|
},
|
||||||
|
carrierDisplayURL() {
|
||||||
|
return this.mainStore.issConfig.clientName.replace(/\s/g, '');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierDisplayURL}.com`);
|
||||||
|
},
|
||||||
methods:
|
methods:
|
||||||
{
|
{
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
|
|
@ -202,8 +216,8 @@ export default {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
navigate(scenario) {
|
setBailoutInfo() {
|
||||||
this.$router.navigate(scenario, this.$route);
|
this.mainStore.setBailout(this.$router.currentRoute, bailoutMessage.RequestCallback);
|
||||||
},
|
},
|
||||||
toDisplayPhoneNumber,
|
toDisplayPhoneNumber,
|
||||||
toTitleCase,
|
toTitleCase,
|
||||||
|
|
@ -241,7 +255,6 @@ export default {
|
||||||
color: $darker-gray;
|
color: $darker-gray;
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-bottom: 1rem;
|
|
||||||
|
|
||||||
strong {
|
strong {
|
||||||
color: $black;
|
color: $black;
|
||||||
|
|
@ -262,10 +275,11 @@ export default {
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-carrier {
|
#contactCarrierText {
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
color: $darker-gray;
|
|
||||||
margin-top: 1rem;
|
:deep(a) {
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ import vinLocationInformation from '@/layouts/vin-lookup/vin-location-informatio
|
||||||
import vinLookupAlerts from '@/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue';
|
import vinLookupAlerts from '@/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue';
|
||||||
import vinQuestion from '@/layouts/vin-lookup/vin-question/vin-question.vue';
|
import vinQuestion from '@/layouts/vin-lookup/vin-question/vin-question.vue';
|
||||||
import bailoutCode from '@/constants/bailoutCode';
|
import bailoutCode from '@/constants/bailoutCode';
|
||||||
import bailoutMessage from "@/constants/bailoutMessage";
|
import bailoutMessage from '@/constants/bailoutMessage';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'vin-lookup',
|
name: 'vin-lookup',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue