recal modal WIP
This commit is contained in:
parent
c2d316d0cb
commit
2bcf303fd1
3 changed files with 68 additions and 10 deletions
|
|
@ -101,9 +101,11 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <recalModal
|
||||
:ref="RECAL_MODAL_REF_NAME"
|
||||
cmsWidgetName="RecalModal" /> -->
|
||||
<contentGroupModal
|
||||
:ref="RECAL_MODAL_REF_NAME"
|
||||
cssModalHeadlineClass="text-center"
|
||||
cmsWidgetName="RecalModal" />
|
||||
<cancelClaimModal
|
||||
:ref="CANCEL_CLAIM_REF_NAME"
|
||||
|
|
@ -116,13 +118,15 @@
|
|||
// Import Component
|
||||
import { Form } from 'vee-validate';
|
||||
import siteHeader from '@/iss-components/site-header/site-header.vue';
|
||||
import contentGroupModal from '@/iss-components/content-group-modal/content-group-modal.vue';
|
||||
import cancelClaimModal from '@/layouts/coverage-statement/cancel-claim-modal/cancel-claim-modal.vue';
|
||||
import textBlock from '@/digital-components/text-block/text-block.vue';
|
||||
import textLink from '@/ux-components/text-link/text-link.vue';
|
||||
import buttonMain from '@/ux-components/button-main/button-main.vue';
|
||||
import siteFooter from '@/iss-components/site-footer/site-footer.vue';
|
||||
import afterpayModalBanner from '@/layouts/coverage-statement/afterpay-modal-banner/afterpay-modal-banner.vue';
|
||||
// import recalModal from '@/layouts/coverage-statement/recal-modal/recal-modal.vue';
|
||||
import contentGroupModal from '@/iss-components/content-group-modal/content-group-modal.vue';
|
||||
|
||||
// Import Supporting Files
|
||||
import {
|
||||
fetchCmsContentForPage,
|
||||
|
|
@ -152,13 +156,14 @@ export default {
|
|||
components: {
|
||||
siteHeader,
|
||||
Form,
|
||||
contentGroupModal,
|
||||
buttonMain,
|
||||
textBlock,
|
||||
textLink,
|
||||
siteFooter,
|
||||
cancelClaimModal,
|
||||
afterpayModalBanner
|
||||
afterpayModalBanner,
|
||||
// recalModal,
|
||||
contentGroupModal
|
||||
},
|
||||
mixins: [baseFormMixin, vehicleQuestionsMixin],
|
||||
async beforeRouteEnter(to, from, next) {
|
||||
|
|
@ -355,7 +360,7 @@ export default {
|
|||
watch: {
|
||||
nextStepsBody(newValue, oldValue) {
|
||||
if (newValue !== oldValue) {
|
||||
setupModalLink(this, 'RecalModal');
|
||||
setupModalLink(this, RECAL_MODAL_REF_NAME);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -622,8 +627,4 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.modal {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
57
src/layouts/coverage-statement/recal-modal/recal-modal.vue
Normal file
57
src/layouts/coverage-statement/recal-modal/recal-modal.vue
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<template>
|
||||
<div class="recal-modal-container">
|
||||
<modal
|
||||
ref="recalModal">
|
||||
<h5
|
||||
class="header-text"
|
||||
v-html="modalHeaderText"></h5>
|
||||
<img
|
||||
:src="modalImage"
|
||||
class="mw-100 d-flex"
|
||||
alt="" />
|
||||
<div v-html="modalBodyText" class="modal-body"></div>
|
||||
</modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import modal from '@/digital-components/modal/modal.vue';
|
||||
|
||||
export default {
|
||||
name: 'recal-modal',
|
||||
components: {
|
||||
modal
|
||||
},
|
||||
computed: {
|
||||
modalBodyText() {
|
||||
return this.getCmsContent('RecalModal', 'BodyText');
|
||||
},
|
||||
modalHeaderText() {
|
||||
return this.getCmsContent('RecalModal', 'HeaderText');
|
||||
},
|
||||
modalFooterText() {
|
||||
return this.getCmsContent('RecalModal', 'FooterText');
|
||||
},
|
||||
modalImage() {
|
||||
return this.getCmsContent('RecalModal', 'Image');
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openModal() {
|
||||
this.$refs['RecalModal'].openModal();
|
||||
},
|
||||
closeModal() {
|
||||
this.$refs['RecalModal'].closeModal();
|
||||
},
|
||||
}
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
:deep(.modal) {
|
||||
.modal-body {
|
||||
padding-top: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
cmsWidgetName="RearWiperModal" />
|
||||
<contentGroupModal
|
||||
ref="RecalModal"
|
||||
cssModalHeadlineClass="text-center"
|
||||
cssModalHeadlineClass="text-start"
|
||||
cmsWidgetName="RecalModal" />
|
||||
</div>
|
||||
</Form>
|
||||
|
|
|
|||
Loading…
Reference in a new issue