resource page using cms page
This commit is contained in:
parent
baa64dab9d
commit
455f464f48
|
@ -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"}
|
|
@ -106,6 +106,8 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
this.$store.dispatch("userCartProduct/cartProductList");
|
this.$store.dispatch("userCartProduct/cartProductList");
|
||||||
this.$store.dispatch("headerCategoryList/fetchCategoryList");
|
this.$store.dispatch("headerCategoryList/fetchCategoryList");
|
||||||
|
this.$store.dispatch("layout/fetchCmsBlock");
|
||||||
|
this.$store.dispatch("layout/fetchPageContent");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<v-container >
|
<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' }">
|
<router-link class="text-decoration-none whyteTmin10-font" :to="{ name: 'BoxedProductsOrdering' }">
|
||||||
<div :class="hover ? 'primary--text' : 'black--text'" class="subheading " >
|
<div :class="hover ? 'primary--text' : 'black--text'" class="subheading " >
|
||||||
Boxed Products & Ordering
|
Boxed Products & Ordering
|
||||||
|
@ -78,12 +82,27 @@
|
||||||
Back to Retailer Portal Dashboard
|
Back to Retailer Portal Dashboard
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
</v-hover>
|
</v-hover> -->
|
||||||
</v-container>
|
</v-container>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ResourcesPage",
|
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>
|
</script>
|
||||||
<style src="./resources.scss" lang="scss" scoped/>
|
<style src="./resources.scss" lang="scss" scoped/>
|
Loading…
Reference in New Issue