From 72236e4ed35ab0b626196a33d4aaecb757dc24ca Mon Sep 17 00:00:00 2001 From: "US\\katie.kroell" Date: Thu, 13 Apr 2023 14:39:36 -0400 Subject: [PATCH] displau textLink with state and zip --- .../service-location/service-location.vue | 67 ++++++++++++++----- .../service-zip-modal-question.vue | 62 +++++++++++++++++ 2 files changed, 113 insertions(+), 16 deletions(-) create mode 100644 src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index 36fe02e1..693084d7 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -4,7 +4,8 @@
- + { vm.setCmsContent(resultMap.cmsContent); }); }, + setup() { + const mainStore = useMainStore(); + return { mainStore }; + }, + data() { + return { + serviceZip: this.mainStore.order.customer.address.zipCode, + serviceZipState: this.mainStore.order.customer.address.state, + isServiceZipServiceable: null, + }; + }, computed: { questionText() { return this.getCmsContent("ServiceTypeQuestionWidget", "QuestionText"); }, answersFromCms() { return this.getCmsContent("ServiceTypeQuestionWidget", "Answers"); - }, + }, + serviceZipCodeQuestion: { + get: function() { + return { + serviceZip: this.serviceZip, + serviceZipState: this.serviceZipState, + }; + }, + set: function (newValue) { + if (newValue.serviceZip !== this.serviceZip) { + //this.resetMobileLocation(); + //this.selectedAppointmentType = null; + //this.providerNumber = null; + } + this.serviceZip = newValue.serviceZip; + this.serviceZipState = newValue.serviceZipState; + }, + } }, methods: { arePagePrerequisiteValid() { @@ -97,6 +124,14 @@ export default { async forwardButtonAction() {}, resetDependentState() {}, }, + components: { + siteFooter, + siteHeader, + siteSubHeader, + buttonQuestion, + Form, + serviceZipModalQuestion, + }, }; diff --git a/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue b/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue new file mode 100644 index 00000000..1e990ae9 --- /dev/null +++ b/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue @@ -0,0 +1,62 @@ + + + + +