From 6d69c7c7af2b21746d960219a4e2a5671ed05294 Mon Sep 17 00:00:00 2001 From: bmauger Date: Tue, 5 Apr 2022 15:01:40 -0400 Subject: [PATCH] WIP Updates to vin-lookup page. --- src/layouts/vin-lookup/vin-lookup.vue | 113 ++++++++++++++------------ 1 file changed, 63 insertions(+), 50 deletions(-) diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue index 1311bd05b..c5ddda85f 100644 --- a/src/layouts/vin-lookup/vin-lookup.vue +++ b/src/layouts/vin-lookup/vin-lookup.vue @@ -6,9 +6,9 @@ v-slot="{ meta }" >
- - - + + +
@@ -21,38 +21,73 @@
- +
- +
+ + + + +
- +
{ - vm.$refs.funnelHeader.initializeComponent( - resultMap.cmsContent.FunnelHeaderWidget - ); - vm.$refs.vehicleBanner.initializeComponent( - resultMap.cmsContent.VehicleBannerWidget - ); - vm.$refs.funnelSubHeader.initializeComponent( - resultMap.cmsContent.FunnelSubHeaderWidget - ); - vm.$refs.VinNumber.initializeComponent( - resultMap.cmsContent.VinNumber.QuestionText - ); - vm.$refs.ServiceZIP.initializeComponent( - resultMap.cmsContent.ServiceZIP.QuestionText - ); - vm.$refs.EmailAddress.initializeComponent( - resultMap.cmsContent.EmailAddress.QuestionText - ); - vm.$refs.funnelFooter.initializeComponent( - resultMap.cmsContent.FunnelFooterWidget - ); + //vm.setCmsContent(resultMap.cmsContent); vm.noServiceZipWidget = { headline: resultMap.cmsContent.NoServiceZipWidget.HeadlineText, - copy: resultMap.cmsContent.NoServiceZipWidget.BodyText - }; - // vm.noMatchAlertWidget = { - // headline: resultMap.cmsContent.NoMatchAlertWidget.HeadlineText, - // copy: resultMap.cmsContent.NoMatchAlertWidget.BodyText - // }; - // vm.matchedDifferentVehicleAlertWidget = { - // headline: resultMap.cmsContent.MatchedDifferentVehicleAlertWidget.HeadlineText, - // copy: resultMap.cmsContent.MatchedDifferentVehicleAlertWidget.BodyText - // }; + copy: resultMap.cmsContent.NoServiceZipWidget.BodyText, + }; + vm.noMatchAlertWidget = { + headline: resultMap.cmsContent.NoMatchAlertWidget.HeadlineText, + copy: resultMap.cmsContent.NoMatchAlertWidget.BodyText + }; + vm.MatchedDifferentVehicle = { + headline: resultMap.cmsContent.MatchedDifferentVehicle.HeadlineText, + copy: resultMap.cmsContent.MatchedDifferentVehicle.BodyText + }; }); }, props: { @@ -177,7 +190,7 @@ export default { async forwardButtonAction() { const zipValidation = this.serviceZip ? await this.validateZip(this.serviceZip) : await this.validateZip(this.zip); if (!zipValidation.data.isServiceable) { - this.$refs.funnelFooter.removeLoader(); + //this.$refs.funnelFooter.removeLoader(); this.newServiceZipRequired = true; return; } @@ -188,7 +201,7 @@ export default { }); if (vinLookup.data.vehicle.carId !== store.getters.vehicle.carId) { this.$refs.funnelFooter.updateButtonText(`Continue with ${vinLookup.data.vin} ${vinLookup.data.vehicle.year} ${vinLookup.data.vehicle.make} ${vinLookup.data.vehicle.model}`); - this.$refs.funnelFooter.removeLoader(); + //this.$refs.funnelFooter.removeLoader(); this.vinDoesNotMatchCarId = true; return; }