resource page using cms page

This commit is contained in:
sidharth 2022-02-12 13:23:52 +05:30
parent baa64dab9d
commit 455f464f48
3 changed files with 26 additions and 5 deletions

View File

@ -1 +1 @@
{"branch_name":"beta","last_commit_date":"2022-02-11T07:53:18.000Z","last_commit_author":"rakesh","last_commit_hash":"ccc0c77a544f15e6723dedb42cbb85cf80578049"}
{"branch_name":"beta","last_commit_date":"2022-02-11T08:17:53.000Z","last_commit_author":"rakesh","last_commit_hash":"baa64dab9d6c9cf9ed44909b7b9d73cc849dbdbd"}

View File

@ -106,6 +106,8 @@ export default {
created() {
this.$store.dispatch("userCartProduct/cartProductList");
this.$store.dispatch("headerCategoryList/fetchCategoryList");
this.$store.dispatch("layout/fetchCmsBlock");
this.$store.dispatch("layout/fetchPageContent");
}
};
</script>

View File

@ -1,8 +1,12 @@
<template>
<v-container>
<div class="h3 my-5 py-5 body-font1">Resources</div>
<div class="homepage-overflow-x-hidden white" v-if="resourcePage">
<div class="h3 my-5 py-5 body-font1">{{ resourcePage.title }}</div>
<div v-html="resourcePage.content"></div>
</div>
<!-- <div class="h3 my-5 py-5 body-font1">Resources</div> -->
<v-hover v-slot:default="{ hover }" >
<!-- <v-hover v-slot:default="{ hover }" >
<router-link class="text-decoration-none whyteTmin10-font" :to="{ name: 'BoxedProductsOrdering' }">
<div :class="hover ? 'primary--text' : 'black--text'" class="subheading " >
Boxed Products & Ordering
@ -78,12 +82,27 @@
Back to Retailer Portal Dashboard
</div>
</router-link>
</v-hover>
</v-hover> -->
</v-container>
</template>
<script>
/* eslint-disable */
export default {
name: "ResourcesPage",
computed: {
resourcePage: function () {
let data = null;
let pageContent = this.$store.state.layout.pageContent;
if (pageContent.length) {
data = pageContent.filter((element) => {
return element.identifier === "resources";
})[0];
}
return data;
},
},
};
</script>
<style src="./resources.scss" lang="scss" scoped/>