temp chkin
This commit is contained in:
parent
732672c105
commit
04efdfcd0f
3 changed files with 25 additions and 13 deletions
|
|
@ -130,7 +130,6 @@ export default {
|
||||||
modalFooterText() {
|
modalFooterText() {
|
||||||
return this.getCmsContent(this.modalWidgetName, "FooterText");
|
return this.getCmsContent(this.modalWidgetName, "FooterText");
|
||||||
},
|
},
|
||||||
|
|
||||||
addressModel: {
|
addressModel: {
|
||||||
get: function () {
|
get: function () {
|
||||||
return this.modelValue.addressQuestions;
|
return this.modelValue.addressQuestions;
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,11 @@
|
||||||
modalWidgetName="ServiceZipModalWidget" />
|
modalWidgetName="ServiceZipModalWidget" />
|
||||||
<serviceTypeQuestion
|
<serviceTypeQuestion
|
||||||
v-model="selectedServiceType"
|
v-model="selectedServiceType"
|
||||||
ref="serviceType"
|
ref="serviceTypeQuestion"
|
||||||
groupName="ServiceTypeQuestion"
|
groupName="ServiceTypeQuestion"
|
||||||
cmsWidgetName="ServiceTypeQuestionWidget"/>
|
cmsWidgetName="ServiceTypeQuestionWidget"
|
||||||
<mobileLocationModalQuestions
|
validationRules="option-required" />
|
||||||
|
<mobileLocationModalQuestions
|
||||||
v-if="selectedServiceType === 'Mobile'"
|
v-if="selectedServiceType === 'Mobile'"
|
||||||
v-model="mobileLocationQuestions"
|
v-model="mobileLocationQuestions"
|
||||||
ref="mobileLocationModalQuestions"
|
ref="mobileLocationModalQuestions"
|
||||||
|
|
@ -29,7 +30,6 @@
|
||||||
@back-clicked="backButtonAction"
|
@back-clicked="backButtonAction"
|
||||||
@ForwardClicked="forwardButtonAction" />
|
@ForwardClicked="forwardButtonAction" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -43,9 +43,7 @@ import funnelHeader from "@/fmg-components/funnel-header/funnel-header";
|
||||||
import funnelFooter from "@/fmg-components/funnel-footer/funnel-footer";
|
import funnelFooter from "@/fmg-components/funnel-footer/funnel-footer";
|
||||||
import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-header";
|
import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-header";
|
||||||
import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue";
|
import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue";
|
||||||
import { Form, defineRule } from "vee-validate";
|
import { Form } from "vee-validate";
|
||||||
import { required, regex } from "@/helpers/validation-rules";
|
|
||||||
import { errorMessages } from "@/constants/error-messages";
|
|
||||||
|
|
||||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||||
|
|
@ -66,7 +64,7 @@ export default {
|
||||||
isZipServiceableMobile: null,
|
isZipServiceableMobile: null,
|
||||||
isZipServiceableInShop: null,
|
isZipServiceableInShop: null,
|
||||||
mobileFeePart: null,
|
mobileFeePart: null,
|
||||||
selectedServiceType: null
|
selectedServiceType: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
|
|
@ -113,6 +111,8 @@ export default {
|
||||||
this.state = newValue.state;
|
this.state = newValue.state;
|
||||||
this.zipCode = newValue.zipCode;
|
this.zipCode = newValue.zipCode;
|
||||||
this.isServiceable = newValue.isServiceable;
|
this.isServiceable = newValue.isServiceable;
|
||||||
|
|
||||||
|
console.log(this);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mobileLocationQuestions: {
|
mobileLocationQuestions: {
|
||||||
|
|
@ -176,6 +176,10 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
resetMobileLocation(updatedServiceZipCode) {
|
resetMobileLocation(updatedServiceZipCode) {
|
||||||
|
if (!this.$refs.mobileLocationModalQuestions) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.streetAddress = "";
|
this.streetAddress = "";
|
||||||
this.apartmentNumberOrBusinessName = "";
|
this.apartmentNumberOrBusinessName = "";
|
||||||
this.city = "";
|
this.city = "";
|
||||||
|
|
@ -210,5 +214,5 @@ export default {
|
||||||
& > span {
|
& > span {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@
|
||||||
<script>
|
<script>
|
||||||
import buttonQuestion from "@/digital-components/button-question/button-question";
|
import buttonQuestion from "@/digital-components/button-question/button-question";
|
||||||
|
|
||||||
|
import { useForm, useIsFormTouched, useIsFormDirty, useIsFormValid } from "vee-validate";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "service-type-question",
|
name: "service-type-question",
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -29,7 +31,14 @@ export default {
|
||||||
isGlassServiceableMobile: Boolean,
|
isGlassServiceableMobile: Boolean,
|
||||||
isGlassServiceableInShop: Boolean,
|
isGlassServiceableInShop: Boolean,
|
||||||
isRecalibrationServiceableInShop: Boolean,
|
isRecalibrationServiceableInShop: Boolean,
|
||||||
isRecalibrationServiceableMobile: Boolean
|
isRecalibrationServiceableMobile: Boolean,
|
||||||
|
},
|
||||||
|
setup() {
|
||||||
|
const form = useForm();
|
||||||
|
|
||||||
|
return {
|
||||||
|
form
|
||||||
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
questionText() {
|
questionText() {
|
||||||
|
|
@ -58,4 +67,4 @@ export default {
|
||||||
height: auto;
|
height: auto;
|
||||||
width: 3.417rem;
|
width: 3.417rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue